Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Time range for popups

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

billy
Posts: 31
Joined: Mon Nov 30, 2015 10:54 am
Weather Station: WMR200
Operating System: RPi jessie
Location: Perth, Australia

Time range for popups

Postby billy » Tue Aug 15, 2017 2:06 am

Is it possible to have the time range for the gauge popup plots to be different from the range for the trend graphs? I would like to have the popups to cover a shorter time (say 1 day) but have the trend graphs to cover say 7 days. None of my searches have hit upon a method to do this. If it is possible, any clues to achieving it would be appreciated.

User avatar
mcrossley
Posts: 4979
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Time range for popups

Postby mcrossley » Tue Aug 15, 2017 10:05 am

Depends if you are using Cumulus or CumulusMX plus the static graphs package I put together?

billy
Posts: 31
Joined: Mon Nov 30, 2015 10:54 am
Weather Station: WMR200
Operating System: RPi jessie
Location: Perth, Australia

Re: Time range for popups

Postby billy » Tue Aug 15, 2017 1:26 pm

I'm using CumulusMX (3043). As for the statics graphics package, probably not because I don't know what that is! As you can no doubt tell by this reply, I'm somewhat of a novice.

Edit: Well on reflection and checking back I have indeed installed your scripts to get the gauge graphs. Indeed you and Steve helped me with a problem with that process - my web server provider at the time had an old and incompatible version of php so I ended up changing providers. So the answer to both questions is yes.

billy
Posts: 31
Joined: Mon Nov 30, 2015 10:54 am
Weather Station: WMR200
Operating System: RPi jessie
Location: Perth, Australia

Re: Time range for popups

Postby billy » Tue Aug 15, 2017 2:34 pm

And just to admit another error I have made, I think I should have posted this in the CumulusMX>Server Generated Graphs for MX topic.

User avatar
mcrossley
Posts: 4979
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Time range for popups

Postby mcrossley » Wed Aug 16, 2017 1:36 pm

Right, the next question is are you using the JSON data, or a SQL database?

JSON - It just graphs all the data provided by MX, so you would have to change the MX config for Graph Hours, but that will affect all the Cumulus graphs.

SQL - The graphSettings.php has a parameter to control the period.

Code: Select all

$GRAPH['hours']          = 24; // number of hours to graph

billy
Posts: 31
Joined: Mon Nov 30, 2015 10:54 am
Weather Station: WMR200
Operating System: RPi jessie
Location: Perth, Australia

Re: Time range for popups

Postby billy » Thu Aug 17, 2017 3:11 am

Thanks. I'm only using the JSON data but its about time I went down the database track.

My apologies for presenting such a deficient and inadequately researched question. I think my problem in getting off first base here has been the long period of not tinkering with the website since the time I went to Cumulus MX (January last year), so my understanding has gone backwards - not that it was good beforehand! And of course I didn't do as much background investigation before blurting out my problem via the forum.

Much of the stimulus to enhance things has been some limits to data presentation available by the standard website - and having a look at your site gave me many good ideas!


Return to “SteelSeries Gauges”

Who is online

Users browsing this forum: No registered users and 1 guest