Tuesday, February 15, 2011

Another Chumby App Preview - Real Time Power Monitor

Here's a short video that shows an app I'm playing around with to graph the data from our Brultech ECM-1240 power monitor. The app uses the typical fetch of a URL with XML data that Panel Builder uses to bring data in. The URL actually points to a PHP script that queries a MySQL database for the power readings and returns it formatted in XML. It does this every second using the SetInterval construct in ActionScript.

The Brultech monitor has 7 channels and is interfaced to using a custom VBScript running in our xPLSerial app. The script takes care of the handshaking with the hardware and writes the channel data to our MySQL database. Another thing the script does is send the readings over xPL to our xPLGPower app, which connects to Google's PowerMeter.

No comments:

Post a Comment