Update
This commit is contained in:
parent
8cf5bc9031
commit
4c34711c74
@ -60,6 +60,7 @@ class DataCollector:
|
|||||||
rsp_json = rsp.json()
|
rsp_json = rsp.json()
|
||||||
local_hmdt = rsp_json.get('value', False)
|
local_hmdt = rsp_json.get('value', False)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
logging.error('Failed to get data from humidity node!!!')
|
||||||
local_hmdt = 0
|
local_hmdt = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -67,6 +68,7 @@ class DataCollector:
|
|||||||
rsp_json = rsp.json()
|
rsp_json = rsp.json()
|
||||||
local_temp = rsp_json.get('value', False)
|
local_temp = rsp_json.get('value', False)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
logging.error('Failed to get data from local temp node!!!')
|
||||||
local_temp = 0
|
local_temp = 0
|
||||||
|
|
||||||
weather_data = api_data.json()
|
weather_data = api_data.json()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user