added own db at mqtt publisher

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-18 17:44:10 +01:00
parent 1da43922a4
commit 918fefbc57
1 changed files with 8 additions and 0 deletions

View File

@ -111,6 +111,14 @@ def connect_mqtt():
def mqtt_publisher():
# Create and start a thread for each universe
db = connect(
host=config['mysql']['host'],
user=config['mysql']['user'],
password=config['mysql']['password'],
database=config['mysql']['database'],
)
db.autocommit(True)
mqtt_client = connect_mqtt()
artnetBindIp = get_eth0_ip()
artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454)