No, já to mám v appce takhle
Zatím to fungovalo na všech like linux OS a na win. Android nezkoušen.
Kód:
if os.name == 'posix': # Linux
if selfAddon.getSetting('rozhrani') == '0':
interface = "eth0"
elif selfAddon.getSetting('rozhrani') == '1':
interface = "wlan0"
elif os.name == 'nt': # Windows
if selfAddon.getSetting('rozhrani') == '0':
interface = "Ethernet"
elif selfAddon.getSetting('rozhrani') == '1':
interface = "Wi-Fi"
X96max plus 4/32 + CE 21 + skin Confluence DS / TV Samsung QE55Q6FNA
X96max plus 4/32 + CE 20.5 + skin Confluence DS
AVR Denon 1600H / Dali Spektor 5.1
Win10pro + Kodi19.5
NAS Synology 215j 3TB Raid1
Router Turris 1.1
X96max plus 4/32 + CE 20.5 + skin Confluence DS
AVR Denon 1600H / Dali Spektor 5.1
Win10pro + Kodi19.5
NAS Synology 215j 3TB Raid1
Router Turris 1.1
