+
+=== kleines Python-Skript um die Tür unten zu öffnen ===
+<pre>
+import socket as sock
+import time
+
+stop_command = b"EVENTDISTRv1;DoorUnten=RISING"
+start_command = b"EVENTDISTRv1;DoorUnten=FALLING"
+ip = "192.168.179.255"
+port = 31337
+
+s = sock.socket(sock.AF_INET, sock.SOCK_DGRAM)
+s.setsockopt(sock.SOL_SOCKET,sock.SO_BROADCAST,1)
+s.sendto(start_command,(ip,port))
+time.sleep(3)
+s.sendto(stop_command,(ip,port))
+s.close()
+</pre>
+
+
+[[Kategorie:Infrastruktur]]