ip string to int

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 18:05:39 +01:00
parent b59a353f4a
commit c2ad446f87
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(str(get_eth0_ip()).split(".")) tuple_ip = tuple(int(str(get_eth0_ip()).split(".")))
print(tuple_ip) print(tuple_ip)