convert strings to ints

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 18:10:04 +01:00
parent c2ad446f87
commit ab9d746790
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ artnetUniverse = 0
# Creates Artnet socket on the selected IP and Port # Creates Artnet socket on the selected IP and Port
artNet = Artnet.Artnet(BINDIP = get_eth0_ip(), DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", REFRESH = 60) artNet = Artnet.Artnet(BINDIP = get_eth0_ip(), DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", REFRESH = 60)
tuple_ip = tuple(int(str(get_eth0_ip()).split("."))) tuple_ip = tuple(int(el) for el in str(get_eth0_ip()).split("."))
print(tuple_ip) print(tuple_ip)