From 0fbdec6bfae200026bba72136996b3771345a06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 18 Feb 2024 15:58:13 +0100 Subject: [PATCH] test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 001bf02..46e5f1a 100644 --- a/server/app.py +++ b/server/app.py @@ -8,6 +8,7 @@ from getmac import get_mac_address import time import sys from multiprocessing import Process, Pipe +from ast import literal_eval app = Flask(__name__) @@ -116,7 +117,7 @@ def mqtt_publisher(ti_receiver): artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454) while True: try: - tube_index = list(ti_receiver.recv()) + tube_index = literal_eval(ti_receiver.recv()) except: tube_index = tube_index_old