WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: ValentineWeather on November 13, 2018, 04:17:05 PM

Title: https://www.usno.navy.mil/USNO/astronomical-applications
Post by: ValentineWeather on November 13, 2018, 04:17:05 PM
Looks like it's down. I had to disable today site was taking 30 seconds to load.    get-USNO-sunmoon.php
Title: Re: https://www.usno.navy.mil/USNO/astronomical-applications
Post by: saratogaWX on November 13, 2018, 04:19:59 PM
Use the get-USNO-sunmoon.php 3.01 - 20-Oct-2017 and insert a $SITE['useUSNO'] = false; into your Settings.php and it will use internal calculations instead of calling on the api.usno.navy.mil site.
Title: Re: https://www.usno.navy.mil/USNO/astronomical-applications
Post by: ValentineWeather on November 13, 2018, 04:47:57 PM
Use the get-USNO-sunmoon.php 3.01 - 20-Oct-2017 and insert a $SITE['useUSNO'] = false; into your Settings.php and it will use internal calculations instead of calling on the api.usno.navy.mil site.

Will do thanks.
Title: Re: https://www.usno.navy.mil/USNO/astronomical-applications
Post by: ValentineWeather on November 13, 2018, 05:08:11 PM
Is there a special place for:
$SITE['useUSNO'] = false


Everywhere I try messes up index.
Title: Re: https://www.usno.navy.mil/USNO/astronomical-applications
Post by: ValentineWeather on November 13, 2018, 05:18:55 PM
My bad forgot the end, working now
 $SITE['useUSNO'] = false;

Site navy.mil is back up but going to allow the internal to work. Looks only 1-2 minutes off today, good enough for me.