Reporting the system stats of a Raspberry PI to COSM with pythonMar 27, 2013 Edit
COSM is a online data store of sensor data for the internet of things. You can use Cosm to store sensor data (light, temp, heat, etc…) from your internet enabled device (Arduino, Raspberry PI, etc) online and produce pretty graphs of the values as they change. Recently Chipkin Automation Systems (The company I work for) added COSM as one of the supported drivers on their CAS Gateway device.
This code snippet will get the system stats (CPU, Ram, Disk Space) from the Raspberry PI, We can then send these values to COSM. I then added in the eeml class to talk to the COSM servers. I also added reading a light sensor that is connected to an Arduino talking pyfirmata.