WXforum.net
Web Weather => Weather Website PHP/AJAX scripting => Custom Website Templates => Topic started by: ea1hmy on August 02, 2017, 08:24:35 AM
-
Hi, I downloaded the script yahoo changes and I get a script from: noaa_warn.
It's a bug or it's the one that modifies yahoo
The zip is the same as:changes for noaas warnings
I have both lowered and are the same
emilio
-
Hi, I downloaded the script yahoo changes and I get a script from: noaa_warn.
It's a bug or it's the one that modifies yahoo
The zip is the same as:changes for noaas warnings
I have both lowered and are the same
emilio
Sorry for the problems:
Support site: https://support.leuven-template.eu/problems28.php?lang=en
Issue date: 2017-07-26
Solution text: Download zip of new version of weather28/forecasts/yahoo.weather2.php (http://leuven-template.eu/updxx20170725_all.zip)
Download link in above text: http://leuven-template.eu/updxx20170725_all.zip
The NOAA/NWS download is ..... /updxx_20170621_usa.zip and should not be used for European users.
If you do not get the correct data, the original download is attached to this post,
Wim
-
The error continues
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/meteotorrelavega.com/httpdocs/weather28/forecasts/yahooForecast2.php on line 62
I have also noticed that in version 28k in: UserSettings.php there is the line: $ SITE ["use_testtags"] = true;
#-o
emilio
-
The error continues
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/meteotorrelavega.com/httpdocs/weather28/forecasts/yahooForecast2.php on line 62
I have no idea how this works at your site.
When I check the script at your site: http://www.meteotorrelavega.com/weather28/forecasts/yahoo.weather2.php?sce=view
it uses the new https linkhttps://query.yahooapis.com/v1/public/yql?q=select+%2A+from+weather.forecast+where+woeid%3D/
When I check the html generated from this script http://www.meteotorrelavega.com/weather28/index.php?p=yahooForecast2&lang=es&force=yahoo&ipad it is from the old version running with a different url
<!-- module yahooForecast2.php (38): loading yahoo.weather2.php -->
<!-- module yahoo.weather2.php ==== version: 3.21 2016-03-28 -->
<!-- module yahoo.weather2.php - getWeatherData (95) Load from cache skipped as force was used -->
<!-- module yahoo.weather2.php - useCurl (300) (http://weather.yahooapis.com/forecastrss?w=4532085&u=c) loading with CURL -->
<!-- module yahoo.weather2.php - useCurl (303): loading yahoo_curl.php -->
<!-- module yahoo_curl.php ==== version: 0.01 2016-03-28 -->
<!-- module yahoo.weather2.php - checkCurlData (322) empty data -->
Checking the line numbers it also loads an old script yahoo_curl.php which is not used anymore, and it is also not mentioned in the script itself now, check the sce=view above.
So there is nothing I can do as long as the new script is not run.
I have also noticed that in version 28k in: UserSettings.php there is the line: $ SITE ["use_testtags"] = true;
#-o
emilio
That setting is inserted during setup for WD and ConsoleWD users only, and it is false
Below the code from the settings generator.
if ($wp == 'WD' || $wp == 'CW' ) {
$setting_str .= '#
#---------------------------------------------------------
# COMPATIBILLITY for WeatherDisplay / consoleWD users
# set to true ONLY if it is ABSOLUTELY necessary to use testtags.php from Saratoga or Leuven
#---------------------------------------------------------
$SITE["use_testtags"] = false;
';
}
The only way it can read true is when someone set it that way manually AFTER the settings where generated..
Wim
-
This is the html as returned when running the correct version
<!-- module yahooForecast2.php (38): loading yahoo.weather2.php -->
<!-- module yahoo.weather2.php ==== version: 3.21 2016-03-28 -->
<!-- module yahoo.weather2.php - getWeatherData (95) Load from cache skipped as force was used -->
<!-- module yahoo.weather2.php - useCurl (303) (https://query.yahooapis.com/v1/public/yql?q=select+%2A+from+weather.forecast+where+woeid%3D973505&format=xml&u=c) loading with CURL -->
<!-- module yahoo.weather2.php - useCurl (316): Return codes:Array
(
[url] => https://query.yahooapis.com/v1/public/yql?q=select+%2A+from+weather.forecast+where+woeid%3D973505&format=xml&u=c
Wim
-
Thanks for your help, I'll try to see why it does not work
The error continues
emilio