Astronomy data is incorrect

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??

The site is tenmilepoint.com. Thanks.

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

It’s not just the astronomy that is stale… looking at wxstatus.php on your site shows

Weather-Display FTP NOT Current 816:07:16 > 0:05:15 Thu, 12-Jan-2023 8:10am PST

which shows that WD stopped uploading testtags.php in January so there’s very old data displayed on your site.

Looking at testtags.php?sce=view shows

$time =  '08:10 AM';    // current time
$date =  '1/12/2023';    // current date

where the date is in m/d/y format. Change Settings.php

$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year

to

$SITE['WDdateMDY'] = true; // for weather software date format of month/day/year.  =false for day/month/year

to reflect that you are using m/d/y format for WD dates.

Use Saratoga-Weather.org - Website Templates - AJAX/PHP - Weather-Display Setup as a guide to get testtags.php uploading again. You may need to replace the testtags.txt template file with a copy from the WD-plugin.zip distribution.

Looking at Saratoga-weather.org Template Test Utility shows you have some updates to do to scripts also :slight_smile:

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 shall work on it over the next few days. Thanks for the guidance, everyone.

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!

Thanks for your comments.

Sorry, current WD-plugin.zip contains V1.07 from 23 July 2011, with additional info on lines 35-6:

added PurpleAir tags - 21-Nov-2017
updated PurpleAir tags - 09-Nov-2018 (WD 10.37Sb83)
  • at least it did when I downloaded it recently. That’s the one to use.
Sorry, Ken’s comment on “fetch times” is a bit beyond my pay grade. Anything specific I can do?

Run Saratoga-weather.org Template Test Utility in your browser to see which scripts need updating.

Thanks. I’ll recheck WD-plugin testtags, But regardless, it seems the current testtags.txt used in my site are correct.

Re fetch times, I’m surprised so many scripts need updating. I thought I updated all as of early Jan. Guess not.

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.

I think you need to fix it. . .

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.

Thanks, Ken. My apologies: I found the updated v1.07 testtags.txt in a subdirectory of the download template for Base-Canada. Updated that.

Checked WD control panel. All seems ok, including testtags setting.

Tried to ensure consistency between files, but testtags.php is still not updating. What could I be doing wrong?? It’s probably staring me in the face.

Settings.php
$SITE[‘dateOnlyFormat’] = ‘m/d/Y’;
$SITE[‘timeFormat’] = ‘m/d/Y g:ia’;
$SITE[‘WDdateMDY’] = true;

Testags.php
$datefmt = ‘m/d/y’;
$time = ‘12:50 PM’; // current time
$date = ‘01/27/11’; // current date (!!)

Testtags.txt
$datefmt = ‘%datefmt%’; // = ‘d/m/y’, ‘m/d/y’
$time = ‘%time%’; // current time
$date = ‘%date%’; // current date

The

$date =  '01/27/11';   // current date

just means my ‘starter’ testtags.php from 2011 is still there (your FTP uploads are not succeeding)

Check the WD ftp log (WD, View, FTP Log). You should see something like

Uploading C:\wdisplay\webfiles\testtags.php → testtags.php
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.

When Ten Mile Point Weather<br>Baynes Channel & Haro Strait - Station Status shows current for the tags/ftp lines, you’re good to go.

Progress! wxstatus now shows all data are current, and sunrise/set times are correct. Analyzing the FTP log was very helpful.

But still showing Astronomy data as of Nov. 18, 2022. Not sure why, but I can live with that. Maybe it takes a while to update.

Thanks to all (especially Ken) for your patience. I learned a lot from your comments.

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

Tick: Upload the extra moon details.