2021-03-06, 12:07
(2021-03-06, 03:29)David Rad Wrote:Hi. Can you provide fix?(2021-03-05, 18:34)pkscout Wrote:Thanks, pkscout. That works like a charm!(2021-03-05, 06:35)David Rad Wrote: Yahoo had posted several times that its free weather api will be discontinued, but that was postponed several times. Now it seems finally gone, though not quite.There is a work around. I saw the update to Multiweather for Kodi 19 come across this morning. I applied the same fix to my local copy of Yahoo Weather on Kodi 18, and I have weather again. So for Kodi 18, it's just a matter of waiting for the update to be done for Yahoo Weather. If you don't want to wait and have some understanding of editing Python files, you can look at the changes for Multi-weather and apply them to Yahoo Weather. Here are the changes:
It seems like they are obscuring the location of the json file containing weather data, just like YouTube is obscuring the location of their videos.
For example, the url https://www.yahoo.com/news/_tdnews/api/resource/WeatherService;woeids=[56023011] displays fine in my Chrome browser, but the usual method of getting the data with requests.get(url) produces a 403 error.
Is there a workaround, or should we finally switch to another weather provider?
https://github.com/xbmc/repo-scripts/pull/1903/files
The changes made to the file weather.py in Multiweather need to be done to defaulty.py in Yahoo Weather.