preparing to add auth token into a .env file

This commit is contained in:
2026-05-05 13:36:52 +02:00
parent d076d3f6b8
commit c38df85c73
6 changed files with 9 additions and 16 deletions
+4
View File
@@ -16,11 +16,15 @@ def readAscii(connexion_client : socket):
match message[24]:
case 'n':
outlet_state[outlet_index] = 'On'
print("powering on " + str(outlet_index))
case 'f':
outlet_state[outlet_index] = 'Off'
print("powering off " + str(outlet_index))
case 'e':
outlet_state[outlet_index] = 'Restart'
print("restarting " + str(outlet_index))
if message[0] == 'G':
print("sending current state report")
time = datetime.datetime.now().strftime('%d %B %Y %H:%M:%S')
connexion_client.send(bytes("Hidden Page\n" + time + "\nVersion: 1.5.0.1\n" +
"M0:O1=" + outlet_state[0] + "\n"+