update interval openweathermap

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
BertB
Posts: 72
Joined: Tuesday 24 June 2014 19:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: struggling and stumbling. Amsterdam area
Contact:

update interval openweathermap

Post by BertB »

I would like to suggest the possibility to change the update frequency of openweathermap, because I exceed the maximum number of free calls, when I request for the weather info of 4 or more places for my own personal interest.
Set 1= RPI 3B, latest Beta, RFLink USB, RFLINK WIFI, Zwave
Set 2= RPI 2B, Latest Beta, OTGW (USB), SBFSpot (Bluetooth)
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: update interval openweathermap

Post by HansieNL »

BertB wrote: Sunday 25 October 2020 12:34 I would like to suggest the possibility to change the update frequency of openweathermap, because I exceed the maximum number of free calls, when I request for the weather info of 4 or more places for my own personal interest.
Isn’t it possible to create a 2nd api key?
Blah blah blah
BertB
Posts: 72
Joined: Tuesday 24 June 2014 19:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: struggling and stumbling. Amsterdam area
Contact:

Re: update interval openweathermap

Post by BertB »

HansieNL wrote: Sunday 25 October 2020 13:47
BertB wrote: Sunday 25 October 2020 12:34 I would like to suggest the possibility to change the update frequency of openweathermap, because I exceed the maximum number of free calls, when I request for the weather info of 4 or more places for my own personal interest.
Isn’t it possible to create a 2nd api key?
Sure you can, but that does not make a difference in the total count of daily counts
Set 1= RPI 3B, latest Beta, RFLink USB, RFLINK WIFI, Zwave
Set 2= RPI 2B, Latest Beta, OTGW (USB), SBFSpot (Bluetooth)
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: update interval openweathermap

Post by kiddigital »

BertB wrote: Sunday 25 October 2020 12:34 I would like to suggest the possibility to change the update frequency of openweathermap, because I exceed the maximum number of free calls, when I request for the weather info of 4 or more places for my own personal interest.
Are you using the updated module (with forecast data) in the Beta or the regular/old one?

The updated version in the Beta uses the new One Call API (1000 calls per day) and has a default interval of 300 seconds, so 288 calls per day. This means you can have at least 3 devices.

I can see the need for a 'lowered' interval so you can have more of these devices. Let me take a look at options...

@BertB, what would be a good interval? Once every 1800 seconds (so 48 updates per day)? Which would give you room to check 20 locations within the limit of 1000 calls a day.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
BertB
Posts: 72
Joined: Tuesday 24 June 2014 19:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: struggling and stumbling. Amsterdam area
Contact:

Re: update interval openweathermap

Post by BertB »

kiddigital wrote: Monday 26 October 2020 21:20
Are you using the updated module (with forecast data) in the Beta or the regular/old one?

The updated version in the Beta uses the new One Call API (1000 calls per day) and has a default interval of 300 seconds, so 288 calls per day. This means you can have at least 3 devices.

I can see the need for a 'lowered' interval so you can have more of these devices. Let me take a look at options...

@BertB, what would be a good interval? Once every 1800 seconds (so 48 updates per day)? Which would give you room to check 20 locations within the limit of 1000 calls a day.
I use the Beta releases, so I indeed can have 3 devices. That works fine.
For me a good interval would be 1800. This gives me a good balance between definition and number of devices.
Set 1= RPI 3B, latest Beta, RFLink USB, RFLINK WIFI, Zwave
Set 2= RPI 2B, Latest Beta, OTGW (USB), SBFSpot (Bluetooth)
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: update interval openweathermap

Post by kiddigital »

I have created a Pull Request for the OWM module on GitHub, see https://github.com/domoticz/domoticz/pull/4420

If/Once it is accepted and merged into the Beta, an additional toggle should be visible for the OWM hardware module where you can 'delay' the update interval from 5 minutes to 30 minutes.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
BertB
Posts: 72
Joined: Tuesday 24 June 2014 19:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: struggling and stumbling. Amsterdam area
Contact:

Re: update interval openweathermap

Post by BertB »

That would be great.
Set 1= RPI 3B, latest Beta, RFLink USB, RFLINK WIFI, Zwave
Set 2= RPI 2B, Latest Beta, OTGW (USB), SBFSpot (Bluetooth)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest