a highcharts stats.sdb outTemp example

279 views
Skip to first unread message

Vince Skahan

unread,
Feb 11, 2014, 1:53:45 PM2/11/14
to weewx-de...@googlegroups.com
Yet another highcharts example....

This one is my station's historical outTemp min/max versus time.  I wrote a couple python scripts to generate json formatted data, then a the minimal javascript to make the charts appear. If you select the 'all' button you'll also see some indication of the local historical min/max as a static pair of high/low lines.


If you just go the directory, you can grab examples of the json file

Thomas Keffer

unread,
Feb 12, 2014, 2:31:42 PM2/12/14
to Vince Skahan, weewx-de...@googlegroups.com
Amazing how little code it takes to do one of these!

Right now, I'm working on an extension to the tag system that will allow more than one database. Along the way, I've been thinking about how to emit JSON vectors easily. Something like 

$json('year').day.outTemp.max

which would emit a one-year vector of daily maximums.

Other syntaxes are possible.

-tk

Oz Greg

unread,
Feb 12, 2014, 10:00:12 PM2/12/14
to weewx-de...@googlegroups.com, Vince Skahan
Tom,

Interesting idea..  Looking forward to kicking the tyres and taking it out for a spin.. 
Reply all
Reply to author
Forward
0 new messages