Hugo Mills wrote: > On Fri, Sep 18, 2009 at 03:44:35PM +0100, Jon Wilks wrote: >> Hugo Mills wrote: >>> I've been playing with my shiny new CurrentCost meter that I bought >>> from AndySC on Saturday. I can report that I'm getting data happily >>> out of the serial connection, and that I've started hacking together >>> some Python to interface to it. If anyone's interested, what I've got >>> so far is at [1] -- it only grabs the live data every 6 seconds and >>> shoves it into a database so far. >>> >>> Next up, some data mangling and plotting tools. :) >>> >>> Hugo. >>> >>> [1] http://svn.darksatanic.net/svn/ccm/trunk >>> >>> >> Could you not push the data into RRD[1]? I'm sure it would cater for >> your database, data mangling and plotting needs. IIRC it has a Python >> binding too if that is your bag. > > I could do, but getting data back *out* of RRD is a right royal > pain. It also doesn't offer much scope for things like interactive > graphs, or AJAX-style interactions.
RRDTool is an easy place to start though. I used instructions at http://www.jibble.org/currentcost/ to create graphs such as http://www.fbcs.co.uk/files/power-week.png which proves that I've been away for most of the week and haven't had a chance to do anything more sophisticated with it yet. cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --------------------------------------------------------------