Hi Bob,
You have a combination (weewx pretending to be Weather-Display) that causes the get-USNO-sunmoon.php script to not be invoked in the ajax-dashboard.php and wxastronomy.php pages.
Your testtags.php?sce=view shows $sunset = '17:12';// sunset time
$moonrisedate = 'N/A';// moon rise date
$moonrise = 'N/A';// moon rise time
$moonsetdate = 'N/A';// moon set date
$moonset = 'N/A';// moon set time
$moonage = 'N/A';// current age of the moon (days since new moon)
$moonphase = '97%';// Moon phase %
$moonphasename = 'Full'; // 10.36z addition
$marchequinox = 'N/A';// March equinox date
$junesolstice = 'N/A';// June solstice date
$sepequinox = 'N/A';// September equinox date
$decsolstice = 'N/A';// December solstice date
$newmoon = 'N/A';// Date/time of the previous new moon
$nextnewmoon = 'N/A';// Date/time of the next new moon for next month
$firstquarter = 'N/A';// Date/time of the next/last first quarter moon
$lastquarter = 'N/A';// Date/time of the next/last last quarter moon
$fullmoon = 'N/A';// Date/time of the next/last full moon
$fullmoondate = 'N/A';// Date of the next/last full moon (date only)
$moonperihel = '09:33 UTC 03 January 2019';// Next Moon perihel date
$moonaphel = '16:14 UTC 06 July 2018';// Next moon perihel date
$moonperigee = '14:49 UTC 27 February 2018';// Next moon perigee date
$moonapogee = '14:16 UTC 11 February 2018';// Next moon apogee date
$suneclipse = '20:51 UTC 15 February 2018';// Next sun eclipse
$mooneclipse = '13:29 UTC 31 January 2018';// Next moon eclipse date
while a Weather-Display system (like mine) shows $sunset = '5:30 pm'; // sunset time
$moonrisedate = '01/30/18'; // moon rise date
$moonrise = '4:58 pm'; // moon rise time
$moonsetdate = '01/31/18'; // moon set date
$moonset = '7:16 am'; // moon set time
$moonage = 'Moon age: 14 days,6 hours,56 minutes,100%'; // current age of the moon (days since new moon)
$moonphase = '100%'; // Moon phase %
$moonphasename = 'Full Moon'; // 10.36z addition
$morningciviltwilight = '6:44 am'; // morning civil twilight time (when the sun is 6 degrees below the horizon)
$eveningciviltwilight = '5:58 pm'; // evening civil twilight time
$morningastrotwilight = '5:42 am'; // morning astronimcal twilight time (when the sun is 12 to 18 degrees below the horizon)
$eveningastrotwilight = '7:00 pm'; // evening astronimcal twilight time (when the sun is 12 to 18 degrees below the horizon)
$marchequinox = '16:16 UTC March 20 2018'; // March equinox date
$junesolstice = '10:08 UTC June 21 2018'; // June solstice date
$sepequinox = '01:55 UTC September 23 2018'; // September equinox date
$decsolstice = '22:23 UTC December 21 2018'; // December solstice date
$moonperihel = '22:33 UTC January 3 2019'; // Next Moon perihel date
$moonaphel = '07:26 UTC July 5 2018'; // Next moon perihel date
$moonperigee = '14:50 UTC February 27 2018'; // Next moon perigee date
$moonapogee = '14:16 UTC February 11 2018'; // Next moon apogee date
$newmoon = '02:18 UTC January 17 2018'; // Date/time of the next/last new moon
$nextnewmoon = '21:06 UTC February 15 2018'; // Date/time of the next new moon for next month
$firstquarter = '22:21 UTC January 24 2018'; // Date/time of the next/last first quarter moon
$lastquarter = '15:55 UTC February 7 2018'; // Date/time of the next/last last quarter moon
$fullmoon = '13:27 UTC January 31 2018'; // Date/time of the next/last full moon
$fullmoondate = 'January 31 2018'; // Date of the next/last full moon (date only)
$suneclipse = '20:02 UTC July 12 2018 Eclipse Partial'; // Next sun eclipse
$mooneclipse = '05:31 UTC January 31 2018 Eclipse Total'; // Next moon eclipse date
Because weewx (imitating Weather-Display) doesn't provide the needed data, the moon info is not available.
You may be able to finesse ajax-dashboard.php into invoking get-USNO-sunmoon.php by changing if($SITE['WXsoftware'] == 'WD') {
to if(false and $SITE['WXsoftware'] == 'WD') {
to force it to use get-USNO-sunmoon.php instead.
Make sure your $SITE['latitude'] and $SITE['longitude'] are set correctly as that is what is used with the USNO query.
A similar change can be made in wxastronomy.php
if(isset($SITE['WXsoftware']) and $SITE['WXsoftware'] == 'WD') {
to if(false and isset($SITE['WXsoftware']) and $SITE['WXsoftware'] == 'WD') {
Hope this helps...
Best regards,
Ken