From b636129243c6a267db965ac77f38a457262bb469 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Fri, 5 Mar 2021 21:29:58 +0100 Subject: [PATCH] =?UTF-8?q?route=20eichen=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kamera_server.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kamera_server.py b/kamera_server.py index ba5b890..af5eefb 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -114,6 +114,14 @@ def motor_test(drehen, pos1, kippen, pos2, zoom, pos3): return 'Drehen: ' + str(m1.pos) + ', Kippen: ' + str(m2.pos) + ', Zoom: ' + str(m3.pos) +@kamera_server.route("/eichen") +def motor_eichen(): + m1.eichen() + m2.eichen() + m3.eichen() + + return 'fahre Motoren auf Startposition' + if __name__ == "__main__": kamera_server.run(host='0.0.0.0')