Re: Possible drop in replacement for Fantastic Weather plugi
Posted: Mon Apr 24, 2023 5:32 am
neilk wrote:It seems he changed the sign up process...
That's helpful to know. I hadn't realized that the sign-up process changed.
Software Support and Home Automation Forum
https://forums.indigodomo.com/
neilk wrote:It seems he changed the sign up process...
https://api.pirateweather.net/forecast/<your_api_key>/45.4215,-75.6972?units=ca
https://dev.pirateweather.net/forecast/<your_api_key>/45.4215,-75.6972??exclude='minutely'&extend=''&units=auto&lang=en
{"message":"Forbidden",
"Subscription":"Ensure that subscribe is clicked for this endpoint: https://pirateweather.net/apis/hv9nrw1tjg/Beta",
"Help":"For other issues, please contact api@alexanderrey.ca"}
f"https://dev.pirateweather.net/forecast/{api_key}/{latitude},{longitude}?"
f"https://api.pirateweather.net/forecast/{api_key}/{latitude},{longitude}?"
neilk wrote:My working theory is that people who registered earlier had access to a beta/developer endpoint in the API, but the newer accounts do not.
In my case changing line 940 of plugin.py from
- Code: Select all
f"https://dev.pirateweather.net/forecast/{api_key}/{latitude},{longitude}?"
to
- Code: Select all
f"https://api.pirateweather.net/forecast/{api_key}/{latitude},{longitude}?"
Got me working.
It is not hugely difficult to do, the file is
And as you navigate to the plugin folder - use the "show package contents" option then use the editor of your choice to make the change and restart the plugin and refresh the weather data.
Neil