Main
Currentcost update to PachubeDate:
The code below is the first attempt at getting my original CurrentCost Classic (or WattsClever) energy monitor connected to my only Fedora Core 5 box and updating the data to Pachube. The Classic connected without any problems (although occasionaly would swap USB ports with my Davis Station connection(???). Use 'lsusb' or simply 'ls -la /dev/ttyUSB*/' to find out how the Prolific Serial port drivers map your USB to serial port. You can also tail or head the ttyUSBn port to see what is there. Obviously you need to setup a pachube account. It all is pretty straightforward. OK, the first cut of code to populate to Pachube is a simple bash/shell scriptas follows:
Save this script somewhere sensible and if it works OK, make it a cron job abd run it every 5 minutes (or what ever the interval you need). 1 comment |
This original code was based upon the Gadget Man's code: http://martgadget.blogspot.com/2009/09/putting-your-watts-on-web.html
Posted by Mangrove Mike, 31/08/2010 9:59:01 am