changend status messages from [0|1] to [off|on]

This commit is contained in:
Christian 2017-10-20 18:40:10 +02:00
parent d349e9a317
commit d445ad80cc

View File

@ -60,9 +60,9 @@ def readBeamerState():
ser.write(b"* 0 Lamp ?\r") ser.write(b"* 0 Lamp ?\r")
read_val = ser.read(size=64) read_val = ser.read(size=64)
if(re.match(b'.*Lamp.1.*', read_val)): if(re.match(b'.*Lamp.1.*', read_val)):
status = 1 status = "on"
else: else:
status = 0 status = "off"
return status return status