Yes - that's why the higher sector looks a bit odd and appears to be showing a range of values, so it's not obvious that it's just the max value that it's indicating.mcrossley wrote:I see a problem with the code and your values. Your all time high pressure is 1044.9, and the code sets the scale max to 1050, but the clever gauge code decides that a 'nicer' value would be 1060. I then draw the upper red sector from 1044.9 to 1050, which now doesn't reach the end of the scale
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Yet more gauges
Moderator: daj
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Yet more gauges
Steve
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Yet more gauges
OK, disabling the default 'niceScale' has fixed that issue. I've also added a .trim() to the forecast as it looks like the Davis strings have leading and trailing spaces.
version 0.4 attached, its in the readme but because I know no one ever reads those! the changed files are:
realtimegaugesT.txt (its just the updated version I posted earlier)
gauges.js (fixed the bar problem for Steve, trim forecast string)
ddimgtooltip.js (fixed hard coded initial image path)
Edit: By the way folks, feel free to use my original demo page to find colour/style combos that you like and change the gauges.js code to implement your personalisation. We don't want them all looking like clones do we
version 0.4 attached, its in the readme but because I know no one ever reads those! the changed files are:
realtimegaugesT.txt (its just the updated version I posted earlier)
gauges.js (fixed the bar problem for Steve, trim forecast string)
ddimgtooltip.js (fixed hard coded initial image path)
Edit: By the way folks, feel free to use my original demo page to find colour/style combos that you like and change the gauges.js code to implement your personalisation. We don't want them all looking like clones do we
You do not have the required permissions to view the files attached to this post.
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Yet more gauges
Indeed, for some reasons, a modification to the script was pointing at the wrong image...mcrossley wrote:Ray (gemini), you seem to have a problem with the popup trend images, they are out of sync for some reason?
I have made a few modifications to the texts displayed with the different graphic images...
I have been trying for the past half-hour to disable the humidity graphic image when the indoor humidity is selected but, alas, I cannot get rid of it...
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Yet more gauges
OK, Mark, I now have the proper description for all the 'hover' images, including the inside and outside humidities(?)...
-
RayProudfoot
- Posts: 3602
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: Yet more gauges
Hi Mark,
I've received an automated warning from my web hosting provider advising I've hit 80% of my monthly allocation of bandwidth.
David has provided some stats for me which shows a 20 fold increase in http traffic around 2pm today. I can't understand what would have caused that. Can you? Is it possible everyone reading this thread hit my site around the same time? There must have been a huge number of viewers.
I've downloaded some free web hosting monitoring software to keep an eye on things. Are these gauges quite hungry of bandwidth? Although I had the gauge display open for 3 hours it's the 2pm peak that seems strange.
I've received an automated warning from my web hosting provider advising I've hit 80% of my monthly allocation of bandwidth.
David has provided some stats for me which shows a 20 fold increase in http traffic around 2pm today. I can't understand what would have caused that. Can you? Is it possible everyone reading this thread hit my site around the same time? There must have been a huge number of viewers.
I've downloaded some free web hosting monitoring software to keep an eye on things. Are these gauges quite hungry of bandwidth? Although I had the gauge display open for 3 hours it's the 2pm peak that seems strange.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Yet more gauges
Ray, if anything it will be the graph images that are using the bandwidth. They currently refresh every gauge refresh. You can disable the popup data via a variable in the gauges.js script. This also stops the graph downloads. This is something that needs improving.
-
RayProudfoot
- Posts: 3602
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: Yet more gauges
Hi Mark,mcrossley wrote:Ray, if anything it will be the graph images that are using the bandwidth. They currently refresh every gauge refresh. You can disable the popup data via a variable in the gauges.js script. This also stops the graph downloads. This is something that needs improving.
Being a complete novice with java I'll leave well alone for now. No doubt you'll be enhancing performance and if it helps with bandwidth all the better.
Thanks.
- meteotortosa
- Posts: 323
- Joined: Thu 04 Dec 2008 12:15 am
- Weather Station: Davis Vantage Pro2 Plus
- Operating System: Windows XP SP3
- Location: Tortosa-Baix Ebre- Catalonia
- Contact:
Re: Yet more gauges
Now in v0.4, i can see my data
http://www.meteotortosa.cat/gauges-ss/gauges-ss.htm
but, I t'hink something is wrong
Upload an image
You do not have the required permissions to view the files attached to this post.
Weather in Tortosa (NE Spain), updated every 15'

- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Yet more gauges
Hi meteotortosa, I had a few values that had escaped the comma decimal conversion.
Find attached v0.5, it implements the following:
- Updated parseRealtime.js, changes decimal points to match the end users locale on popup data
- Updated gauges.js, now counts down correctly on http retries.
Popup data graphs now only downloaded every 15 mins by default. (configurable at the top of the script)
Fixed some remaining comma decimal conversions (hope that is all of them now)
Find attached v0.5, it implements the following:
- Updated parseRealtime.js, changes decimal points to match the end users locale on popup data
- Updated gauges.js, now counts down correctly on http retries.
Popup data graphs now only downloaded every 15 mins by default. (configurable at the top of the script)
Fixed some remaining comma decimal conversions (hope that is all of them now)
Last edited by mcrossley on Wed 29 Jun 2011 7:00 pm, edited 1 time in total.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Yet more gauges
I see there is another problem, the LCD font does not include accented characters
But there again I guess real LCD displays don't either - so how how do you display them?
-
RayProudfoot
- Posts: 3602
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: Yet more gauges
Mark,
I've downloaded the latest build and opened gauges.js to modify the forecast window and DW is reporting an error on line 918.
Here it is...
g_wind.maxValue = Math.max(Math.ceil(g_wind.maxMeasured)/10)*10, 20);
I've downloaded the latest build and opened gauges.js to modify the forecast window and DW is reporting an error on line 918.
Here it is...
g_wind.maxValue = Math.max(Math.ceil(g_wind.maxMeasured)/10)*10, 20);
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Yet more gauges
Ha, that will teach me to make 'just one small edit' and not test it before posting! One character out of place
Revised 0.5 zip attached.
Revised 0.5 zip attached.
You do not have the required permissions to view the files attached to this post.
-
RayProudfoot
- Posts: 3602
- Joined: Wed 06 May 2009 6:29 pm
- Weather Station: Davis VP2 with Daytime FARS
- Operating System: Windows XP SP3
- Location: Cheadle Hulme, Cheshire, England
- Contact:
Re: Yet more gauges
Done it myself! 2 opening brackets and 3 closing ones.
All working now, thanks. Just so I understand what you've changed. The gauges themselves are now uploaded every 30 mins rather than every refresh period?
All working now, thanks. Just so I understand what you've changed. The gauges themselves are now uploaded every 30 mins rather than every refresh period?
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Yet more gauges
Ray, no, the gauges still update every countdown period as shown at the top of the page. The popup text also update at the same rate. This only pulls about 340 bytes from your server each time. Then every 15 minutes (by default) the graphs on the popup data are updated - this pulls approx 245 kB each time.
I've spotted a problem with the implementation (the temp graphs don't switch indoor/outdoor), but I'll wait and see what other bugs come to light before I reissue.
I've spotted a problem with the implementation (the temp graphs don't switch indoor/outdoor), but I'll wait and see what other bugs come to light before I reissue.