Move MQTT and HSL startup scripts around

This commit is contained in:
Jan Tuomi
2017-10-26 08:35:48 +03:00
parent 258f6212b8
commit 3b3b45b5ee
5 changed files with 21 additions and 16 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ class HSLFetcher:
last_fetched = datetime.fromtimestamp(86400) # epoch
INTERVAL = 1 # minutes
logging.info(
"Set up scheduled HSL API fetch every {} minutes".format(INTERVAL))
# logging.info(
# "Set up scheduled HSL API fetch every {} minutes".format(INTERVAL))
def fetch_if_needed(self):
"""Check if new fetch from HSL API is needed."""