more G-Labs products

Author Topic: CPU Load Sensor  (Read 9940 times)

January 03, 2016, 10:52:41 PM
Reply #45

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I updated to the latest version and changed "System.*" to "Sensor.*" as well as switching to the standard widget.  After this change, everything seems to be working again.

That said, it's very good that I got it working again since I just found that mono is using 98.8% CPU!

January 03, 2016, 11:13:52 PM
Reply #46

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
On raspberry pi ?  You have some prgrams loop. For me I get between 1 and 6% on standard conditions.
I got high value during last update to 509.
CPUload show around 30% and shell top show 109% !!! I think CPUload doesn't give reel value

January 04, 2016, 02:12:22 AM
Reply #47

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Top showed 98%+ + 1% for something else so 100% seemed pretty accurate.  I restarted the RPi and I'm down to ~10%.  I'm updating now and it's at 100%, but that seems accurate too.

January 04, 2016, 07:15:03 PM
Reply #48

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Those what I obtain before yesterday during update HG from r508 to r509.
CPULoad are not very identical ?
And yes linux top function  give more than 100% of cpu load for mono. I think there was some erros because Raspberry PI B2 has 4 hearts !!!
Those screenshots were taken at 1 or 2 seconds interval.
« Last Edit: January 04, 2016, 07:17:51 PM by dani »

January 11, 2016, 10:13:10 AM
Reply #49

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi!

I modify the first program. Now the HG run the query, not the linux, and no need HG user and password in the bash file. You just copy the CPUData.sh file to /usr/local/bin/homegenie/ folder, and then inport the program. I modify the sensor.js to show "%" and "MB" data.
I try to run directly the query from HG program - without CPUData.sh  (http://www.homegenie.it/forum/index.php?topic=352.0) but I can't figure out how can I do.  :-\
In the program options, you can set the Query delay interval. The default is 60s.
« Last Edit: January 11, 2016, 12:33:35 PM by KaZe »