Skip to content

Updating darksky default update interval to 5 mins#14195

Merged
balloob merged 1 commit intohome-assistant:devfrom
msubra:patch-1
Apr 30, 2018
Merged

Updating darksky default update interval to 5 mins#14195
balloob merged 1 commit intohome-assistant:devfrom
msubra:patch-1

Conversation

@msubra
Copy link
Copy Markdown
Contributor

@msubra msubra commented Apr 30, 2018

Description:

With Darksky allowing only 1000 API requests per day, 2 minutes retry seems to be bit closer to running over the limit and actually it did for 5 days in my account. Hence proposing a change to 5 minutes to keep the API happy and also it doesn't hurt to check the weather for every 5 mins than 2 mins someone lives in Jupiter :-P

Related issue (if applicable): fixes #

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>

Example entry for configuration.yaml (if applicable):

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

With Darksky allowing only 1000 API requests per day, 2 minutes retry seems to be bit closer to running over the limit and actually it did for 5 days in my account. Hence proposing a change to 5 minutes to keep the API happy and also it doesn't hurt to check the weather for every 5 mins than 2 mins someone lives in Jupiter :-P
@balloob balloob merged commit eceece8 into home-assistant:dev Apr 30, 2018
@fabaff
Copy link
Copy Markdown
Member

fabaff commented Apr 30, 2018

The 2 minutes should get you around 720 per day. If you know that you hit the limit why you don't set the interval to 5 minutes instead of changing the code.

The darksky platform is a popular one. I would assume that it's an issue that affect many installations but there are no reports around.

@fabaff
Copy link
Copy Markdown
Member

fabaff commented Apr 30, 2018

This will also require an update of the documentation.

@balloob balloob mentioned this pull request May 11, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Sep 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants