Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weather not update since 11/04 #27

Open
clementhadrot opened this issue Apr 13, 2016 · 15 comments
Open

Weather not update since 11/04 #27

clementhadrot opened this issue Apr 13, 2016 · 15 comments

Comments

@clementhadrot
Copy link

Everything is in the title.

thank you in advance

@dziudek
Copy link
Contributor

dziudek commented Apr 14, 2016

Could you provide more details? Did you update the module to the latest version?

@cleizza
Copy link

cleizza commented Apr 15, 2016

After Apr 12 xml.weather.yahoo.com stopped updating the information, at least for my WOEID (468739). I did the following modifications in "/modules/mod_weather_gk4/helper.php" in order to fix it. I don't know if it's the proper way but it started working again for me.

Old Version 233
"curl_setopt($curl, CURLOPT_URL, 'http://xml.weather.yahoo.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"
New Version 233
"curl_setopt($curl, CURLOPT_URL, 'https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20=%20'.$this->config['WOEID'].'%20and%20u%20=%20\''.$this->config['tempUnit'].'\'&format=xml&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys');"

Old Version 250
"$this->content = file_get_contents('http://xml.weather.yahoo.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"
New Version 250
$this->content = file_get_contents('https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20=%20'.$this->config['WOEID'].'%20and%20u%20=%20\''.$this->config['tempUnit'].'\'&format=xml&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys');

Old Version 280
"curl_setopt($curl, CURLOPT_URL, 'http://xml.weather.yahoo.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"
New Version 280
"curl_setopt($curl, CURLOPT_URL, 'https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20=%20'.$this->config['WOEID'].'%20and%20u%20=%20\''.$this->config['tempUnit'].'\'&format=xml&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys');"

Old Version 296
"$this->content = file_get_contents('http://xml.weather.yahoo.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit'].$encoding_url);"
New Version 296
"$this->content = file_get_contents('https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20=%20'.$this->config['WOEID'].'%20and%20u%20=%20\''.$this->config['tempUnit'].'\'&format=xml&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys');"

Old Version 333
"if(strpos(current($xml->channel[0]->description), "Error") != FALSE) {"
New Version 333
"if(strpos(current($xml->results[0]->channel[0]->description), "Error") != FALSE) {"

Old Version 338-340
"$current_info = $xml->channel[0];
$current_info2 = $xml->channel[0]->item[0];
$forecast_info = $xml->channel[0]->item[0];"
New Version 338-340
"$current_info = $xml->results[0]->channel[0];
$current_info2 = $xml->results[0]->channel[0]->item[0];
$forecast_info = $xml->results[0]->channel[0]->item[0];"

Hope it helps.

@cleizza
Copy link

cleizza commented Apr 15, 2016

I just realized that the modifications I mentioned where for my J!3.0 installation, but the idea behind them are basically the same.

@teitbite
Copy link

I would like to report same issue. It's even the same on Gavick demo site: https://demo.gavick.com/joomla25/news2/

@bobgal69
Copy link

it's a yahoo problem. Looks like that the last build of weather data was on the April11th. Here the most 'recent' data for munich.
http://xml.weather.yahoo.com/forecastrss?w=676757&u=c

bob

language>en-us
lastBuildDate>Mon, 11 Apr 2016 6:49 pm CEST
ttl>60
day="Mon" date="11 Apr 2016" low="4" high="17" text="Showers Early" code="45" />
day="Tue" date="12 Apr 2016" low="7" high="19" text="AM Showers" code="39" />
day="Wed" date="13 Apr 2016" low="7" high="18" text="Partly Cloudy" code="30" />
day="Thu" date="14 Apr 2016" low="7" high="15" text="Rain" code="12" />
day="Fri" date="15 Apr 2016" low="7" high="16" text="AM Showers" code="39" />

@dziudek
Copy link
Contributor

dziudek commented Apr 18, 2016

@bobgal69 - you're right - I will investigate this issue tonight, because most probably we will need another way of retrieving Yahoo Weather API data in a way suggested by @cleizza

@dziudek
Copy link
Contributor

dziudek commented Apr 18, 2016

Thanks to @cleizza I have released updated v.1.7.3: https://github.com/GavickPro/Weather/releases/tag/v.1.7.3

Please remember - if it won't help, please remove the cache directory contents.

@TGoodrich
Copy link

I just updated weather module to 1.7.3 and so far so good. Weather appears to be displaying properly and so far no random Gantry 5 crashes/errors.

Thank you for the fix!

@andres199
Copy link

andres199 commented Apr 19, 2016

And Joomla 2.5?
I have module 1.7.0 and is not working

@dziudek
Copy link
Contributor

dziudek commented Apr 19, 2016

@andres199 - we not support modules for Joomla! 2.5 for a long time and I suggest you to migrate to J!3.x ASAP as your website can be vulnerable due security issues.

@andres199
Copy link

thanks dziudek, for the reply but I can not migrate. I'll have to change module. :(

@bobgal69
Copy link

Thanks for the fix and the great module!

best regards
Bob

@bobgal69
Copy link

Hi dziudek , I updated my xampp version to 1.73 but still receive the yellow '?'. cache/mod_weather.bxml and cache/mod_weather.backup.bxml are empty


and have the installation date / timestamp. Installation was based on
https://www.gavick.com/download/joomla-modules/weather
Any idea? Thanks and best regards
Markus

@dziudek
Copy link
Contributor

dziudek commented Apr 19, 2016

@bobgal69 - maybe for your WOEID API returns no weather data?

@lovthapa
Copy link

gavickpro version 1.7.1 weather data not updated joomla 3.6.5, how do i fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants