Support for free Openweather

Moderators: leecollings, htilburgs, robgeerts

Post Reply
MasMat
Posts: 16
Joined: Saturday 09 March 2019 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Helsinki
Contact:

Support for free Openweather

Post 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
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for free Openweather

Post 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?
MasMat
Posts: 16
Joined: Saturday 09 March 2019 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Helsinki
Contact:

Re: Support for free Openweather

Post 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.
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for free Openweather

Post 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.
MasMat
Posts: 16
Joined: Saturday 09 March 2019 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Helsinki
Contact:

Re: Support for free Openweather

Post 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"?
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for free Openweather

Post by Lokonli »

Excellent.

I'll add that.
MasMat
Posts: 16
Joined: Saturday 09 March 2019 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Helsinki
Contact:

Re: Support for free Openweather

Post by MasMat »

Wow! Thanks! :D
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for free Openweather

Post 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'
solarboy
Posts: 320
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: Support for free Openweather

Post 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.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
MasMat
Posts: 16
Joined: Saturday 09 March 2019 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Helsinki
Contact:

Re: Support for free Openweather

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests