Page 4 of 8

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

Posted: Sat 01 Feb 2025 6:50 pm
by RayProudfoot
In gauges.js I have -20 and 40 for C and 0 and 100 for F temperature limits.

So why on the gauge does it show different limits and the scale keeps changing whether I choose C or F?

Does another file control this behaviour? If so, which one?

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

Posted: Sat 01 Feb 2025 7:59 pm
by RayProudfoot
Here is my realtimegauges.txt. As you can see the temperature values are absolutely fine. But when read by the gauge something is going wrong. But what?

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

Posted: Sat 01 Feb 2025 8:35 pm
by Mapantz
What is <script src="scripts/windrose.js"></script>?

I'm pretty sure it doesn't exist in the steelseries download..

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

Posted: Sat 01 Feb 2025 8:41 pm
by De Hout
Your realtimegauges.txt is ok.

I copied your gauges.js and pasted it into mine.
Then I see the same temperature fault and odd 'Â' characters on my site.
There is definitely something wrong with your gauges.js file.

Perhaps you could test with mine. It's configured a bit differently and it's version 2.7.5, but it should be fine for testing, I suppose.
gauges.js

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

Posted: Sat 01 Feb 2025 8:45 pm
by Mapantz
De Hout wrote: Sat 01 Feb 2025 8:41 pm Your realtimegauges.txt is ok.

I copied your gauges.js and pasted it into mine.
Then I see the same temperature fault and odd 'Â' characters on my site.
There is definitely something wrong with your gauges.js file.

Perhaps you could test with mine. It's a bit differently configured and version 2.7.5 but ok for testing I suppose.

gauges.js
I just did the same, and I have no issues with his guages.js. All characters are encoded and no problems with temp scale or changing units.

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

Posted: Sat 01 Feb 2025 8:49 pm
by De Hout
Mapantz wrote: Sat 01 Feb 2025 8:45 pm I just did the same, and I have no issues with his guages.js. All characters are encoded and no problems with temp scale or changing units.
Which leaves me flabbergasted. :bash:

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

Posted: Sat 01 Feb 2025 10:14 pm
by RayProudfoot
Hi Derk and Mapantz, very grateful for your help. I’ll try Derk’s tomorrow and report back.

I’m flabbergasted too. :bash:

Could it be a language issue?

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

Posted: Sat 01 Feb 2025 11:01 pm
by ConligWX
RayProudfoot wrote: Sat 01 Feb 2025 6:40 pm I haven't a clue how to fix this. Is Mark away?
Probably he is. he has a life outside of CumulusMX, (though sometimes I bet he thinks he doesn't)

I can only suggest coping the \CumulusMX\webfiles\lib folder from the CumulusMX 4.3.3 build 4070 distribution zip file (2.7.7 - latest steel gauges) and using that on the website. there appears something not right with your install I would guess.

dont change a thing from default as any change would complicate the issue first at all. is it only the gauge temp values that are out?

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

Posted: Sat 01 Feb 2025 11:12 pm
by RayProudfoot
@ConligWX, but I don’t have CumulusMX. I’m on the original Cumulus. Not sure if that’s relevant or not.

The temperature was working last evening. No negative values. Just the odd symbol by the T or C.

I’m going to double check the other files in Mark’s zip are present on the server. I haven’t touched these SS gauges in years and beginning to wish I hadn’t bothered. All I wanted was a 5 second update rather than 30.

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

Posted: Sun 02 Feb 2025 10:13 am
by RayProudfoot
I'm concentrating on the call to the jquery command as I feel that's the bit that isn't working for me.

Looking at the entry in gauges-ssT.htm that Mark provided it's this:-

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

That's different to what I had in my earlier gauges-ssT.htm that worked...

<!-- Google CDN hosted JQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/j ... "></script>

After adding an 's' to Mark's entry I forced an update. The result was a blank gauges page with only the HTM elements showing plus Mark's option box for C or F etc.

But using my gauges-ssT.htm I can see gauges and all are fine except the two showing temperatures. Still negative values.

Here is the contents of my scripts folder. Can anyone see anything that is wrong?

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

Posted: Sun 02 Feb 2025 10:22 am
by RayProudfoot
De Hout wrote: Sat 01 Feb 2025 8:41 pm Your realtimegauges.txt is ok.

I copied your gauges.js and pasted it into mine.
Then I see the same temperature fault and odd 'Â' characters on my site.
There is definitely something wrong with your gauges.js file.

Perhaps you could test with mine. It's configured a bit differently and it's version 2.7.5, but it should be fine for testing, I suppose.

gauges.js
Hello Derk, I backed up my gauges.js and used yours. Here is the result. Same problem with negative temps and strange character by C and F.
https://www.cheadlehulmeweather.co.uk/gauges-ss.htm

Is there a piece of code that deals specifically with temperature? That would appear to be the problem.

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

Posted: Sun 02 Feb 2025 10:44 am
by RayProudfoot
Hi again Derk,

Having replaced my gauges.js with yours the problem appeared to be unchanged. But I clear cache and cookies and reloaded the page.

I now have a correct temperature showing. The strange characters around C and F remain.

BUT! As soon as I select F instead of C the temperatures now show negative values. Reselecting C makes no difference. Still a negative temperature.

This is happening on a Windows 11 laptop and an iPad running Safari. Any clues where the problem lies?

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

Posted: Sun 02 Feb 2025 11:27 am
by Mapantz
I would suggest deleting the whole steelseries folder on your web server and start again.

Also, do you need Cumulus to process and upload the steelseries web page? It's pretty much a static page, it updates the values from realtimegauges.txt

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

Posted: Sun 02 Feb 2025 11:40 am
by RayProudfoot
Mapantz wrote: Sun 02 Feb 2025 11:27 am I would suggest deleting the whole steelseries folder on your web server and start again.

Also, do you need Cumulus to process and upload the steelseries web page? It's pretty much a static page, it updates the values from realtimegauges.txt
I'll keep the deletion as an option. But with all the required files in place any unused ones shouldn't cause an issue should they? The fact that Derk's gauges.js file still exhibits the same problem shows it's not that file that's the problem. It lies elsewhere.

If you mean gauges-ssT.htm then the last updated time will be static unless I include it in the process. It has been fine for years until this change. I would like Mark to comment before I make any changes.

Do you see the same as me? Everything fine until you change C to F in the box at the bottom of the page at which points temps go negative.

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

Posted: Sun 02 Feb 2025 11:54 am
by Mapantz
Do you see the same as me? Everything fine until you change C to F in the box at the bottom of the page at which points temps go negative.
It's broken as soon as I go to your webpage, without changing units.

The gauges web page doesn't need to be continually uploaded by Cumulus. It's a waste of resources if nothing is changing .