Author Topic: warning on WU-forecast.php, USNO-sunmoon.php  (Read 558 times)

0 Members and 1 Guest are viewing this topic.

Offline marzio

  • Member
  • *
  • Posts: 10
    • MeteoMaf
warning on WU-forecast.php, USNO-sunmoon.php
« on: September 30, 2019, 03:12:23 PM »
Hello everyone!
suddenly my weather web site shows the following warning messages:

"
Warning: count(): Parameter must be an array or an object that implements Countable in /home/meteo894/public_html/saratoga/WU-forecast.php on line 612

Warning: Division by zero in /home/meteo894/public_html/saratoga/WU-forecast.php on line 612

Warning: count(): Parameter must be an array or an object that implements Countable in /home/meteo894/public_html/saratoga/WU-forecast.php on line 613

Warning: count(): Parameter must be an array or an object that implements Countable in /home/meteo894/public_html/saratoga/WU-forecast.php on line 618

Warning: count(): Parameter must be an array or an object that implements Countable in /home/meteo894/public_html/saratoga/WU-forecast.php on line 618

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

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

"

the web site address is : ==> http://meteourbania.it/dati.php

thanks in advance for any help...

Marzio
« Last Edit: September 30, 2019, 03:35:25 PM by saratogaWX »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7630
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: warning on WU-forecast.php, USNO-sunmoon.php
« Reply #1 on: September 30, 2019, 03:40:56 PM »
The WU-forecast.php script no longer works as WeatherUnderground turned off the old API months ago.

There is a script to use the new TWC/WU API instead. 
https://saratoga-weather.org/scripts-WCforecast.php#WCforecast

Your get-USNO-sunmoon.php script likely needs updating also.
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 mikeym2m

  • Contributor
  • ***
  • Posts: 122
    • MikeyM's Thornhurst PA Weather
Re: warning on WU-forecast.php, USNO-sunmoon.php
« Reply #2 on: October 01, 2019, 03:11:40 PM »
Thanks Ken
I didn't notice my WU forecast wasn't working till I saw this post. Guess I haven't checked it lately. Thanks again!

Cheers

 [tup]

MikeyM
www.mikeymsweather.com

 

anything