If you use Cumulus, please donate Image

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Error regarding USNO Sunmoon data

Discussion of Ken True's web site templates

Moderator: saratogaWX

User avatar
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Tue May 09, 2017 12:09 pm

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
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Sun Jul 02, 2017 10:52 pm

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
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: Error regarding USNO Sunmoon data

Postby saratogaWX » Mon Jul 03, 2017 1:11 am

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
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Mon Jul 03, 2017 11:13 am

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
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: Error regarding USNO Sunmoon data

Postby saratogaWX » Mon Jul 03, 2017 3:24 pm

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
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Wed Jul 05, 2017 11:54 am

Looks like its now resolving to the URL.
Regards Simon
https://www.conligwx.org
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: Error regarding USNO Sunmoon data

Postby saratogaWX » Wed Jul 05, 2017 6:33 pm

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
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Wed Jul 05, 2017 10:16 pm

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
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Wed Jul 26, 2017 3:23 pm

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
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Sat Jul 29, 2017 9:26 pm

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
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Wed Aug 02, 2017 6:16 pm

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
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: Error regarding USNO Sunmoon data

Postby saratogaWX » Wed Aug 02, 2017 7:48 pm

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: 821
Joined: Wed May 06, 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
Location: Saratoga, CA, USA
Contact:

Re: Error regarding USNO Sunmoon data

Postby saratogaWX » Wed Aug 02, 2017 9:17 pm

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
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Wed Aug 02, 2017 9:42 pm

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
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
Toxic17
Posts: 457
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Error regarding USNO Sunmoon data

Postby Toxic17 » Wed Aug 02, 2017 9:44 pm

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
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image


Return to “Saratoga Templates”

Who is online

Users browsing this forum: No registered users and 1 guest