flask now starts on port 8080 and can be accessed by all devices

This commit is contained in:
p.loedige 2020-12-27 00:33:30 +01:00
parent b1cb29e024
commit dcbec95339

2
app.py
View File

@ -26,4 +26,4 @@ def api_leds_control(color):
return {color: GPIO.input(LEDS[color])} return {color: GPIO.input(LEDS[color])}
if __name__ == "__main__": if __name__ == "__main__":
app.run() app.run(port=8080,host="0.0.0.0")