added some arguments that may help

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 22:30:51 +01:00
parent f923ad7d1f
commit d60da9fd97
1 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import time
import sys import sys
import python_artnet as Artnet import python_artnet as Artnet
import os import os
from getmac import get_mac_address
def get_eth0_ip(): def get_eth0_ip():
try: try:
@ -15,6 +16,9 @@ def get_eth0_ip():
# def get_eth0_ip(): # def get_eth0_ip():
# return "10.0.0.4" # return "10.0.0.4"
mac_address = str(get_mac_address(interface="eth0"))
mac_address_array = mac_address.split(":")
# What DMX channels we want to listen to # What DMX channels we want to listen to
dmxChannels = 512 dmxChannels = 512
@ -25,7 +29,7 @@ artnetUniverse = 0
### Art-Net Setup ### ### Art-Net Setup ###
# Sets debug in Art-Net module. # Sets debug in Art-Net module.
# Creates Artnet socket on the selected IP and Port # Creates Artnet socket on the selected IP and Port
artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = False, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454, REFRESH=30) artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = False, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454, REFRESH=30, MAC=mac_address_array, SWVER="1", OEMCODE=42069)
tuple_ip = (str(get_eth0_ip()), 6454) tuple_ip = (str(get_eth0_ip()), 6454)
while True: while True: