Author Topic: wrong time and temperature in wd and ajax  (Read 1744 times)

0 Members and 1 Guest are viewing this topic.

Offline meteolive

  • Member
  • *
  • Posts: 7
    • http://www.meteo-cernay.fr/
wrong time and temperature in wd and ajax
« on: January 13, 2009, 04:01:47 AM »
Hello everybody,
I get some troubles with the ajax : the time of the maxi temperatures are wrong. I would like to change it and I don't find where. Can you tell me how to find it in order to put manually the right time and the right value ?
I put you the screenshot below



thanks a lot

Offline lulu836

  • Linda
  • Member
  • *
  • Posts: 10
Re: wrong time and temperature in wd and ajax
« Reply #1 on: January 13, 2009, 09:55:15 AM »
Is your timezone set correctly in your template? 

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wrong time and temperature in wd and ajax
« Reply #2 on: January 13, 2009, 11:51:08 AM »
From your testtags.php at http://www.meteo-cernay.fr/meteo-wd/testtags.php?sce=view it shows
Code: [Select]
$maxtemp =  '8.3°C'; // today's maximum temperature
$maxtempt =  '14:51'; // time this occurred
$mintemp =  '-6.5°C'; // today's minimum temperature
$mintempt =  '06:11'; // time this occurred

$maxtempyest =  '5.0 °C'; // Yesterday's max temperature
$maxtempyestt =  '00:22'; // Time of yesterday's max temperature
$mintempyest =  '-10.2 °C'; // Yesterday's min temperature
$mintempyestt =  '05:17'; // Time of yesterday's min temperature

Only the values for today's min/max temp and times are updated by AJAX from your clientraw.txt.

Your min/max area shows


which matches exactly the data from your testtags.php.   Is the data incorrect? 

Best regards,
Ken

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline meteolive

  • Member
  • *
  • Posts: 7
    • http://www.meteo-cernay.fr/
Re: wrong time and temperature in wd and ajax
« Reply #3 on: January 13, 2009, 02:10:10 PM »
I saw that the error comes from Weather Display.



In Weather Display, I can not adjust the values circled in red which are false.

I will ask the author WD.

Thanks a lot

 

anything