Author Topic: Saratoga template update - get-USNO-sunmoon.php V2.04  (Read 1336 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Saratoga template update - get-USNO-sunmoon.php V2.04
« on: November 11, 2015, 11:51:19 AM »
Thanks to the debugging efforts by BCJKiwi of Silver Acorn Weather in Auckland, NZ, there is now an update (V2.04) to address the issue of the sun/moon times shifting after UTC midnight.  The issue was the query with date=today in it.. the USNO assumed 'today' was 'today' at their server and ignored the TZ offset.

This was fixed by doing the query with the current local date instead, and adding some code to refresh the cache if the cache was not from a query with the current local date.

Thanks BCJKiwi for your dilligence in running this issue (especially for New Zealand folks).  =D>

Update available from the update tool page using query Base-*,Plugin-* 11-Nov-2015

Best regards,
Ken
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 BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: Saratoga template update - get-USNO-sunmoon.php V2.04
« Reply #1 on: March 31, 2017, 10:19:06 PM »
Hi Ken,

It seems ver 2.04 of Get-USNO-sunmoon.php has stopped working again.

Don't know if this is temporary or how long it has been going on as it was picked up in our server logs - issues with foreach().

Have tested both
http://api.usno.navy.mil/rstt/oneday?date=today&coords=S36.909444,E174.771111&tz=13
http://199.211.133.93/rstt/oneday?date=tomorrow&coords=S36.909444,E174.771111&tz=12

and various combinations of the URL only and am unable to get a response.
Has the site shifted or is it just down??

Thanks

Offline Simnm

  • Member
  • *
  • Posts: 8
    • Meteoso
Re: Saratoga template update - get-USNO-sunmoon.php V2.04
« Reply #2 on: April 01, 2017, 09:09:39 PM »
I have the same problem since some day.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga template update - get-USNO-sunmoon.php V2.04
« Reply #3 on: April 01, 2017, 11:26:12 PM »
Yes, it's broken because their site is broken (missing scripts)

https://www.wxforum.net/index.php?topic=31832.msg319839#msg319839
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