Page 1 of 1

<#graphperiod>

Posted: Tue 05 Aug 2014 6:51 am
by sfws
Steve,

This web tag gives the number of hours displayed by the graphs.
But Configuration menu, Display settings screen has two parameters.
- Detailed Chart Period (hours)
- Daily Chart Period (days)

The 'trendsT.htm' template uses <#graphperiod> in a HTML paragraph element to describe the graphs, but two of the charts (one for temperature and one for rainfall) in that template use the 'Daily Chart Period' despite the overall "These graphs present the temperature, pressure, rainfall, and wind speed trends for the last <#graphperiod> hours."

Your 'WebTags.txt' facility does not seem to include a web tag for this second period. Would it be easy for you (in your next patch build) to add a tag for this second period: Daily Chart Period (days)?

viewtopic.php?f=18&t=12284 has drifted a bit away from being a 'Cumulus' question and most of the posts probably would be better in 3rd party tools viewforum.php?f=18, but if you have seen any of the more recent postings with their images, you will realise I have played around a bit with your 'trendsT.htm'. I'd quite like to make the final version I publish mention 'Daily Chart Period' too in a way that will work for whatever settings anyone who downloads the code has used.

Re: <#graphperiod>

Posted: Tue 05 Aug 2014 7:00 am
by steve
Yes, that's very easy, I'll add it to the next build.

<#dailygraphperiod> and <#graphperiod>

Posted: Thu 07 Aug 2014 11:25 am
by sfws
I have downloaded build 1089 and am using it in the odd moments I can grab, from other demands on my life, to test my variation on 'trendsT.htm'.
Thank you for adding <#dailygraphperiod> in this build.

Also thank you for the change in this same build re 'recent history' tags when restarting Cumulus and information read from station logger. It has removed what I thought was another error in my script. Some of my testing was revealing no change to values in the graph for a period that appeared to move across the graph in circumstances I was not understanding. When I started this use of Highcharts plot development, I did not realise how much I had to get right to turn a 'demonstration of what might be possible' into 'something that works for everyone'.

(It has also allowed me to improve another (unshared) page I developed a while ago that used 'recent history' tags, where my script had checked <#ProgramUpTime> before deciding which recent history tags to display).

Re: <#graphperiod>

Posted: Thu 07 Aug 2014 11:46 am
by steve
It was one of the bugs I've spotted in the current version while testing the new version of Cumulus.