Author Topic: Ajax updates Temps WAY high!  (Read 384 times)

0 Members and 1 Guest are viewing this topic.

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 855
    • Burnsville Weather LIVE
Ajax updates Temps WAY high!
« on: September 13, 2017, 07:53:02 PM »
Anyone else seen this?  This happened on the 31st and has been going ever since.  No changes to the code.  Its correct until the 1st ajax update then way too high temps on the histories.

Nice to be back online here, looks like a lot of reading to do!

Scott
Burnsville Weather Live
Alt-Dashboard
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1126
    • Support site Leuven Template and scripts
Re: Ajax updates Temps WAY high!
« Reply #1 on: September 14, 2017, 04:49:51 AM »
Anyone else seen this?  This happened on the 31st and has been going ever since.  No changes to the code.  Its correct until the 1st ajax update then way too high temps on the histories.

Nice to be back online here, looks like a lot of reading to do!

Scott
Burnsville Weather Live
Alt-Dashboard
Problem  is with the "METRIC | IMPERIAL" switch.
This is the html of one such "strange" temp field:
Code: [Select]
<td align="center" valign="top" style="text-align: center; border: 1px solid red;">  Sta* High<br>
<strong><span style="font-size: 16px">
      <span class="convTemp" style="">83.2&deg;F</span>
</span></strong><br> 2015 </td>
When first shown your page contains the data from the testtags as uploaded.
Example : Sta* High   83.2F  2015
A few seconds later the ajax updates replace that with Sta* High  181.8F  2015
The original value is recalculated again as if it was in C: 83.2 C is indeed 181.8 F.

You can press the "METRIC | IMPERIAL" switch to metric and you will see the original value which was uploaded in F but now has a C uom.

I could not find the setting for  the "METRIC | IMPERIAL" switch  to set the original values of the temp it has to convert.
The code as is in www.burnsvilleweatherlive.com/ajaxWDwx3.js simply converts all values with the span class="convTemp"

So maybe:
1. you changed a setting somewhere these last days?
2. or uploaded a new version of a script?
3. or removed ajaxWDwx-settings.js which is often used with this dashboard?


If it worked before, it should be some change somewhere.

EDIT: This discussion is about the same problem: http://www.wxforum.net/index.php?topic=25873.0

EDIT: Also the returned HTML from your webserver
  • is zipped
  • contains TWO slightly different sets of <!DOCTYPE html PUBLI. . .
    One uses "  which comes from Saratoga script top.php and it is the inner one
    and the other one which uses ' end is the outer one
  • is in UTF-8 although the settings and the generated html specifies content="text/html; charset=ISO-8859-1"
Nr. 3 can be the problem also as the ajaxWDwx3.js code scans for the degree symbol and that is a different character for UTF-8 and ISO-8859-1.
Did you change some settings in cPanel at your webserver?
Or maybe your provider "optimized" the webserver?

Wim



« Last Edit: September 14, 2017, 06:34:49 AM by wvdkuil »
Vantage VUE with a WLIP used for https://weer.sluispark.be/
Vantage VP2 with a USB logger/Meteobridge for https://www.weerstation-herent.be/

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 855
    • Burnsville Weather LIVE
Re: Ajax updates Temps WAY high!
« Reply #2 on: September 15, 2017, 02:48:07 PM »
I did update Ken's template somewhere back there but I usually manually compare on ok change on a line-by-line basis, perhaps it was something in one of his last changes.  I'll take a look!  Thanks for the help!

Scott
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 787
    • North Bend Weather
Re: Ajax updates Temps WAY high!
« Reply #3 on: September 15, 2017, 02:54:15 PM »
Welcome back Scott.  Hope all is well.
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-Wire UV + Logitech Quickcam Pro 9000