aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-23 04:35:22 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-23 04:35:23 +0300
commite006bdd608ac52fa35bda356ed251120e3ed26e8 (patch)
tree47c6f6447e403bee652340ee924522e1035f99e6
parent00f523ab50f8fbb77d54bec96694962c29fd80fd (diff)
hm...
-rw-r--r--main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index a586d62..80861fa 100644
--- a/main.py
+++ b/main.py
@@ -31,6 +31,7 @@ def sms_handler(sms: SMS, api: WebAPI):
elif text == 'yo, get me some status':
print('gathering status')
+ api.auth()
info = api.device_information()
signal = api.device_signal()
buf = []
@@ -46,6 +47,7 @@ def sms_handler(sms: SMS, api: WebAPI):
buf = ' '.join(buf)
if buf != '':
print('going to send this: ' + buf)
+ api.auth()
api.send_sms(phone=trusted_phone, content=buf)
elif text == 'switch it off':