Page 1 of 1

Wind Graph configuration

Posted: Sat 05 Nov 2016 5:34 am
by Phil23
Just wondering about the wind graph & possibly others.

Is it possible to change some configuration setting to make it a "line of best fit", as in more curvy, if that's the correct term.

I know a "Trend Line" would be the option to choose in Excel to get the desired result, but is there a similar option available in CumulusMX, for either the interface or website, or both?

Thanks

Phil
Capture.JPG

Re: Wind Graph configuration

Posted: Sat 05 Nov 2016 8:17 am
by scanman
In the CMX "settings, options", you could select the option to let Cumulus calculate the average wind speed, which results in a smoother, less blocky chart. Not sure about the peak gust, though, as that is calculated over a 10min period. Another thing you could try is changing the graph display to show a greater period of time (eg 72hours). this giving a greater data range (usually) to smooth out some of the steps. The only downside to this is that the blocky appearance is still there on zooming to a smaller time frame of, say, 12hours. Dunno whether that helps at all?

See http://www.new.avochweather.info/trends.htm

Re: Wind Graph configuration

Posted: Sat 05 Nov 2016 11:06 am
by steve
The graphs aren't really part of Cumulus, it just provides the data for them, so there aren't any options in Cumulus to change the style.

To modify the charts, you'll need to edit the javascript (cumuluscharts.js or charts.js, depending on whether you're doing the web site or the local interface). The documentation is here - http://api.highcharts.com/highstock - and demos are here - http://www.highcharts.com/demo

You might want to try experimenting with spline charts, but I don't know how well that will work with wind data.

Re: Wind Graph configuration

Posted: Sat 05 Nov 2016 8:02 pm
by Phil23
scanman wrote:Another thing you could try is changing the graph display to show a greater period of time (eg 72hours). this giving a greater data range (usually) to smooth out some of the steps.
Expand the graphs to greater that 24 hours is certainly something I'd like anyway.

Any hints on where that's configured in the scripts?
Website coding is not one of my familiar areas.

Phil.

Re: Wind Graph configuration

Posted: Sat 05 Nov 2016 8:11 pm
by steve
Changing the period displayed by the graphs is a change to the data supplied to the graphs, so that's one thing that is configured from MX - on the Graphs section of the station settings screen. Note that if you increase the period, the graph will gradually grow to the selected period, unless you restart Cumulus, when it will redraw the graph to the full new period from the data in the data logs.

Re: Wind Graph configuration

Posted: Sat 05 Nov 2016 8:33 pm
by Phil23
steve wrote:The graphs aren't really part of Cumulus, it just provides the data for them, so there aren't any options in Cumulus to change the style.
Thanks Steve,

Yes I understand all that & the similar situation with the gauges.

Probably what I find the single most frustrating thing in MX.

While it's way superior to version 1 straight out of the box, better interface; viewable on all local devices & so on.
It's the scope for customisation that's addictive, seeing examples you want on other peoples sites & wanting the same.

I know these are in no way related to MX & it's designed to be so, which is a great thing.

Cumulus 1 was largely you get what you get, while with MX you know there's other options you could have, but they are slightly out of reach.

30 years in IT, but Java & PHP, even HTML are not areas I'm involved in, & have only basic coding knowledge, that's where the frustration begins.

In no way am I criticising the program, it's superb & love how it opens up these greater amount of options.
Just wish I was more knowledgeable in the areas of website coding.

Cheers.