2009/9/18 Chris Dennis <cgden...@btinternet.com>: > 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.
There are snippets of code on the homecamp wiki: http://homecamp.pbworks.com/ (near the bottom) Anton -- Anton Piatek email: an...@piatek.co.uk blog/photos: http://www.strangeparty.com pgp: [0xB307BAEF] (http://www.strangeparty.com/anton.asc) fingerprint: 116A 5F01 1E5F 1ADE 78C6 EDB3 B9B6 E622 B307 BAEF No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced. -- 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 --------------------------------------------------------------