Temperature Gauges Show Wrong Temp

Just got steel gauges page up and running (http://www.willowsfordfarmweather.org/wxgauges.php) and when the page first opens, the outside temperature (34) and dew point (14) are showing the correct values in F but the radio button at the bottom of the page shows C is selected (see attached Temp C.png). When I tick the F radio button (see attached Temp F.png), the values change to 1.6 and -9.7, respectively, which are the values in C. Any idea how to fix this? I’m using WD. The values in customclientraw.txt are the correct values in F.


I would first suggest updating your WD - it’s w-a-y behind. Current is 10.37S b69.

It looks like when you edited gauges.js it was not saved in UTF8 format and has been corrupted.

Look at the gauges, instead of "

Thanks for the tip - I knew something was wrong when I saw “°C”.

However, I did edit gauges.js in Notepad++, it’s the only editor I use for .php, .html, .js, etc. I’ll try again starting with the original source.

Actually, if you pull the file directly it isn’t corrupted. http://www.willowsfordfarmweather.org/scripts/gauges.js

So it must be because the containing page is XHTML 1.0 Transitional. The gauges were designed for HTML 5 and UTF8 encoding. However lots of other people are using them with the Saratoga template so they can be made to work, but I’m not sure how they have done it at the moment…