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

0 Members and 1 Guest are viewing this topic.

Offline Scobey

  • Member
  • *
  • Posts: 32
    • Scobey's Weather
Re: Is there a wxastronomy update
« Reply #200 on: February 15, 2024, 03:58:54 AM »
I've read this entire post but I don't see the solution to my problem;

"Date must be before Mon, 13 Nov 2023 00:27:00 -0900"

Thanks!

http://scoblic.net/wd/wxindex.php

Offline hcorrin

  • Senior Contributor
  • ****
  • Posts: 197
    • Ballaugh Weather
Re: Is there a wxastronomy update
« Reply #201 on: February 15, 2024, 04:20:12 AM »
Try the download in reply 135 in this thread

Offline meteosa

  • Member
  • *
  • Posts: 32
Re: Is there a wxastronomy update
« Reply #202 on: February 15, 2024, 07:37:29 AM »
An add-on note:

Using WD, Setup, Language, Use English for Web reports, Yes forces all the WD 'boilerplate' text in uploaded files to be English (as required by wxreports.php for translations in the Base-World/Base-Canada pages).

The dates in the date/time stamps will use the Language preference of the system that WD runs on.  Since you're likely running with a locale of Italy on the operating system, that is what WD uses to format dates with month names in it (like the moon and season dates).

so I can't do anything? I can't understand, sorry.
Isn't there a way to make the seasons update automatically?
Sorry, the page is this: https://www.meteosantangelo.it/dash/wxastronomy1.php

Offline Scobey

  • Member
  • *
  • Posts: 32
    • Scobey's Weather
Re: Is there a wxastronomy update
« Reply #203 on: October 14, 2024, 11:20:20 PM »
Where is my earth?

http://scoblic.net/wd/wxastronomy.php

Thanks!

Offline hcorrin

  • Senior Contributor
  • ****
  • Posts: 197
    • Ballaugh Weather
Re: Is there a wxastronomy update
« Reply #204 on: October 15, 2024, 04:05:21 AM »
Based on your link you are using Ken’s version which does not have the earth
https://www.hc-iom.co.uk/WD-AJAX/wxastronomy.php
The alternative version uses a different wxastronomy.php file which references an include file and that does have the earth
https://www.hc-iom.co.uk/WD-AJAX1/wxastronomy.php
« Last Edit: October 15, 2024, 04:07:53 AM by hcorrin »

Offline Scobey

  • Member
  • *
  • Posts: 32
    • Scobey's Weather
Re: Is there a wxastronomy update
« Reply #205 on: October 15, 2024, 07:56:30 PM »
Thanks for the info.
where do I find the alternate?

Offline hcorrin

  • Senior Contributor
  • ****
  • Posts: 197
    • Ballaugh Weather
Re: Is there a wxastronomy update
« Reply #206 on: October 16, 2024, 04:16:24 AM »
Try post 135 in this thread

Offline hcorrin

  • Senior Contributor
  • ****
  • Posts: 197
    • Ballaugh Weather
Re: Is there a wxastronomy update
« Reply #207 on: October 24, 2024, 05:34:07 PM »
my main sites on my host are not showing the sun graph    https://www.hc-iom.co.uk/WD-AJAX/wxastronomy.php
and gives with https://www.hc-iom.co.uk/WD-AJAX/sunposa.php

sunposa.php Version 3.60 - 11-Sep-2024
-- curl error: RC='0' Failed to connect to 2001:4d0:14:100::134: Network is unreachable
   URL: 'https://umbra.nascom.nasa.gov/images/latest_aia_304_tn.gif'
..Oops .. unable to fetch 'https://umbra.nascom.nasa.gov/images/latest_aia_304_tn.gif' .. exiting.

the alternate version https://www.hc-iom.co.uk/WD-AJAX1/wxastronomy.php does the same and this is also impacting the space info page not showing the sun images due to no connection

everything runs ok on my local server http://ballaugh.no-ip.biz:59202/WD-AJAX/wxastronomy.php, WD-AJAX1/wxastronomy.php and wxspace.php

only difference i am a where of is php on main is 8.2.24 and local is 8.2.5
so not really sure what happening

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9722
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Is there a wxastronomy update
« Reply #208 on: October 24, 2024, 06:05:30 PM »
The error message of
Quote
curl error: RC='0' Failed to connect to 2001:4d0:14:100::134: Network is unreachable
indicates that your webserver can't contact the umbra.nascom.nasa.gov service by IPV6.

Try changing sunposa.php
Code: [Select]
curl_setopt($ch, CURLOPT_TIMEOUT, 10);                                   // 2 sec data timeoutto
Code: [Select]
curl_setopt($ch, CURLOPT_TIMEOUT, 10);                                   // 2 sec data timeout
curl_setopt($ch,CURLOPT_IPRESOLVE,CURL_IPRESOLVE_V4);  // force IPV4 for connection
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 hcorrin

  • Senior Contributor
  • ****
  • Posts: 197
    • Ballaugh Weather
Re: Is there a wxastronomy update
« Reply #209 on: October 25, 2024, 04:01:22 AM »
ok put that in but now get

sunposa.php Version 3.60 - 11-Sep-2024
-- curl error: RC='0' Connection timed out after 5001 milliseconds
   URL: 'https://umbra.nascom.nasa.gov/images/latest_aia_304_tn.gif'
..Oops .. unable to fetch 'https://umbra.nascom.nasa.gov/images/latest_aia_304_tn.gif' .. exiting.

even tried timeout at 50 instead of the original 10 but no luck although I think that was the wrong timeout will try connectiontimeout from 5 to 10 later to see if that makes any difference
« Last Edit: October 25, 2024, 04:41:44 AM by hcorrin »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9722
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Is there a wxastronomy update
« Reply #210 on: October 25, 2024, 09:11:51 AM »
It may be that your webserver's IP (or the proxy IP, if proxy is used) is on a block list to umbra.nascom.nasa.gov.  If so, your hoster and NASA would have to resolve that issue.

Meanwhile, if there's a cached image for the sun, then changing sunposa.php from
Quote
    filemtime($cacheFileDir."jpsun.png") <= time() - 3600 or
to
Quote
    filemtime($cacheFileDir."jpsun.png") <= time() - 999999 or
will stop fetching the cache for a long 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 hcorrin

  • Senior Contributor
  • ****
  • Posts: 197
    • Ballaugh Weather
Re: Is there a wxastronomy update
« Reply #211 on: October 25, 2024, 05:12:48 PM »
ok how done that i also uploaded fresh files from my local unit that still connects ok so will see how it goes before raising a ticket with my host
thanks Ken