Remove unnecessary logging.
This commit is contained in:
parent
42a5956d63
commit
0ba5eaffb6
@ -35,7 +35,6 @@ class tempThread (threading.Thread):
|
||||
while True:
|
||||
temp = sensor.temperature
|
||||
if temp >= set_point:
|
||||
print('Bearer ' + os.environ.get('ACCESS_TOKEN'))
|
||||
print(requests.post(os.environ.get('NOTIF_URL'), headers={'Content-Type': 'application/json', 'Authorization': 'Bearer ' + os.environ.get('ACCESS_TOKEN')}, data=json.dumps({'message': '@all ' + os.environ.get('MESSAGE'), 'channel_id': os.environ.get('CHANNEL_ID')}), timeout=5))
|
||||
time.sleep(sleep_timer)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user