Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-18 15:58:13 +01:00
parent 0d1cbb811b
commit 0fbdec6bfa
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ from getmac import get_mac_address
import time import time
import sys import sys
from multiprocessing import Process, Pipe from multiprocessing import Process, Pipe
from ast import literal_eval
app = Flask(__name__) 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) artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454)
while True: while True:
try: try:
tube_index = list(ti_receiver.recv()) tube_index = literal_eval(ti_receiver.recv())
except: except:
tube_index = tube_index_old tube_index = tube_index_old