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 »

Hi Mark,

Very pleased to report that your modified gauges.js solves the two problems. Happy days! Thank you once again for your contributions to our group. :clap:
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 »

OK, but it's a bit of a kludge. If you want to retain compatibility with the released file then you may have to add a .htaccess file to the scripts folder on your web server. This will make the web server return the file encoding as utf-8 to match the file encoding.

Code: Select all

<Files "gauges.js">
AddCharset UTF-8 .js
</Files>
Though if the .htacess file is in the gauges.js folder, it's content could probably be just...

Code: Select all

AddCharset UTF-8 .js
But I'm no expert in these files!
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 »

Mark, I already have an .htaccess file in the root folder. I'm attaching a screenshot.

Do I need a separate one in the scripts folder?
You do not have the required permissions to view the files attached to this post.
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 »

You could add the values to your existing .htaccess file in the root, but you would need the full path to the gauges.js in the files filter. I'm not sure how the paths work in htaccess, you'd have to look it up - I suspect they are relative to the html root folder, but I'm not 100% on that.

Simpler, but messier (another file to track) to add it directly into the script folder.
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 clearly need to do something because on my iPad I still have the crazy temp and odd symbol.

I’ll create a .htaccess file in scripts and paste the info you supplied. I’m no expert on this so will tread carefully.

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

Best to put the .htaccess in your scripts directory like you are planning to. It reduces the scope of the rules you define to just that directory.

Your iPad will be using a cached copy of the script - Apple devices seem to cache things forever. So you will need to clear your cache.
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 06 Feb 2025 3:49 pm Best to put the .htaccess in your scripts directory like you are planning to. It reduces the scope of the rules you define to just that directory.

Your iPad will be using a cached copy of the script - Apple devices seem to cache things forever. So you will need to clear your cache.
Thanks Freddie. I’ll do that later. Things are okay again on both iPad and Windows. Yes, I had to delete the website data for my site on the iPad.

I want to ask HostPresto if they change anything regarding encoding. They shouldn’t really.
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 created an .htaccess file and pasted this into it...

AddCharset UTF-8 .js

Saved it and transferred it to the scripts folder. Could some kind person check if it looks okay please?

https://www.cheadlehulmeweather.co.uk/gauges-ss.htm
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,
Still shows the  in 3 browsers for me.

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 »

PaulMy wrote: Thu 06 Feb 2025 5:57 pm Hi Ray,
Still shows the  in 3 browsers for me.

Enjoy,
Paul
Have you deleted the cookie for all three? What devices and OS?
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 »

Looks good to me on my phone
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 »

I had done a [ctrl][F5} on all. Now tried it on my tablet and shows as °C so looks like you're all good.

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

RayProudfoot wrote: Thu 06 Feb 2025 5:40 pm I created an .htaccess file and pasted this into it...

AddCharset UTF-8 .js

Saved it and transferred it to the scripts folder. Could some kind person check if it looks okay please?

https://www.cheadlehulmeweather.co.uk/gauges-ss.htm
It looks good now in Chrome, Edge and Opera on my laptop, also good in Chrome, Edge and Samsung Internet on my phone.
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 »

Excellent. Thanks chaps. :clap: Hopefully I can put this to bed now and find something else to worry about. :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 »

There’s a problem with the countdown if I switch to another app on my iPad and then return to the gauge page.

The countdown goes daft and counts down with increasing negative numbers. Anyone else seeing this and if so, how to correct it?

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

Image
Post Reply