Like to help out with hosting costs for WXForum.net? Use the donate page. Thanks!
0 Members and 1 Guest are viewing this topic.
Where are your editing that width? In the include?
Ken,That version 1.11 changed my season back to summer.You can see at https://www.shermanctweather.org/mb/wxastronomy.phpTom
$SITE['WXtags'] = '../meteo/testtags.php';
if ((include_once "../meteo/testtags.php") == 0)
$marchequinox = '21:25 UTC March 20 2023'; // March equinox date$junesolstice = '14:58 UTC June 21 2023'; // June solstice date$sepequinox = '06:51 UTC September 23 2023'; // September equinox date$decsolstice = '03:28 UTC December 22 2023'; // December solstice date
case ($date< $JunSol ): $currentSeason = $SITE['latitude' ]<0 ? 'Autumn' : 'Spring'; break;
case ($date< $dateJunSol): $currentSeason = $SITE['latitude' ]<0 ? 'Autumn' : 'Spring'; break;
case ($date< $DecSol ): $currentSeason = $SITE['latitude' ]<0 ? 'Spring' : 'Autumn'; break;
case ($date< $dateDecSol): $currentSeason = $SITE['latitude' ]<0 ? 'Spring' : 'Autumn'; break;
My transit is also has dashes as well with version 1.11.https://www.goblesweather.com/wxastronomy.phpChuck
Warning: Undefined variable $moontransittime in /home/goblesweather/www/www/include-wxastronomy.php on line 269
$moontransittime = '%moontransittime%'; // Moon transit time$moontransit = '%moontransit%'; // Moon transit date time
Only thing I'm seeing is an issue with my moon transit and moonrise. Showing dashes. Ken, yours shows the data. Does that need to come from WD in my testtags? Because my graphics at the bottom shows the info.https://www.bismarckweather.net/wxastronomy.php
I looked at my testtags.php file that is uploaded. I have these in there.$moontransittime = '06:05'; // Moon transit time$suntransittime = '13:39'; //Sun transit time$moontransit = '06:05 05 10 2023'; // Moon transit date time$hoursofpossibledaylight = '14:49';
// SETUP MOON INFO ... from WD testtags.php and include-mooninfo.php $mr = strtotime($moonrise); $mt = isset($moontransit)?strtotime($moontransit):''; $ms = strtotime($moonset); if(isset($moontransit)) { $mtt = explode("Local",$moontransit); $mt = strtotime($mtt[0]); } else { $mt = ''; }
// SETUP MOON INFO ... from WD testtags.php and include-mooninfo.php $mr = strtotime($moonrise); $mt = strtotime($moontransittime); $ms = strtotime($moonset); #$mtt = explode("Local",$moontransit); #$mt = strtotime($mtt[0]);