parent
0d1cbb811b
commit
0fbdec6bfa
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue