Skip to content

Commit

Permalink
changed default poll interval to 60 seconds (as advertised)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjr80 committed May 29, 2019
1 parent c254290 commit 72188c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/user/bloomsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def __init__(self, **stn_dict):
retry_wait = int(stn_dict.get('retry_wait', 10))
# BloomSky claim data is updated from the station every 5-8 minutes.
# Set how often (in seconds) we should poll the API.
poll_interval = int(stn_dict.get('poll_interval', 120))
poll_interval = int(stn_dict.get('poll_interval', 60))
# API key issued obtained from dashboard.bloomsky.com
api_key = stn_dict['api_key']
obfuscated = ''.join(('"....', api_key[-4:], '"'))
Expand Down Expand Up @@ -450,7 +450,7 @@ def __init__(self, api_key, poll_interval=60, max_tries=3, retry_wait=10):

# the API key from dashboard.bloomsky.com
self._api_key = api_key
# interval between polls of the API, default is 120 seconds
# interval between polls of the API, default is 60 seconds
self._poll_interval = poll_interval
# how many times to poll the API before giving up, default is 3
self._max_tries = max_tries
Expand Down

0 comments on commit 72188c2

Please sign in to comment.