For some reason, the Astronomy page of my Saratoga site continues to experience discrepancies. The sunrise/sunset times are incorrect, and the data in the boxes below stopped updating as of 11/18/2022. I have looked at everything I can find; Settings.php, wxastronomy, Solar/Lunar coordinates in WD, lat/long, get-USNO-sunmoon.php, etc, etc. plus forum posts on the topic to ensure all is consistent with no luck. I believe all in the WD control panel has been set correctly.
BUT I notice that several gif files, including moondetail1.gif, moondetail2.gif, and sunmoonimage.jpg was last modified 11/18/2022, the same date incorrect on my site. Sounds suspicious. What could interfere with this??
First thing to check if not already done is the webfiles folder on the WD computer if there not updating neither will the website
Are you using the custom create and upload tab, if so what happens with test buttons
This is because the testtags.txt version 1.08 provided in the main WD folder \wdisplay is not the latest version. If there is a testtags.txt file in \wdisplay\webfiles it might be correct - “The version in the WD-plugin.zip is marked V1.07 -23-Jul-2011, but further down, it was updated 09-Nov-2018 with PurpleAir tags.”
If not, as Ken says, you should copy the correct version from his WD-plugin.zip to \wdisplay\webfiles
I have reset $SITE[ ‘WDdateMDY’] to “true” from “false” in Settings.php.
I have reviewed WD setup again using setup-WD as a guide. All appears correct.
It"s curious that I’m looking at different versions of testtags.txt: Which should I use? V1.07 -23-Jul-2011: currently located in top-level directory AND in webfiles directory V1.06 - 12-Jul-2009: From current WD-plugin.zip (unzipped)
Sorry, Ken’s comment on “fetch times” is a bit beyond my pay grade. Anything specific I can do?
Now the wxstatus page shows both WD-FTP and WD-weather data as not current. I seem to be going backwards!
The problem still remains that your testtags.php has stale data
$time = '08:10 AM'; // current time
$date = '1/12/2023'; // current date
and that the date format is m/d/y in the tag for $date
Your Settings.php correctly matches that format with
$SITE['WDdateMDY'] = true;
The testtags.txt template file in WD-plugin.zip ./WXtags-template-files/testtags.txt is the correct version (main V1.07 with addenda 09-Nov-2018 for purpleair tags)
The wxstatus.php page correctly shows
Weather-Display FTP NOT Current 872:04:56 > 0:05:15 Thu, 12-Jan-2023 8:10am PST
Weather-Display weather data NOT Current 872:05:07 > 0:05:15 Thu, 12-Jan-2023 8:10am PST
so there is a WD issue with generating and FTPing the testtags.php file … that needs to be fixed.
Thanks, Ken. I’ll “re-re-check” the WD setup, but if that does not fix it, I’ll delete wxastronomy from my menu. What other pages rely on testtags.txt? Would be great to fix, but real-time data is most used.
Ummm… testtags.php is where the MAJORITY of the weather data from WD comes from. The realtime update from clientraw.txt only updates SOME of the displayed data.
You definitely need to fix the upload issue to have your site display correctly.
in it. If you don’t see that, then it is not being uploaded.
You may need to use WD, Control Panel, Internet FIle Creation, Setup Page#2, File#29 (custom file conversion)
Click on the Set button… it opens a new dialog.
Local file name: testtags.txt
Remote file name: testtags.php
Click on Show file create times, click on Update every 5 minutes.
Click on Show file upload times, click on Update every 5 minutes.
Move toggle for Use These Settings to ON,
Click OK to close dialog and save settings
Move toggle for Override to ON
Click OK to save setting,
Click OK to leave the Internet File settings.
Click OK to leave the Control Panel.
Check View, FTP log a bit later to see that the conversion/upload is being done.
The data is being displayed correctly coming from testtags.php.
The two images are stale, so you’d likely need to use WD, Control Panel, Web Files/Web Page, Web Page Setup#1
Near the bottom, in the Other Images/Files group