Weather GK4 Error message N/A

Easy to use and free Joomla module to display weather with forecast from Yahoo.
Rate this topic: Evaluations: 2, 6.00 on the average.Evaluations: 2, 6.00 on the average.Evaluations: 2, 6.00 on the average.Evaluations: 2, 6.00 on the average.Evaluations: 2, 6.00 on the average.Evaluations: 2, 6.00 on the average.6.00 out of 6 based on 2 vote(s)
GK User
Sat Mar 26, 2016 5:39 am
Hi, I have a joomla 3.4.8 website with news 2 template and Weather GK4 version 1.7.1. This website is online from October 2014. I have three weather modules on this website and I never had problems.
From yesterday all weather gk4 modules stop showing weather information and just show a message N/A in the places where you see current time, forecast and so on.
I tried with differents WOEID but the module is still not showing the weather information and shows message N/A instead.
Could you please help me ?

Thanks
Damian
User avatar
Fresh Boarder

GK User
Sun Mar 27, 2016 5:28 am
Is it possible that this extension uses Yahoo weather api ? I read on yahoo weather api webpage that they have increased security on that api a few days ago.
I think may be gk weather extensions is not retrieving weather information from yahoo because you have to update this extension to support this new security model required by yahoo api.
Can somebody from Gavick team check this out ? Here I copy message from yahoo weather api webpage:
https://developer.yahoo.com/weather/
Message: "To increase the security measure and better serving our YDN customers, weather data source will enforce OAuth 1 starting March 15, 2016. Please update your API calls with OAuth 1 enabled (via the OAuth /v1/yql end point if using YQL) using your Yahoo App key and secret".
User avatar
Fresh Boarder

GK User
Sun Mar 27, 2016 1:46 pm
I am having the same problem - I will need to switch to an alternative until the bug has been fixed. I think it may be down to upgrading to J3.5
User avatar
Fresh Boarder

GK User
Mon Mar 28, 2016 2:14 am
Hi, user tshopper sent me the solution by private message because he has a problem to post here and asked me to post the solution for everyone.
I can say that this fix is working ok, at least in my website, I have to thanks to user tshopper for the solution.
Here I copy the message with the solution:

Dear Damian, I also use the modul and have solve the problem.
There is any problem with the post function, so I can not post the workaround.
Please post the workaround at the forum for the other users. Thanks Matthias

Workaround for weather modul:
You must edit the "helper.php" at the modul direction ("/modules/mod_weather_gk4/helper.php").
You will find the entries at line 352 and line 369.

Old Version 352:
"curl_setopt($curl, CURLOPT_URL, 'http://weather.yahooapis.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"

New Version 352:
"curl_setopt($curl, CURLOPT_URL, 'http://xml.weather.yahoo.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"

Old Version 369:
"$this->content = file_get_contents('http://weather.yahooapis.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"

New Version 369:
"$this->content = file_get_contents('http://xml.weather.yahoo.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"
User avatar
Fresh Boarder

GK User
Mon Mar 28, 2016 5:28 pm
Thanks for sharing this.
The fix worked for me.
User avatar
Junior Boarder

GK User
Tue Mar 29, 2016 3:40 pm
Thank You, fix works fine :)
User avatar
Senior Boarder

GK User
Tue Mar 29, 2016 6:44 pm
Hi,

v.1.7.2 has been released - it is available in our download section or on the Github: https://github.com/GavickPro/Weather/re ... ag/v.1.7.2
User avatar
Moderator

GK User
Fri Apr 01, 2016 8:25 am
Thx a lot ! It works for me too.
User avatar
Fresh Boarder

GK User
Fri Apr 15, 2016 4:23 pm
Same here... please can You give us a FIX?! :)
User avatar
Fresh Boarder

GK User
Wed May 04, 2016 8:30 pm
I have the same problem: always getting a N/A, even with Warsaw. I updated the mod to ver. 1.7.2 and it's not working, I tried with the suggested code changes but the raw numbers don't match.
User avatar
Fresh Boarder

GK User
Thu May 05, 2016 9:20 am
@superoltd - please try to do following:

1) Install Weather v.1.7.3 (it is the latest version of the module)
2) Please make sure that you have set WOEID to: 523920 (for Warsaw)
3) Please set "External files -> Cache time" to 0
4) Please refresh your website and check the weather
5) If all is ok - please set "External files -> Cache time" to the previous value (i.e. 60)

For me it is working fine for Warsaw.
User avatar
Moderator

GK User
Thu May 05, 2016 5:25 pm
@Tidy: I carefully followed your advice, step by step and...

...it worked! Now everything seems to be ok, thank you very much!!
User avatar
Fresh Boarder


cron