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

Steel Series Gauges - how to reduce the refresh interval

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
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:

Steel Series Gauges - how to reduce the refresh interval

Post by RayProudfoot »

Hi Mark,

https://www.cheadlehulmeweather.co.uk/gauges-ss.htm

I've had a version of your Steel Series gauges running for many years. When I first used them Steve was hosting my site so to keep my monthly usage within limits the refresh period was set at 30 seconds.

I've had a look through various files but I can't see any way it could be reduced to say, 10 seconds. Is it possible and if so, how can I change it?

Thanks.
Cheers,
Ray, Cheshire.

Image
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Steel Series Gauges - how to reduce the refresh interval

Post by HansR »

In gauges.js you find a config structure (just at the beginning of the file). That structure contains realtimeInterval with (I think) a default value of 15. You can set that to the same value you do the realtime update of your CU. I believe you have CU1 so I am not 100% sure but it is of no use to set the gauges frequency to 5 seconds and have CU only update every 15 second. So both must have the same refresh rate.

Personally I think 30 seconds is good enough ;)

I think that is all.
If not I guess somebody else can take a shot.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Steel Series Gauges - how to reduce the refresh interval

Post by Mapantz »

I have had mine set to 3 seconds for quite some time.

I actually get a lot of emails from viewers that love seeing the wind speeds update quickly.
Image
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: Steel Series Gauges - how to reduce the refresh interval

Post by RayProudfoot »

@HansR, thanks for that advice. I’d like to reduce the time interval mainly because the VP2 updates wind every 2.5 secs. I’ll check that file and hopefully it will make sense.

@Mapantz, that sounds good.
Cheers,
Ray, Cheshire.

Image
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: Steel Series Gauges - how to reduce the refresh interval

Post by RayProudfoot »

In my Cumulus\web folder I have a gauges-ssT.js but it's 0 bytes. Empty.

How best to proceed?
Cheers,
Ray, Cheshire.

Image
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Steel Series Gauges - how to reduce the refresh interval

Post by water01 »

The gauges.js is on your web site not in your local web file. It should be in the scripts directory. Not sure why you would have gauges-ssT.js as that is not part of any release I have seen as Cumulus does not update the .js file. But you should have a gauges-ssT.htm which is the base .htm file that Cumulus updates via the extra web files.
David
Image
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Steel Series Gauges - how to reduce the refresh interval

Post by HansR »

it is C1 so II don't know but I don't think it belongs there.
Since it is 0 bytes I'd say throw it away, if your config crashes just create the same file again with 0 bytes.

But in general: a C1 specialist needs to step in.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
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: Steel Series Gauges - how to reduce the refresh interval

Post by RayProudfoot »

@water01,

Thanks David. Found it and downloaded so I had a copy should anything go wrong.

I found a counter value and changed it from 30 to 5. Now the countdown timer starts from 5 rather than 30 but it doesn't look like the actual wind speed is updating.

Here's what I changed. Does anything else need changing? I'm also attaching the js file.
You do not have the required permissions to view the files attached to this post.
Cheers,
Ray, Cheshire.

Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Steel Series Gauges - how to reduce the refresh interval

Post by freddie »

You need to look for realtimeInterval. Counter not the correct one.
Freddie
Image
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: Steel Series Gauges - how to reduce the refresh interval

Post by RayProudfoot »

freddie wrote: Thu 30 Jan 2025 6:34 pm You need to look for realtimeInterval. Counter not the correct one.
It doesn't exist. Searched for "realtime" and "interval". Only one instance of the latter. Several of the former but nothing that helps.
Cheers,
Ray, Cheshire.

Image
User avatar
mcrossley
Posts: 14382
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Steel Series Gauges - how to reduce the refresh interval

Post by mcrossley »

@freddie means the realtime interval that Cumulus uses to upload data to your web site. Changing the script to 5 seconds will just keep fetching the same data from your web site until a new realtimegauges file is uploaded.
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: Steel Series Gauges - how to reduce the refresh interval

Post by RayProudfoot »

mcrossley wrote: Thu 30 Jan 2025 7:46 pm @freddie means the realtime interval that Cumulus uses to upload data to your web site. Changing the script to 5 seconds will just keep fetching the same data from your web site until a new realtimegauges file is uploaded.
Thanks Mark. Found it in Cumulus and changed 30 to 3. But it’s not updating every 3 seconds. Do I need to change to script refresh time too so they’re aligned?
Cheers,
Ray, Cheshire.

Image
User avatar
De Hout
Posts: 92
Joined: Thu 09 Oct 2014 5:40 pm
Weather Station: Davis Vantage Pro2+ FARS
Operating System: Windows 11 | CU v1.9.4 (10992)
Location: Alkmaar, The Netherlands
Contact:

Re: Steel Series Gauges - how to reduce the refresh interval

Post by De Hout »

@Ray, did you check 'realtime' for realtimegaugesT.txt in Configuration->Internet->Files ?

Your gauges.js version (2.2.2) script looks quite different in Notepad++ compared to the version I use (2.7.5).
On line 40 (in version 2.7.5), I see:

Code: Select all

realtimeInterval   : 5,                     // *** Download data interval, set to your realtime data update interval in seconds
I recommend upgrading the SteelSeries Gauges to the latest version:
https://weather.wilmslowastro.com/scripts.php
Derk

Image
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: Steel Series Gauges - how to reduce the refresh interval

Post by RayProudfoot »

De Hout wrote: Thu 30 Jan 2025 8:39 pm @Ray, did you check 'realtime' for realtimegaugesT.txt in Configuration->Internet->Files ?

Your gauges.js version (2.2.2) script looks quite different in Notepad++ compared to the version I use (2.7.5).
On line 40 (in version 2.7.5), I see:

Code: Select all

realtimeInterval   : 5,                     // *** Download data interval, set to your realtime data update interval in seconds
I recommend upgrading the SteelSeries Gauges to the latest version:
https://weather.wilmslowastro.com/scripts.php
I’ll check tomorrow Derk. It would be strange if I had to change settings in more than one place.

The gauges seem to be fine. Not sure what’s new in the later version.
Cheers,
Ray, Cheshire.

Image
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: Steel Series Gauges - how to reduce the refresh interval

Post by RayProudfoot »

I think I've sorted it with the help of the good people here. Edited gauges.js and changed the refresh to 5 secs. And with 5 secs in the realtime value in Cumulus the wind is updating every 5 seconds. Watching the console there is a lag of several seconds on the webpage. Is that normal?

And when the counter reaches 0 it reverts briefly to 10 seconds before counting down from 5. Is that correctable?

https://www.cheadlehulmeweather.co.uk/gauges-ss.htm
Cheers,
Ray, Cheshire.

Image
Post Reply