|only shows "cannot access API"|
|2014-04-06 09:22:40 - In reply to message 1 from Olaf Kliemt|
Please check this online demo
This is based on this class .
So please make sure you have internet connection,
And for more info this class use (file_get_contents) method to Fetch data from weather API website.
Also it will be helpful if you sent me your code to call this class (Include city name, ..)
|2014-04-10 09:49:18 - In reply to message 2 from Samy Massoud|
|Olaf, as a test, try entering the name of a large city near you.|
As I was testing my (modified) 'Weather Widget Class' script for the proper display of very long city names, I received the 'Can't Access Weather API' - when I entered the same city name on the OpenWeatherMap site, I received the message that it could not find the city - although the 'Weather Widget Class' script was able to access the OpenWeatherMap API, it received back the reply "Error: Not found city" - unfortunately, Samy has not yet put in the code to display such error.
|2014-04-10 09:58:42 - In reply to message 3 from Ray Beriau|
Just checked the 'Weather Widget Class' script again and it does display the appropriate 'Error: Not found city' message (not truly in good english) when a city name is not found in the OpenWeatherMap city list database.