For a while now I’ve wanted to be able to check my CurrentCost meter‘s graphs on my iPhone.
Up until now I’ve been hooked up to the “Hursley mothership” and been publishing my data to a central dashboard. Unfortunately, although that draws some pretty graphs, it runs in Java and therefore isn’t supported in Mobile Safari on the phone.
This is still a work in progress, but with a combination of Ubuntu running on a Viglen MPC-L, rrdtool for gathering and graphing the stats, and the iWebKit framework for creating the user interface, I now have a simple iPhone-optimised web application which lets me view the graphs. All that’s happening here is that the data from the serial port is being dropped into rrdtool and graphs generated; and then Apache / PHP is serving up an optimised dashboard for looking at the graphs.
I just mentioned about three different topics I really should blog about in more detail (MPC-L, rrdtool, and iWebKit) but that will all have to wait.