Darksky - frequency requests

Moderator: leecollings

Post Reply
pozidz
Posts: 6
Joined: Friday 30 March 2018 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10162
Contact:

Darksky - frequency requests

Post by pozidz »

Hi there, is there a way to configure how often Darksky is queried?

Thanks,
Pozidz
User avatar
FireWizard
Posts: 1870
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Darksky - frequency requests

Post by FireWizard »

Hi,

Currently the Darksky API is polled every 5 minutes. A weather update every 5 minutes is more than enough.
With Darksky you have 1000 API calls free per day. If you want more, then you start paying $0.0001 for every extra call.

With 1000 free calls you can query the API roughly every 2 minutes. This represents 720 calls per day.

There is no option available to change that frequency and it doesn't make sense to make it, as Apple will close the Darksky API by the end of next year and you will have to look for another weather service anyhow.

Regards
pozidz
Posts: 6
Joined: Friday 30 March 2018 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10162
Contact:

Re: Darksky - frequency requests

Post by pozidz »

Thanks @FireWizard

I was actually looking to decrease frecuency, and more thinking on OpenWeatherMaps (OWM) as a replacement for DarkSky. OWM only updates its data every 10 minutes it is a no sense to update it every 5 minutes, but for me it might be more than enough every 30 minutes.

I take that "There is no option available to change that frequency" is applicable to all weather providers, right?

I have to say that my feeling (looking to DNS requests) is that OWM is only doing 50% of Darksky so maybe querying every 10 minutes.

Regards
User avatar
FireWizard
Posts: 1870
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Darksky - frequency requests

Post by FireWizard »

@pozidz

You wrote:
I take that "There is no option available to change that frequency" is applicable to all weather providers, right?
Indeed, as far as I know it is applicable for all weather services.

Regards
pozidz
Posts: 6
Joined: Friday 30 March 2018 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10162
Contact:

Re: Darksky - frequency requests

Post by pozidz »

Thanks again.
pozidz
Posts: 6
Joined: Friday 30 March 2018 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10162
Contact:

Re: Darksky - frequency requests

Post by pozidz »

Out of curiosity, I can confirm that OWM LUA devicechanged function gets updated every 10 minutes, where the Darksky equivalent gets updated every 5 minutes. So this is not a generic value, but dependant on device type, still no clue where this can be configured if at all possible.

Regards,
Pozidz.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest