From 7c6701db2935baa6628fce74d0c3b7522a613be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 16 May 2022 20:57:58 +0200 Subject: [PATCH] added app runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 2ac7c99..630f65e 100644 --- a/main.py +++ b/main.py @@ -141,6 +141,9 @@ if __name__ == '__main__': strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, LED_FREQ_HZ, LED_DMA, LED_INVERT, LED_BRIGHTNESS, LED_CHANNEL) strip.begin() + + app.run(host='0.0.0.0', port=80) + try: while True: if power == True: