Page 3 of 8

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

Posted: Fri 31 Jan 2025 10:25 pm
by RayProudfoot
Mapantz wrote: Fri 31 Jan 2025 10:17 pm The jquery version you're linking to is very old. The one I posted is the latest version.
Understood. I've changed it.
PaulMy wrote: Fri 31 Jan 2025 10:18 pm Hi Ray,
You will be aware that the way old Cumulus does the website updates is to process the full template xxxxT.htm files at the normal interval and upload to your website as xxxx,htm so, yes, in your case you need to make the edit in gauges-ssT.htm for Cumulus to process and update as gauges-ss.htm and then you would have the updated script on your website.

CumulusMX has the ss-gauges built-in so generally nothing to be done as any new version of CMX would also include any updates to the ss-style gauges.

Enjoy,
Paul
The old way is the only one I know Paul. :D Just one question about the way the temperature symbol is shown. Any clues?
Temp.jpg

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

Posted: Fri 31 Jan 2025 10:52 pm
by PaulMy
Hi Ray,
Again I am not familiar with how and the details but from past readings that could be the internet file upload issue without UTF-8 ticked which results in funny characters. For my CU1 I have UTF-8 ticked for Remote filename realtimegaugesT.txt.

Enjoy,
Paul

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

Posted: Fri 31 Jan 2025 10:57 pm
by RayProudfoot
Mapantz wrote: Fri 31 Jan 2025 9:36 pm Ray, look in the webpage for this:

Code: Select all

  <!-- Google CDN hosted JQuery library -->
  <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
Replace with:

Code: Select all

<!-- Google CDN hosted JQuery library -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
I had to revert to my original entry plus the s of course as the modified one you provided failed to load the gauges. Another heart attack closely avoided! :lol:

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

Posted: Fri 31 Jan 2025 11:24 pm
by RayProudfoot
PaulMy wrote: Fri 31 Jan 2025 10:52 pm Hi Ray,
Again I am not familiar with how and the details but from past readings that could be the internet file upload issue without UTF-8 ticked which results in funny characters. For my CU1 I have UTF-8 ticked for Remote filename realtimegaugesT.txt.

Enjoy,
Paul
Thanks Paul but checking that entry hasn’t changed it. I can live with it for now. Maybe when @mcrossley is available he can advise.

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

Posted: Sat 01 Feb 2025 10:47 am
by RayProudfoot
Thanks everyone for your help last night. What should have been a 10 minute exercise in updating my gauges turned into a 3 hour nightmare. The minor issue of the temperature character will soon be solved I’m sure.

I had my home page overwritten so restored from a backup from a year ago. Unfortunately that didn’t include the latest changes to the home page. But I backup my backup to an external USB drive so in the event of an emergency I can grab them and have all data from four PCs with me. That had the latest indexT.htm file so I’m okay now.

I’m now backing up my trusty Samsung NC10 so everything is current. Station is off line for a few hours whilst the Atom CPU writes data over a 2.4Mhz WiFi to my NAS box.

Without backups I would have been stuffed. Always, but always backup. ;)

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

Posted: Sat 01 Feb 2025 11:39 am
by water01
Ray as well as putting "charset=utf-8" you need to make sure that whatever editor you are using to edit gauges-ssT.htm, is saving it as "UTF-8 without BOM" to make sure the gauges display correctly.

Also your Wind Run counter is not in the Wind Run Gauge which is a bit unusual.

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

Posted: Sat 01 Feb 2025 3:52 pm
by ConligWX
your webpage is set to iso-8859-1 see below.

Screenshot 2025-02-01 155042.jpg

you would need something like

Code: Select all

  <meta charset="utf-8">
in the page however you may have other scripts on that page changing the charset back and overriding the UTF8 value.

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

Posted: Sat 01 Feb 2025 4:21 pm
by RayProudfoot
David / Simon, thanks chaps. I’ll save to utf-8 as advised. I also need to tweak the temperature range. 100°C is unlikely in Cheshire. :D

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

Posted: Sat 01 Feb 2025 4:33 pm
by RayProudfoot
Just checked and using Notepad++ and Notepad it opens in utf-8. In the <head> section I can see utf-8 and nothing further down. gauges-ssT.htm.

This is perplexing.

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

Posted: Sat 01 Feb 2025 4:45 pm
by RayProudfoot
A more serious problem has arisen. If I toggle C to F for temperature I get a negative value for both C and F.

Pressure and Wind are okay. Just temperature. What file is doing this? I’ve just copied Mark’s over mine. Baffling.

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

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

Posted: Sat 01 Feb 2025 4:59 pm
by Mapantz
When you upgraded, did you replace ALL files?

It seems like you may have some of the old files and some of the new ones.

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

Posted: Sat 01 Feb 2025 5:50 pm
by RayProudfoot
Mapantz wrote: Sat 01 Feb 2025 4:59 pm When you upgraded, did you replace ALL files?

It seems like you may have some of the old files and some of the new ones.
I followed the instructions as well as I could. When copying Mark's files to my Cumulus install they did overwrite existing ones so it's perplexing.

The problem is it's a full install assuming the original Cumulus files are being used. But I've customised all my HTM pages.

Can anyone please tell me which file controls the temperature range on the SS gauges. I haven't knowingly changed anything so it's a bit bizarre.

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

Posted: Sat 01 Feb 2025 5:58 pm
by ConligWX
not sure whats going on with your values. I have a slightly different gauges.js by one day difference.

https://www.conligwx.org/lib1/steelseri ... /gauges.js

grab a copy and try that see if its any difference. obviously make a copy of your original.

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

Posted: Sat 01 Feb 2025 6:30 pm
by RayProudfoot
ConligWX wrote: Sat 01 Feb 2025 5:58 pm not sure whats going on with your values. I have a slightly different gauges.js by one day difference.

https://www.conligwx.org/lib1/steelseri ... /gauges.js

grab a copy and try that see if its any difference. obviously make a copy of your original.
Will do Simon but first here's the temperature range in my gauges.js file
tempScaleDefMinC : -20,
tempScaleDefMaxC : 50,
tempScaleDefMinF : 0,
tempScaleDefMaxF : 100,

But then look at the temperature gauge and it goes from -20 to +80 irrespective of whether I choose C or F.

I'll swap for yours and see what difference it makes.

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

Posted: Sat 01 Feb 2025 6:40 pm
by RayProudfoot
Simon, this is with your guages.js...

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

I haven't a clue how to fix this. Is Mark away?