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 4017) - 17 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:

Error regarding USNO Sunmoon data

Post by ConligWX »

Warning: Invalid argument supplied for foreach() in /share/htdocs/weather/get-USNO-sunmoon.php on line 359

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

I have deleted USNO-moondata.txt

but when it refreshes I get this inside.
HTTP/1.1 404 Not Found
Date: Sat, 01 Apr 2017 01:05:01 GMT
Server: Apache
Content-Length: 209
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /rstt/oneday was not found on this server.</p>
</body></html>
looks like the source is dead.

$USNOUrl = "http://199.211.133.93/rstt/oneday?date= ... myTZOffset";
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 »

Wow, they seem to have 'pruned' the site and the links to the One Day http://aa.usno.navy.mil/data/docs/RS_OneDay.php is 404-Not found
as are all references to an 'API'.

Hopefully, it's a temporary issue .. I'll send a note and ask about the future of those functions. Would be a shame to lose the only worldwide and accurate API for the moon ephemeris from the net...
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:Wow, they seem to have 'pruned' the site and the links to the One Day http://aa.usno.navy.mil/data/docs/RS_OneDay.php is 404-Not found
as are all references to an 'API'.

Hopefully, it's a temporary issue .. I'll send a note and ask about the future of those functions. Would be a shame to lose the only worldwide and accurate API for the moon ephemeris from the net...
Thanks Ken!
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:Wow, they seem to have 'pruned' the site and the links to the One Day http://aa.usno.navy.mil/data/docs/RS_OneDay.php is 404-Not found
as are all references to an 'API'.
looks like everything has gone!

http://www.usno.navy.mil/USNO/astronomi ... a-services

Data Services
Rise/Set/Transit/Twilight Data
  • Complete Sun and Moon Data for One Day
  • Table of Sunrise/Sunset, Moonrise/Moonset, or Twilight Times for an Entire Year
  • Rise/Set/Transit Times for Major Solar System Objects and Bright Stars
  • Duration of Daylight/Darkness Table for One Year
Phases of the Moon
  • Dates of Primary Phases of the Moon
  • Fraction of the Moon Illuminated
  • What the Moon Looks Like Now
Regards Simon

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

Image
Simnm
Posts: 4
Joined: Tue 15 Nov 2016 11:11 pm
Weather Station: Vantage Pro2
Operating System: Windows 10

Re: Error regarding USNO Sunmoon data

Post by Simnm »

Thank saratogaWX
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 did post a comment to the webmaster on the usno.navy.mil site asking about the missing scripts/API functions.

Haven't heard from them yet...
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 »

Yep me too. hopefully someone will answer on monday morning.
Regards Simon

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

Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Error regarding USNO Sunmoon data

Post by beteljuice »

Perhaps D.T. has determined the Sun and Moon is important to those of a certain following and issued an executive descision ?
Image
......................Imagine, what you will KNOW tomorrow !
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 »

:lol: However, we feel more like :bash: based on the pronouncements. Mostly, many of us are just :oops: :o :shock: :?

The good news is that the USNO site is back operational. Guess they restored the missing PHP scripts to the site for the queries. :groan:
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::lol: However, we feel more like :bash: based on the pronouncements. Mostly, many of us are just :oops: :o :shock: :?

The good news is that the USNO site is back operational. Guess they restored the missing PHP scripts to the site for the queries. :groan:
I think the whole DATA folder was missing.
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 »

But... the API is now working again. From a view-source of your homepage
<!-- get-USNO-sunmoon.php - Version 2.04 - 11-Nov-2015 -->
<!-- refetch seconds=3600 -->
<!-- using Cached version of ./cache/USNO-moondata.txt -->
<!-- unchunking response -->
<!-- in=860 out=860 bytes -->
<!-- processing JSON entries for Moon data -->
<!-- json_decode returns - No errors -->
<!-- note: 'curphase' not in JSON. Used 'closestphase' instead. -->
<!-- note: 'fracillum' not in JSON, 'illumination' set to '50%' based on moon phase of 'First Quarter'. -->
<!-- USNOdata
Array
(
[beginciviltwilight] => 06:13
[beginciviltwilightdate] => 03/04/2017
[sunrise] => 06:50
[sunrisedate] => 03/04/2017
[suntransit] => 13:26
[suntransitdate] => 03/04/2017
[sunset] => 20:03
[sunsetdate] => 03/04/2017
[endciviltwilight] => 20:40
[endciviltwilightdate] => 03/04/2017
[moonset] => 02:49
[moonsetdate] => 03/04/2017
[moonrise] => 11:20
[moonrisedate] => 03/04/2017
[moontransit] => 19:33
[moontransitdate] => 03/04/2017
[moonsetnext] => 03:44
[moonsetnextdate] => 04/04/2017
[moonphase] => First Quarter
[illumination] => 50%
[hoursofpossibledaylight] => 13:13
)
-->
:clap:
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:But... the API is now working again. From a view-source of your homepage
yep thats right, just the data folder was completely missing from http://aa.usno.navy.mil/data/ when the error appeared. looks liek all the links are now working again from that site:

http://www.usno.navy.mil/USNO/astronomi ... a-services
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 »

I'm seeing problems again with this script. anyone else? looks like the site is down.
Regards Simon

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

Image
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Error regarding USNO Sunmoon data

Post by PaulMy »

Yes, I also get this:
http://www.komokaweather.com/komokaweat ... ronomy.php
Warning: Invalid argument supplied for foreach() in /home/content/96/5379896/html/komokaweather-ca/get-USNO-sunmoon.php on line 359
Warning: Invalid argument supplied for foreach() in /home/content/96/5379896/html/komokaweather-ca/get-USNO-sunmoon.php on line 368


Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

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 »

This time, their DNS is fine, it's just the server that's having a problem.
<!-- loading ./cache/USNO-moondata.txt from http://api.usno.navy.mil/rstt/oneday?da ... 4323&tz=-7 -->
<!-- GET /rstt/oneday?date=05/03/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.136 conn=5.008 put=n/a get( blocks)=n/a close=n/a total=5.144 secs -->
<!-- fetch function elapsed= 5 secs. -->
Post Reply