Page 1 of 1

Support for free Openweather

Posted: Monday 07 August 2023 19:44
by MasMat
As per recent discussion, it would be great if weather-block would support the free plan as well.

Link to relevant post with code : viewtopic.php?p=304716#p304716

Re: Support for free Openweather

Posted: Monday 07 August 2023 22:51
by Lokonli
Dashticz supports OWM 3, which is free for 1000 calls per day.

OpenWeatherMap doesn't support the 2.5 API for new accounts.

Can you use owm3?

Re: Support for free Openweather

Posted: Wednesday 09 August 2023 7:41
by MasMat
Yes, of course. But it involves giving payment info and I think it should be avoidable.
Just looking at the code, support for the free version should be easy to implement. That's why I'm asking.
I understand if this is not a priority -- or even worth the trouble.

Re: Support for free Openweather

Posted: Wednesday 09 August 2023 11:55
by Lokonli
MasMat wrote: Wednesday 09 August 2023 7:41 Yes, of course. But it involves giving payment info and I think it should be avoidable.
Just looking at the code, support for the free version should be easy to implement. That's why I'm asking.
I understand if this is not a priority -- or even worth the trouble.
Can you give a link to the free version? I've only seen the 3.0 version, for which you indeed have to provide payment info.

Re: Support for free Openweather

Posted: Tuesday 15 August 2023 7:26
by MasMat
So the free version just requires sign-up and no credit card info etc (verify email I think was all I had to do):
https://openweathermap.org/price
The link "Get API key" just makes you create a sign-up and from there you can create API keys.
The limits are 60 calls/min and 1M/month.

Once you have the free API key, this link (viewtopic.php?p=304716#p304716) shows the API-call address difference.
Could this usage be implemented simply by adding a new "provider" for example "owm_free"?

Re: Support for free Openweather

Posted: Wednesday 16 August 2023 6:53
by Lokonli
Excellent.

I'll add that.

Re: Support for free Openweather

Posted: Friday 18 August 2023 5:44
by MasMat
Wow! Thanks! :D

Re: Support for free Openweather

Posted: Thursday 24 August 2023 22:18
by Lokonli
MasMat wrote: Tuesday 15 August 2023 7:26 So the free version just requires sign-up and no credit card info etc (verify email I think was all I had to do):
https://openweathermap.org/price
The link "Get API key" just makes you create a sign-up and from there you can create API keys.
The limits are 60 calls/min and 1M/month.

Once you have the free API key, this link (viewtopic.php?p=304716#p304716) shows the API-call address difference.
Could this usage be implemented simply by adding a new "provider" for example "owm_free"?
I've added support for the free OWM account to the latest Dashticz beta.

Can you test?

Update Dashticz with :

Code: Select all

git checkout beta
git pull
Remove the 'provider' block parameter, of set it to 'owmfree'

Re: Support for free Openweather

Posted: Thursday 24 August 2023 23:24
by solarboy
I have been using this for about a year; it's great for predictions, I use "Minimum Temperature Tonight" in a lot of scripts. I've never had to pay.

Re: Support for free Openweather

Posted: Saturday 26 August 2023 10:54
by MasMat
Yeah! Quick test and it works.
I still have to tune my weather block but it's displaying data nicely.

Big thanks and mucho respect to the community :D