HomeGenie Forum

Automation Program Plugins and Wizard Scripting => Help => Topic started by: bkenobi on October 31, 2015, 07:54:59 PM

Title: CPU usage
Post by: bkenobi on October 31, 2015, 07:54:59 PM
I was thinking of adding system stats to the statistics available in HG.  It seems like this would be pretty easy to do with a generic sensor widget (a custom widget would be better, but I don't know how to do that).  I figured having an overall CPU usage percent and a RAM usage percent would be sufficient.  I found some guides for using C# commands to extract this info, but I'm not sure if they would be exposed in HG.  Thoughts?

http://stackoverflow.com/questions/278071/how-to-get-the-cpu-usage-in-c (http://stackoverflow.com/questions/278071/how-to-get-the-cpu-usage-in-c)
Title: Re: CPU usage
Post by: bkenobi on November 28, 2015, 08:08:35 PM
This is a bit of an old thread but I wanted to add closure.  There is an APP available to track CPU and memory usage available in the APPs seciton:

http://www.homegenie.it/forum/index.php?topic=1186.0 (http://www.homegenie.it/forum/index.php?topic=1186.0)

There are 2 options available.  The first uses a bash script in Linux to send information to HG for tracking.  I personally prefer the C# version that is provided later in the thread but either will work.