- edited description
Saratoga Template not auto-updating
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)
-
reporter -
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)
-
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.
-
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.
-
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.
-
Team nincehelser is right the auto update is an issues and needs attention.
-
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?? :)
-
reporter http://nincehelser.com/wx/WD/testtags.php?sce=view
It looks like the file is updating, but the end result is still that the displayed page isn't updating itself. It will only update if you do a manual refresh.
-
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.
-
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..
-
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.
- Log in to comment