Author Topic: Issue with update time  (Read 1889 times)

0 Members and 1 Guest are viewing this topic.

Offline dontdoitlen

  • Member
  • *
  • Posts: 2
    • Calgary, Acadia Weather
Issue with update time
« on: August 27, 2008, 02:32:22 AM »
I'm wondering if anyone has seen this before.  When my page is opened or reloaded, the updated time and time of next update appear correctly. Then, after a few seconds, they are replaced with the number 968.  This occurs in the Gizmo as well.  :shock:

Any ideas on how to fix this are greatly appreciated.

My site is www.maplemor.com/weather/wxindexphp   

Thanks in advance.

wes.................
WMR-968
Weather Display v10.37k-20

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: Issue with update time
« Reply #1 on: August 27, 2008, 05:34:44 AM »
This is getting the time information from your clientraw.txt.  Next to your time in that file is  WMR-968-3:15:12_AM and ajax is looking at the first " - " for the time.
I doesn't look like the station model should be in there. Perhaps an extra or wrong tag is in the template or a dash is in there where it shouldn't be.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Issue with update time
« Reply #2 on: August 27, 2008, 06:10:18 PM »
Actually, it's the extra dash character in what you have for the station name 'WMR-968'.  The AJAX script splits the string at the first dash and uses what's right after it as the timestamp (which in your case, would be '968').

Change the descriptor to not have a dash (-) in it, and the time should come through just fine :D

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 dontdoitlen

  • Member
  • *
  • Posts: 2
    • Calgary, Acadia Weather
Re: Issue with update time
« Reply #3 on: August 27, 2008, 10:55:08 PM »
Thanks Guys. I removed the "-" and it is now working fine.

BTW, I love the templates.  Kudos to all that helped with the development. UU

wes............
WMR-968
Weather Display v10.37k-20

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Issue with update time
« Reply #4 on: August 28, 2008, 12:44:24 AM »
You're very welcome Wes!  Glad you like our communal effort!!

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