Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Error regarding USNO Sunmoon data

Discussion of Ken True's web site templates

Moderator: saratogaWX

User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

Just FYI:
From Tuesday, 2 May 2017 through Friday, 12 May 2017 the Naval Observatory will perform scheduled network maintenance.
Network degradations or outages impacting our product delivery are possible but should be temporary in nature.
Source: http://aa.usno.navy.mil/data/docs/RS_OneDay.php
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

looks like the site is down again.

had the usual error again...
Warning: Invalid argument supplied for foreach() in /../../../../get-USNO-sunmoon.php on line 359

Warning: Invalid argument supplied for foreach() in /../../../../get-USNO-sunmoon.php on line 368
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Error regarding USNO Sunmoon data

Post by saratogaWX »

Yes, the api.usno.navy.mil server is down
<!-- get-USNO-sunmoon.php - Version 2.04 - 11-Nov-2015 -->
<!-- refetch seconds=1 -->
<!-- loading ./cache/USNO-moondata.txt from http://api.usno.navy.mil/rstt/oneday?da ... 4323&tz=-7 -->
<!-- GET /rstt/oneday?date=07/02/2017&coords=37.27153397,-122.02274323&tz=-7 HTTP/1.1
Host: api.usno.navy.mil Port: 80 IP=199.211.133.93-->
<!-- Network error: Connection timed out (110) -->
<!-- HTTP stats: dns=0.102 conn=5.005 put=n/a get( blocks)=n/a close=n/a total=5.107 secs -->
<!-- fetch function elapsed= 5 secs. -->
<!-- loading finished. -->
<!-- processing JSON entries for Moon data -->
<!-- json_decode returns - No errors -->
<!-- note: 'fracillum' not in JSON, no 'illumination' is available. -->
<!-- USNOdata
Array
(
)
-->
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

saratogaWX wrote:Yes, the api.usno.navy.mil server is down
Ken, Do you have a contact address for them?
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Error regarding USNO Sunmoon data

Post by saratogaWX »

I've found that hostmaster@navy.mil generally gets a response.

I've sent them a note about the issue, and used http://www.usno.navy.mil/help/astronomy-help (selecting Astronomy Data Services) to send an additional email.

Hopefully, one or the other will get the issue with api.usno.navy.mil resolved soon.
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

Looks like its now resolving to the URL.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Error regarding USNO Sunmoon data

Post by saratogaWX »

Yes, they replied to my 'it's down' message this morning with
The site is now up.

Sincerely,

Astronomical Applications Department.
I guess the webmaster for api.usno.navy.mil took a 4-day July 4th holiday and returned to fix the server. :roll:
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

saratogaWX wrote:Yes, they replied to my 'it's down' message this morning with
The site is now up.

Sincerely,

Astronomical Applications Department.
I guess the webmaster for api.usno.navy.mil took a 4-day July 4th holiday and returned to fix the server. :roll:
yep looks that way, I too got an email from them, so at least someone works there ;)
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

Ken

I thought I have an issue again with USNO data, but I noticed the file was 0 bytes in size. deleted the USNO-moondata.txt and refreshed the page fixed the issue.

Is there a possibility that there could be a file check added to the script to check its size and if it is zero bytes then delete it?

Just a suggestion...
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

Well at least the US Navy are consistent with their outages I guess :)

I've noticed again the link has been offline for 2 days now. I have emailed them again.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

got an email from USNO, but so far no update to when this issue is going to be fixed :(
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Error regarding USNO Sunmoon data

Post by saratogaWX »

As did I, yesterday. Got the note back today
Good morning,

We are still experiencing technical difficulties with our website. We hope it will be back soon.

Respectfully,
MRCF

________________________________________
From: portal @ usno.navy.mil
Sent: Tuesday, August 01, 2017 1:17 PM
To: NAVOBSY_AA-Help
Subject: Astronomical data services

Your E-Mail Address
webmaster at saratoga-weather.org

Astronomy Topics
- Astronomical data services

Question
<div>It appears that api.usno.navy.mil and http://aa.usno.navy.mil/data/docs/RS_OneDay.php are not working.
<br />
<br />Please give the webserver(s) a kick to get them started again.
<br />
<br />This has been going on for several days.</div>
It is quite frustrating to have the service behave so poorly after a long time working without a hitch.. It was back for a couple of hours this morning, but is down again. I suppose they restarted it and it clogged up again.
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Error regarding USNO Sunmoon data

Post by saratogaWX »

I put together a test page that compares the Sun/Moon data from the USNO to that provided by various weather software and scripts.

Image

As you can see, not all the software provides all the data needed. The blue bars highlight the needed data for the Saratoga template.
The red boxes highlight that data as missing from the software/script.

Also note the variations in the times v.s. the data from the USNO (for my latitude/longitude). That's kinda why I decided to use the USNO as the prime source.
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

saratogaWX wrote:It is quite frustrating to have the service behave so poorly after a long time working without a hitch.. It was back for a couple of hours this morning, but is down again. I suppose they restarted it and it clogged up again.
here's the reply I got today, fro me asking for an update into the outage.
NAVOBSY_AA-Help
14:02 (8 hours ago)

to me
Good morning,

Unfortunately, we do not yet have an update.

Respectfully,
MRCF
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Post by ConligWX »

saratogaWX wrote:I put together a test page that compares the Sun/Moon data from the USNO to that provided by various weather software and scripts.

Image

As you can see, not all the software provides all the data needed. The blue bars highlight the needed data for the Saratoga template.
The red boxes highlight that data as missing from the software/script.

Also note the variations in the times v.s. the data from the USNO (for my latitude/longitude). That's kinda why I decided to use the USNO as the prime source.
Excellent. Just curious, does WU data not include sun/moon data for the Weather Stations site via the wu api?
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
Post Reply