Author Topic: get-USNO-sunmoon.php not working  (Read 711 times)

0 Members and 1 Guest are viewing this topic.

Offline steviebaby59

  • Member
  • *
  • Posts: 37
    • Empire Prairie Weather
get-USNO-sunmoon.php not working
« on: April 22, 2018, 12:29:30 PM »
My almanac times have failed to update for several days. I've uploaded all the latest scripts to no avail.

Here is the error I get on the astronomy page:

Warning: Invalid argument supplied for foreach() in /home/a5675/public_html/get-USNO-sunmoon.php on line 359

Warning: Invalid argument supplied for foreach() in /home/a5675/public_html/get-USNO-sunmoon.php on line 368
Sun

Seems like I've ran into this issue before, but I forgot how to resolve it.

Any suggestions?  :roll:

www.empireprairieweather.com

Online Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 520
    • Lake Huron Weather
Re: get-USNO-sunmoon.php not working
« Reply #1 on: April 22, 2018, 01:51:30 PM »
Try taking a look at this thread, it may help.
http://www.wxforum.net/index.php?topic=34279.msg348149#msg348149

Davis Vantage Pro2, Serial Data Logger
WD 10.37S-(b60), VWS V15.00p03, Weatherlink 6.0.3,  Fling 2.35, Broadwave 2.0, Win 7 Pro 64Bit
KMICHEBO10 - CW3699 - Cheboygan, MI

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6880
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: get-USNO-sunmoon.php not working
« Reply #2 on: April 22, 2018, 01:54:41 PM »
In your Settings.php put
Code: [Select]
$SITE['useUSNO'] = false; to use internal calculations instead of the USNO for moon times.

The USNO website is having problems right now.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline steviebaby59

  • Member
  • *
  • Posts: 37
    • Empire Prairie Weather
Re: get-USNO-sunmoon.php not working
« Reply #3 on: April 22, 2018, 04:11:51 PM »
Do I just need to add this line? If so, where at in the Settings.php? I couldn't locate a line that resembled this. I tried to add it in different locations. Nothing seemed to help.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6880
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: get-USNO-sunmoon.php not working
« Reply #4 on: April 22, 2018, 09:37:26 PM »
Yes, just add the line where you like in Settings.php

You have to have get-USNO-sunmoon.php V3.x installed for it to work.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline steviebaby59

  • Member
  • *
  • Posts: 37
    • Empire Prairie Weather
Re: get-USNO-sunmoon.php not working
« Reply #5 on: April 22, 2018, 11:57:54 PM »
OK got it! THANKS! :lol: