Closed Biscoooooooooo closed 8 months ago
Apparently, the API version for openweather has changed to 3.0.. You can update this in the above file-
From
const baseWeatherURL='https://api.openweathermap.org/data/2.5/onecall';
to
const baseWeatherURL='https://api.openweathermap.org/data/3.0/onecall';
I will push an update to the scripts soon.
I change it to 3.0 but it is still not working
Do you see any errors when you run the script in scriptable? Unfortunately, I don't have a device right now where I can test this myself but should be available in few days.
I changed it But I still can’t get data
Apparently your old openweather api key won't work with 3.0 API call. You will need to "Subscribe" to openweather's new "One Call API 3.0" subscription which offers 1000 free API calls per day and charges there after.
More information here.
I have been meaning to rewrite these scripts to use weather data from shortcuts app and pass it on to scriptable but haven't got much time to work on it yet. Hopefully sometime in the near future.
So I need to 「subscribe」it ?