Läuft wider

This commit is contained in:
Merlin Raschtuttis 2018-02-11 22:14:05 +00:00
parent 3daf57e440
commit 3806945d74
2 changed files with 346 additions and 15 deletions

329
nohup.out Normal file
View File

@ -0,0 +1,329 @@
Connected
Subscribed OK
Received on topic: foobar/oben/licht Message: b'2'
Received on topic: foobar/oben/licht Message: b''
No valid value
Received on topic: foobar/oben/licht Message: b'7'
Received on topic: foobar/oben/licht Message: b''
No valid value
Received on topic: foobar/oben/licht Message: b'99'
Received on topic: foobar/oben/licht Message: b''
No valid value
Received on topic: foobar/oben/licht Message: b'1'
Received on topic: foobar/oben/licht Message: b''
No valid value
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b''
No valid value
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b''
No valid value
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b''
No valid value
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'
Received on topic: foobar/oben/licht Message: b'8'

View File

@ -85,7 +85,7 @@ def switch(i,speed=0.5):
time.sleep(speed)
off(i)
commands = { "flur" : 0, "baellebad" : 1, "lounge-front": 2, "lounge-back" : 3,"baellebad-ein" : 4, "lounge-ein" : 5, "cantina-ein" : 6, "zentral-aus" : 7, "flur-strobo": 9, "cantina" : 8}
commands = { "flur" : 0, "baellebad" : 1, "lounge-front": 2, "lounge-back" : 3,"baellebad-ein" : 4, "lounge-ein" : 5, "cantina-ein" : 6, "zentral-aus" : 7, "flur-strobo": 100, "cantina" : 8, "cantina-strobo": 99}
def msgs(inp):
c = inp.decode("utf-8")
@ -97,15 +97,15 @@ def msgs(inp):
except ValueError:
print ( "No valid value")
return
if (msg == 9):
for i in range(1000):
switch(0, speed=0.05)
time.sleep(0.06)
elif (msg == 99):
for i in range(50):
switch(8, speed=0.05)
time.sleep(0.06)
else:
#if (msg == 9):
# for i in range(1000):
# switch(0, speed=0.05)
# time.sleep(0.06)
#elif (msg == 99):
# for i in range(50):
# switch(8, speed=0.05)
# time.sleep(0.06)
#else:
switch(msg)
else:
@ -121,11 +121,13 @@ def msgs(inp):
except ValueError:
return
switch(command,speed = 3*arg/100+0.7 )
if ( command == 9 ):
if ( command == 100 or command == 99 ):
if arg < 100:
for i in range(arg):
switch(0, speed=0.05)
switch((100-command)*8, speed=0.05)
time.sleep(0.06)
else:
try:
switch(commands[c])