Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
UV Gauge Issue
Moderator: mcrossley
-
- Posts: 113
- Joined: Sun 12 Mar 2017 8:33 pm
- Weather Station: VP2+
- Operating System: Raspberry Pi OS (64-bit)
- Location: US Mid-Atlantic
UV Gauge Issue
I thought I had noticed an irregularity with my UV gauge before posting about the solar wedge issue but couldn't remember the details ... it just happened again today so I will report it now.
I realize that I chose to change from the default bargraph to a dial gauge and may be the only one to do that, so if you don't want to fool with trying to come up with a fix I understand.
The problem is with the max reading - in this screenie, which was taken with the interface open when a UV reading over to happened, all is well:
But once the page is closed and re-opened after the UV reading has dropped back below 10, this is what displays (I left the tooltip showing so the actual high is shown):
I realize that I chose to change from the default bargraph to a dial gauge and may be the only one to do that, so if you don't want to fool with trying to come up with a fix I understand.
The problem is with the max reading - in this screenie, which was taken with the interface open when a UV reading over to happened, all is well:
But once the page is closed and re-opened after the UV reading has dropped back below 10, this is what displays (I left the tooltip showing so the actual high is shown):
- mcrossley
- Posts: 12763
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: UV Gauge Issue
Herb(?), it will be because you are not including today's maximum reading in the calculation for the gauge scale max. Post a link to your page to remind me and I'll take a look. I'm on a holiday break at the mo so my responses may not be very timely.
-
- Posts: 113
- Joined: Sun 12 Mar 2017 8:33 pm
- Weather Station: VP2+
- Operating System: Raspberry Pi OS (64-bit)
- Location: US Mid-Atlantic
Re: UV Gauge Issue
Can't post a link - I don't post a web page and am working with the interface.
I have done a lot of experimenting trying to figure this out using the rain rate and solar gauges as guides. The best I came up with was the UV gauge would work how I wanted until midnight, then the tick marks disappeared, the needle and high triangle pointed straight up and NaN was displayed - then it worked properly again when the first reading over 0 was observed in the morning
Again, I realize this is probably just me doing this so if you don't want to fool with it I understand. If you can give me more info on adding "today's maximum reading in the calculation for the gauge scale max" I would appreciate it.
Here is what I have done to change from a bargraph to dial gauge:
Herb
I have done a lot of experimenting trying to figure this out using the rain rate and solar gauges as guides. The best I came up with was the UV gauge would work how I wanted until midnight, then the tick marks disappeared, the needle and high triangle pointed straight up and NaN was displayed - then it worked properly again when the first reading over 0 was observed in the morning
Again, I realize this is probably just me doing this so if you don't want to fool with it I understand. If you can give me more info on adding "today's maximum reading in the calculation for the gauge scale max" I would appreciate it.
Here is what I have done to change from a bargraph to dial gauge:
Code: Select all
Remove: params.gaugeType = steelseries.GaugeType.TYPE3; (which defaults it to TYPE4)
Add: params.maxMeasuredValueVisible = true;
params.thresholdVisible = false;
Change: ssGauge = new steelseries.RadialBargraph('canvas_uv', params);
To: ssGauge = new steelseries.Radial('canvas_uv', params);
Add below: *** function update() {
var tip, indx; ***
cache.maxMeasured = extractDecimal(data.UVTH);
Add above: *** if (ddimgtooltip.showTips) { ***
ssGauge.setMaxMeasuredValue(cache.maxMeasured);
- mcrossley
- Posts: 12763
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: UV Gauge Issue
Try changing..
to
Code: Select all
if (cache.value > ssGauge.getMaxValue()) {
ssGauge.setMaxValue(nextHighest(cache.value, 2));
}
Code: Select all
cache.maxValue = Math.max(cache.value, cache.maxMeasured);
if (cache.maxValue > ssGauge.getMaxValue()) {
ssGauge.setMaxValue(nextHighest(cache.maxValue, 2));
}
-
- Posts: 113
- Joined: Sun 12 Mar 2017 8:33 pm
- Weather Station: VP2+
- Operating System: Raspberry Pi OS (64-bit)
- Location: US Mid-Atlantic
Re: UV Gauge Issue
That works, thank you very much!
What makes the gauges that have rescaled during the day to revert back to their initial scale?
My solar, rain and rain rate all reset at midnight (I think the wind does this to but it didn't get a high enough gust to rescale yesterday) but my UV scale stays where it upscaled to until I refresh the page.
What makes the gauges that have rescaled during the day to revert back to their initial scale?
My solar, rain and rain rate all reset at midnight (I think the wind does this to but it didn't get a high enough gust to rescale yesterday) but my UV scale stays where it upscaled to until I refresh the page.
-
- Posts: 113
- Joined: Sun 12 Mar 2017 8:33 pm
- Weather Station: VP2+
- Operating System: Raspberry Pi OS (64-bit)
- Location: US Mid-Atlantic
Re: UV Gauge Issue
Trying to get my UV gauge to rescale to default at midnight like the rest of them do.
Thought I had figured it out ... added "ssGauge.setValue(0);" to the if statement you provided but no joy
Experimenting with this is hard due to only being able to test it once a day when midnight rolls around.
Any hints?
Thanks
Thought I had figured it out ... added "ssGauge.setValue(0);" to the if statement you provided but no joy
Experimenting with this is hard due to only being able to test it once a day when midnight rolls around.
Any hints?
Thanks
- mcrossley
- Posts: 12763
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: UV Gauge Issue
Hmm, should be easy!
The additional .setValue(0) just resets the gauge so that the next value update animates it properly.
Code: Select all
Change...
cache.maxValue = Math.max(cache.value, cache.maxMeasured);
if (cache.maxValue > ssGauge.getMaxValue()) {
ssGauge.setMaxValue(nextHighest(cache.maxValue, 2));
}
to...
cache.maxValue = Math.max(cache.value, cache.maxMeasured);
cache.MaxValue = nextHighest(cache.maxValue, 2);
if (cache.maxValue !== ssGauge.getMaxValue()) {
ssGauge.setValue(0);
ssGauge.setMaxValue(cache.maxValue);
}
-
- Posts: 113
- Joined: Sun 12 Mar 2017 8:33 pm
- Weather Station: VP2+
- Operating System: Raspberry Pi OS (64-bit)
- Location: US Mid-Atlantic
Re: UV Gauge Issue
Now my needle is endlessly dropping to zero about every 3 seconds then climbing back up.
I had this happen with several of my attempts.
I had this happen with several of my attempts.
-
- Posts: 113
- Joined: Sun 12 Mar 2017 8:33 pm
- Weather Station: VP2+
- Operating System: Raspberry Pi OS (64-bit)
- Location: US Mid-Atlantic
Re: UV Gauge Issue
Hmm - can't edit that last post.
Could this be needed?
I have played with adding this because the solar irradiation gauge has a similar entry at the top of the script and this in its if statement:
Could this be needed?
Code: Select all
gaugeGlobals.uvScaleDefMax
I have played with adding this because the solar irradiation gauge has a similar entry at the top of the script and this in its if statement:
Code: Select all
cache.maxValue = Math.max(cache.value, cache.currMaxValue, cache.maxToday, gaugeGlobals.solarGaugeScaleMax);
- mcrossley
- Posts: 12763
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: UV Gauge Issue
Yep, that would help!
Can't remember, but is your page visible to me? It's a lot easier to work with the actual code rather than making it up as I go along.
Can't remember, but is your page visible to me? It's a lot easier to work with the actual code rather than making it up as I go along.
-
- Posts: 113
- Joined: Sun 12 Mar 2017 8:33 pm
- Weather Station: VP2+
- Operating System: Raspberry Pi OS (64-bit)
- Location: US Mid-Atlantic
Re: UV Gauge Issue
Success! I had played with "gaugeGlobals.uvScaleDefMax" before without luck but must have done something different this time because it worked
Thanks again.
Thanks again.
Code: Select all
cache.maxValue = Math.max(cache.value, cache.maxMeasured, gaugeGlobals.uvScaleDefMax);
cache.maxValue = nextHighest(cache.maxValue, 2);
if (cache.maxValue !== ssGauge.getMaxValue()) {
ssGauge.setMaxValue(cache.maxValue);
}