Graphs

10 replies [Last post]
BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010

Would anyone be interested in a graph like the one below built into the gui interface.  It would allow you to select different Pachube feeds and datastreams to be displayed as a single graph.

Pachube MultiGraph

 

I'm not a coder like Brett, so it wouldn't be done overnight, but if enough people think that they can make use of it I'll have a go.

andy_godber
Offline
Joined: 13 Sep 2011
Definitely!

Having overlay of multiple feeds would be very useful.

Thanks for the offer.

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Me too, please

Thanks for taking this to the next stage......however....

Can you also code for short time frames - ie y-axis of (say) 2 hours? with a high resolution....(the 30 day data doesn't really have enough plot points when you drill down to the hours)....like

https://api.pachube.com/v2/feeds/34982/datastreams/2.png?width=750&heigh...

I'm also not a coder - but I can massage most snippets to give me what I want...if the tools are available.  I'd certainly be up for being an alpha/beta tester - if not a code monkey!!!

Cheers

EJ

PS Did you embed the graph image in your message as a file....

BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010
Live Graph

The graph is live, using live data from your feeds EJ, I hope you don't mind, so no, it's not a Photoshop job.  

I take it that you haven't been able to get a png graph with multi feeds on, if you have, do you have the code for it?

To get better resolution, I think I could get the JSON data from Pachube and then feed that in a graph.  With the graph above Google and Pachube do all the work.

What I'll do is continue with the graph type above, it should be fairly easy and help me learn how to put them together.

Once that is completed, I should have a better understanding about them and be better equiped to select data for a specific time period, one step at a time I guess.

Does anyone have a feel for the maximum number of feeds per graph, I would suggest 4, otherwise I guess they could start to look a bit busy, any thoughhts?

Is there anything else worth considering now?

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Thought I recognised it!!!

Hi Boxing!

Yeah! No problems...I use everybody elses so why not..... I've changed my feed slightly so you might want to re-visit the graph.... I've added a cc.total at #4 so that's pushed everything up one!

Brett suggested looking at 'flot' - have a google and see what you think!

I'm after no more that 4 curves per graph....but from 4 different feeds.....all on the same axis values....

Cheers

EJ

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Multi-Line png graphs

Hi Boxing....

Take a goooood look at http://www.jibble.org/currentcost/

I think this is exactly what I'm after!!!

You should be able to incorporate it into the GUI, but I've no idea how the rrd-tool stuff will impact the HAHHub!!!

Keep the faith...

EJ

brett
Offline
Providence, United States
Joined: 9 Jan 2010
From the other thread - don't

From the other thread - don't forget that CACTI uses RRDTOOL and it well suited to this task.  Running RRDTOOL on the HAH would be tricky due to space limitation of R/W flash.

http://www.homeautomationhub.com/content/multi-line-graphs#comment-718

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
USB drive?

Isn't there a move afoot to up the storage available using USB sticks?  Would this give us enough space?

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Two minds

Initially I was thinking USB on the livebox would cool (its easily doable now) you don't need me to release anything get this this to work.  Just surf around the wiki there are some docs there.

http://www.dbzoo.com/livebox/development#usb_filesystem_support

Anyway moving to the Raspberry Pi would get you a 8/16/32/64 Gb flash filesystem whatever you happen to slap into the SD slot, so I'm thinking this might be the go.

I grabbed the VM and virtual box for development but I've not had time to look into porting yet.

Brett

BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010
Update

OK, I've now got this working in a form that I'd be happy for someone to test.  Just so you know, you can pick any pachube feeds you like, as long as they're public, pick the name and colour of each feed, I've limited it to 6 feeds for now.  I can give instructions on how to test it without reflashing your existing firmware.  If you're interested send me a message.

I haven't implemented a method of getting graphs at a higher resolution, ie datapoints for every 5 minutes, I know EJ is keen for this, and I would prefer it myself, but I've started simple so that I can build up, I just don't know enough about getting the data out of Pachube and formatting it yet, more reading to do.

I've been looking at other methods for implementing these types of graphs, and your suggestions have been followed up with lots of reading.  

My favourite for now is Cacti, but Brett has already pointed out why this might be difficult, I guess we'll all have to wait for the Rasberry Pi and Brett to get back in the saddle.

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Great news

Hi Boxing.....

Looks like I'm first up for the beta - please keep plugging away and get those high res features asap....i'm keen on gettiing a good look see.

hope to hear from you soon....I'll check back in 30 mins....

EJ

Hardware Info