Author Topic: Is there a wxastronomy update  (Read 13349 times)

0 Members and 1 Guest are viewing this topic.

Offline hcorrin

  • Contributor
  • ***
  • Posts: 126
    • Ballaugh Weather
Re: Is there a wxastronomy update
« Reply #125 on: May 07, 2023, 06:08:28 PM »
which version of the include-wxastronomy.php are you using lines 34 to 36 show it depending on version
if line 34 has #  Version 1.10 - 02-Oct-2022 - adapted for PHP8+ by saratoga-weather.org
and line 35 has //--self downloader --
then that shows summer

if line 35 has # updated by Saratoga-Weather.org for PHP 8.2
and line 36 has ############ Version 20221230 ################
 then that shows spring
the latter is the latest version which is on post 52 of https://www.wxforum.net/index.php?topic=43337.50

Offline tigerbait

  • Member
  • *
  • Posts: 40
    • Ellerbe Weather
Re: Is there a wxastronomy update
« Reply #126 on: May 07, 2023, 09:00:28 PM »
Thanks hcorrin. Had the older version. Made changes  to line #240 from CUtags.php to testtags.php and worked perfectly with some additional earth views.

Thanks again.
« Last Edit: May 07, 2023, 09:03:53 PM by tigerbait »
https://www.sporttiger.com
Davis VP2 Weather Display
Saratoga scripts

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Is there a wxastronomy update
« Reply #127 on: May 08, 2023, 06:06:48 AM »
Good Morning!  Ok, so I have downloaded, configured the script and uploaded to my webserver.  Now, the moondetail1.gif and moondetail2.gif are not displayed.  I did change on Line 240ish from CUTags to testtags.  Any Ideas?  Thank You in advance!

Offline hcorrin

  • Contributor
  • ***
  • Posts: 126
    • Ballaugh Weather
Re: Is there a wxastronomy update
« Reply #128 on: May 08, 2023, 06:31:41 AM »
Have you setup lines 69 and 70 as they are to do with moondeatail

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Is there a wxastronomy update
« Reply #129 on: May 08, 2023, 07:06:01 AM »
hcorrin,
  Thank You!  Up and running at https://csraweather.org/wxastronomy.php

I did notice that the additional earth views are wider than the standard Saratoga legacy page of 800px.  I will go and configure the widthpx of those images later today.

Cheers!

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Is there a wxastronomy update
« Reply #130 on: May 08, 2023, 08:53:05 AM »
Where are your editing that width?  In the include?
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Is there a wxastronomy update
« Reply #131 on: May 08, 2023, 09:03:28 AM »
Yes, I was going to start with include-wxastronomy.php first....but, not really sure....

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Is there a wxastronomy update
« Reply #132 on: May 08, 2023, 09:05:53 AM »
A distinct possibility is they are in an image file somewhere?

Offline tigerbait

  • Member
  • *
  • Posts: 40
    • Ellerbe Weather
Re: Is there a wxastronomy update
« Reply #133 on: May 08, 2023, 09:37:38 AM »
Where are your editing that width?  In the include?
in the include-astronomy.php
Line 648
Change imgsize=700 to 380
https://www.sporttiger.com
Davis VP2 Weather Display
Saratoga scripts

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Is there a wxastronomy update
« Reply #134 on: May 08, 2023, 09:38:45 AM »
Thanks, Alan!

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Is there a wxastronomy update
« Reply #135 on: May 08, 2023, 03:57:52 PM »
I fixed a couple of issues (wrong season showing, moon data to 2030 instead of ending at 2023) with V1.11 (attached)
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline scudwatcher

  • Billy T. Forecaster Webmaster csraweather.net
  • Senior Contributor
  • ****
  • Posts: 157
  • Amateur Radio KC4SRA csraweather.net
    • CSRA Weather
Re: Is there a wxastronomy update
« Reply #136 on: May 08, 2023, 04:17:15 PM »
Thanks, Ken!

Offline weatherbee

  • Senior Contributor
  • ****
  • Posts: 210
    • Sherman Ct. Weather
Re: Is there a wxastronomy update
« Reply #137 on: May 08, 2023, 04:24:01 PM »
Ken,
That version 1.11 changed my season back to summer.
You can see at https://www.shermanctweather.org/mb/wxastronomy.php
Tom

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Is there a wxastronomy update
« Reply #138 on: May 08, 2023, 04:42:44 PM »
Ken,
That version 1.11 changed my season back to summer.
You can see at https://www.shermanctweather.org/mb/wxastronomy.php
Tom
I thought it might be caused by your site not having testtags.php in the same directory as the page.  Your Settings-weather.php has
Code: [Select]
$SITE['WXtags']            = '../meteo/testtags.php';
I do see you've changed include-wxastronomy.php to
Code: [Select]
if ((include_once "../meteo/testtags.php") == 0)
so that should be working correctly to get the data.  Your testtags.php does have
Code: [Select]
$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
which is the same as mine (which is working)
So I'm at a loss as to why your instance isn't working  :???:  :shock:
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline weatherbee

  • Senior Contributor
  • ****
  • Posts: 210
    • Sherman Ct. Weather
Re: Is there a wxastronomy update
« Reply #139 on: May 08, 2023, 04:54:18 PM »
Thanks Ken for looking.
It did work with Version 20221230 so I will look at that to see what is different.
Thanks,
Tom

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Is there a wxastronomy update
« Reply #140 on: May 08, 2023, 05:00:53 PM »
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
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline tigerbait

  • Member
  • *
  • Posts: 40
    • Ellerbe Weather
Re: Is there a wxastronomy update
« Reply #141 on: May 08, 2023, 05:09:31 PM »
Thank you Ken!!  I added the Current Sunlight maps back
https://www.sporttiger.com
Davis VP2 Weather Display
Saratoga scripts

Offline weatherbee

  • Senior Contributor
  • ****
  • Posts: 210
    • Sherman Ct. Weather
Re: Is there a wxastronomy update
« Reply #142 on: May 08, 2023, 05:34:49 PM »
Ken,
I just replaced the section SETUP CURRENT SEASON with
Code: [Select]
    case ($date< $JunSol     ): $currentSeason = $SITE['latitude' ]<0 ? 'Autumn' : 'Spring'; break;with
Code: [Select]
   case ($date< $dateJunSol): $currentSeason = $SITE['latitude' ]<0 ? 'Autumn' : 'Spring'; break;
   
and
Code: [Select]
   case ($date< $DecSol     ): $currentSeason = $SITE['latitude' ]<0 ? 'Spring' : 'Autumn'; break; with
Code: [Select]
case ($date< $dateDecSol): $currentSeason = $SITE['latitude' ]<0 ? 'Spring' : 'Autumn'; break;
 
It is working now.
Thanks,
Tom

Offline tigerbait

  • Member
  • *
  • Posts: 40
    • Ellerbe Weather
Re: Is there a wxastronomy update
« Reply #143 on: May 08, 2023, 11:29:03 PM »
So just an opinion.  Are the Sunlight maps to much?
https://www.sporttiger.com/wxastronomy.php
« Last Edit: May 09, 2023, 10:15:21 AM by saratogaWX »
https://www.sporttiger.com
Davis VP2 Weather Display
Saratoga scripts

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: Is there a wxastronomy update
« Reply #144 on: May 09, 2023, 05:24:16 PM »
My transit is also has dashes as well with version 1.11.

https://www.goblesweather.com/wxastronomy.php

Chuck

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Is there a wxastronomy update
« Reply #145 on: May 09, 2023, 07:10:20 PM »
My transit is also has dashes as well with version 1.11.

https://www.goblesweather.com/wxastronomy.php

Chuck
looks like you're getting a error
Quote
Warning: Undefined variable $moontransittime in /home/goblesweather/www/www/include-wxastronomy.php on line 269

$moontransittime should be in your testtags.txt template:

Code: [Select]
$moontransittime = '%moontransittime%'; // Moon transit time
$moontransit = '%moontransit%'; // Moon transit date time
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Is there a wxastronomy update
« Reply #146 on: May 09, 2023, 07:13:16 PM »
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
Same issue as above .. missing entries in testtags.txt template.
Code: [Select]
$moontransittime = '%moontransittime%'; // Moon transit time
$moontransit = '%moontransit%'; // Moon transit date time
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Is there a wxastronomy update
« Reply #147 on: May 10, 2023, 09:22:07 AM »
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';
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Is there a wxastronomy update
« Reply #148 on: May 10, 2023, 11:06:27 AM »
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';

It seems your include-wxastronomy.php has  this
Code: [Select]
// 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 = '';
}
instead of my release with
Code: [Select]
// 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]);
and that's likely the cause of the '-----' issue.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Is there a wxastronomy update
« Reply #149 on: May 10, 2023, 11:53:19 AM »
Fixed.  Thanks Ken.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

 

anything