Page 1 of 8
Steel Series Gauges - how to reduce the refresh interval
Posted: Wed 29 Jan 2025 7:32 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Wed 29 Jan 2025 9:00 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Wed 29 Jan 2025 10:00 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Wed 29 Jan 2025 10:14 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 4:31 pm
by RayProudfoot
In my Cumulus\web folder I have a gauges-ssT.js but it's 0 bytes. Empty.
How best to proceed?
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 4:48 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 4:50 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 5:16 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 6:34 pm
by freddie
You need to look for realtimeInterval. Counter not the correct one.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 6:43 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 7:46 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 7:55 pm
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?
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 8:39 pm
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
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 9:07 pm
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.
Re: Steel Series Gauges - how to reduce the refresh interval
Posted: Thu 30 Jan 2025 9:19 pm
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