Page 1 of 1

Darksky - frequency requests

Posted: Saturday 18 April 2020 13:08
by pozidz
Hi there, is there a way to configure how often Darksky is queried?

Thanks,
Pozidz

Re: Darksky - frequency requests

Posted: Saturday 18 April 2020 18:28
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

Re: Darksky - frequency requests

Posted: Sunday 19 April 2020 20:56
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

Re: Darksky - frequency requests

Posted: Sunday 19 April 2020 21:00
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

Re: Darksky - frequency requests

Posted: Sunday 19 April 2020 21:27
by pozidz
Thanks again.

Re: Darksky - frequency requests

Posted: Monday 20 April 2020 19:56
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.