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

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 »

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
You do not have the required permissions to view the files attached to this post.
Cheers,
Ray, Cheshire.

Image
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

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

Post 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
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
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 »

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:
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 »

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.
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 »

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. ;)
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 »

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.
David
Image
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

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

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

Post 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
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 »

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.
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 »

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
Cheers,
Ray, Cheshire.

Image
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 »

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.
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 »

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.
Cheers,
Ray, Cheshire.

Image
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

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

Post 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.
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 »

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.
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 »

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?
Cheers,
Ray, Cheshire.

Image
Post Reply