Saratoga Template not auto-updating

Issue #14 resolved
nincehelser created an issue

The Saratoga template is not auto-updating. The seconds counter just keeps increasing.

The text used to say when the next update was expected. It appears someone may have removed that, and the date format has changed to day-month-year instead of month-day-year that is typical in the US.

Apparently someone is already working on it...just documenting it here.

Comments (11)

  1. Gary Roderick

    Re the date format, what settings do you have for $SITE['dateOnlyFormat'] and $SITE['WDdateMDY'] in Settings.php? In this case WD is providing date in DMY format (so you should have $SITE['WDdateMDY'] set to false) and since you want to display MDY format I would expect you should have $SITE['dateOnlyFormat'] set to 'm/d/Y' (or whatever format you wish to display)

  2. nincehelser reporter

    WDdateMDY is false

    dateOnlyFormat is the default as below:

    $SITE['dateOnlyFormat'] = 'd-M-Y'; // for 31-Mar-2008 or 'j/n/Y' for Euro format

    Which is fine (I prefer that format).

    I should have been more specific on the date format displayed. What's showing up is dd/mm/yyyy (Euro style) instead of US style mm/dd/yy.

  3. Gary Roderick

    Perhaps I misread the date problem, so your date is displaying correctly but in dd/mm/yyyy format (which is what I can see on your site just now) rather than d-M-Y format (which is the format you prefer) that you would expect given your settings. If this is the case I will need look further.

  4. nincehelser reporter

    I'm not too particular about the display format, other than dd/mm/yyyy is a confusing format for local readers. mm/dd/yyyy is the local norm, but d-M-Y works, too, as it is unambiguous.

    That's really just a cosmetic thing, though. The big issue is that the template isn't auto-updating for some reason.

  5. Oz Greg repo owner

    I don't agree, my Saratoga template is auto updating.. the bigger Q is are you sure your testtags.php updating??

    As a tip you can directly view your testtags.php file.. by accessing the file location (as a url) ie ..../WD/testtags.php?sce=view and looking at the date and time values..

    Please check these fields and get back to me?? :)

  6. nincehelser reporter

    Here's a potential work-around:

    Try setting maxupdates=0 in ajaxWDwx.js

    That seems to be working for me now, but the time between updates seems a bit variable...that could be due to ftp transfers getting delayed to my provider, or maybe my raspberry is getting bogged down. Still...I'm getting updates now between 1 and 2 minutes. Your time may vary depending on how often you update.

    The date formats are still whack, but that's a cosmetic issue.

  7. Oz Greg repo owner

    Nice Work around, If I get some time I will pull apart the Saratoga and understand what is driving the updating interval.. It could be a combination of several variables which is creating this effect..

  8. Gary Roderick

    Saratoga template updating now working out of the box. Whilst page will refresh, the source of the refresh data, clientraw.txt, is currently limited to being updated itself only once per archive period. Date format issue resolved, dates must be set and agree in both Saratoga settings files and weewx-wd skin.conf.

  9. Log in to comment