preparing to add auth token into a .env file
This commit is contained in:
@@ -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"+
|
||||
|
||||
Reference in New Issue
Block a user