diff --git a/kamera_server.py b/kamera_server.py index 9f8378f..cdf0a42 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -85,13 +85,11 @@ def action(changePin, action): def motor_test(motor, position): if motor == "drehen": m1.stop() - time.sleep(1) m1.start() - time.sleep(1) m1.gehe_zu(int(position)) return 'Drehen: ' + str(m1.pos) -#if __name__ == "__main__": -# kamera_server.run(host='0.0.0.0') -application = kamera_server +if __name__ == "__main__": + kamera_server.run(host='0.0.0.0') +