Author Topic: Saratoga Ajax scripts questions  (Read 1601 times)

0 Members and 1 Guest are viewing this topic.

Offline Stetson1

  • Cordera Weather
  • Forecaster
  • *****
  • Posts: 364
    • Cordera Weather
Saratoga Ajax scripts questions
« on: February 15, 2010, 10:33:16 PM »
I am running WD 10.37P Build 21 and downloaded the WD-Ajax-PHP-US US version the Saratoga template. I seem to have most of it running but I notice that the update stops after a short period and this "Updates paused - reload page to start @ 2/15/2010 8:26:19pm - updated 23 sec ago " displays. The clientraw.txt appears to be updating so I am stumped as to what is wrong.

I am currently running this on XAMPP locally to test and get all the quirks worked out before uploading to my current site. The readme.txt that comes with the zip file seems to be looking for an older version of WD as I had to hunt around to find some items, and others are now configured differently. Any help would be appreciated as to settings in WD I may have missed or set incorrectly.

Todd

Offline Weather Display

  • Forecaster
  • *****
  • Posts: 2611
    • West Coast Road Weather Data
Re: Saratoga Ajax scripts questions
« Reply #1 on: February 16, 2010, 05:21:24 AM »
maybe the clientraw file is being cached
see if there is some settings in XAMPP to help with that
Brian
info@weather-display.com
http://www.weather-display.com

Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: Saratoga Ajax scripts questions
« Reply #2 on: February 16, 2010, 06:08:11 AM »
You could change the number of updates in the file ajaxWDwx.js.

Code: [Select]
var reloadTime = 5000;       // reload AJAX conditions every 5 seconds (= 5000 ms)
var maxupdates = 0;          // Maxium Number of updates allowed (set to zero for unlimited)
                             // maxupdates * reloadTime / 1000 = number of seconds to update
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline Strgazr27

  • "The Cam Man"
  • Forecaster
  • *****
  • Posts: 590
    • Kings Park Weather
Re: Saratoga Ajax scripts questions
« Reply #3 on: February 16, 2010, 10:38:52 AM »
you can also just hit the refresh button  ;)

As Lars has said I would go in and change the number of refreshes before the pause.
Bobby M.
Davis VP2 6152 w Daylight FARS - Logitech C525 and C310
WD - WDLive - GRLevel3 - Image Salsa - VVP - Startwatch

"http://www.kingsparkweather.com"
KNYKINGS7 on WU



Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Ajax scripts questions
« Reply #4 on: February 16, 2010, 02:48:09 PM »
The setting in ajaxWDwx.js for var maxupdates = 20; was set at a default of 20 updates, then stop until the page was refreshed .. this was done to limit the traffic to your website for folks who like leave the page open in the browser. 

If you want to have it run all the time, just set it to var maxupdates = 0; and the timeout feature will be disabled.

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 Stetson1

  • Cordera Weather
  • Forecaster
  • *****
  • Posts: 364
    • Cordera Weather
Re: Saratoga Ajax scripts questions
« Reply #5 on: February 17, 2010, 12:44:03 AM »
Found that my setting was a bit different that what I'd seen documented. My number of updates was 10 with 10 seconds delay. For testing purposes I have set it to 0 which works fine. Now I just need to work out some other issues with the Almanac. I'll document that in another post.

Thanks for all the assistance.

Todd

 

anything