Closed arminth closed 5 years ago
Due to new formatting of ifconfig output, LCD 204 doesn't show IP adresses anymore. @BjoernSch Please change wlt_2_lcd_204.py like this: old: `# IP-Adressen ermitteln ETH1 = "0.0.0.0" ETH0 = "0.0.0.0" WLAN0 = "0.0.0.0" retvalue = os.popen("LANG=C ifconfig eth0 | grep 'inet ' | cut -d':' -f2| cut -d' ' -f1").readlines()
if (len(retvalue)==0): ETH0="0.0.0.0" else: ETH=retvalue[0] ETH0=ETH[:-1] retvalue = os.popen("LANG=C ifconfig eth1 | grep 'inet ' | cut -d':' -f2| cut -d' ' -f1").readlines() if (len(retvalue)==0): ETH1="0.0.0.0" else: ETH=retvalue[0] ETH1=ETH[:-1] retvalue = os.popen("LANG=C ifconfig wlan0 | grep 'inet ' | cut -d':' -f2| cut -d' ' -f1").readlines()`
new:
`# IP-Adressen ermitteln ETH1 = "0.0.0.0" ETH0 = "0.0.0.0" WLAN0 = "0.0.0.0" retvalue = os.popen("LANG=C ifconfig eth0 | grep 'inet ' | cut -d':' -f2| cut -d' ' -f10").readlines()
if (len(retvalue)==0): ETH0="0.0.0.0" else: ETH=retvalue[0] ETH0=ETH[:-1] retvalue = os.popen("LANG=C ifconfig eth1 | grep 'inet ' | cut -d':' -f2| cut -d' ' -f10").readlines() if (len(retvalue)==0): ETH1="0.0.0.0" else: ETH=retvalue[0] ETH1=ETH[:-1] retvalue = os.popen("LANG=C ifconfig wlan0 | grep 'inet ' | cut -d':' -f2| cut -d' ' -f10").readlines()`
Ich kann einfach git nicht! Sorry
Solved by d7da00295f9ec2f92234b03a52ed306cda0aa358
Due to new formatting of ifconfig output, LCD 204 doesn't show IP adresses anymore. @BjoernSch Please change wlt_2_lcd_204.py like this: old: `# IP-Adressen ermitteln ETH1 = "0.0.0.0" ETH0 = "0.0.0.0" WLAN0 = "0.0.0.0" retvalue = os.popen("LANG=C ifconfig eth0 | grep 'inet ' | cut -d':' -f2| cut -d' ' -f1").readlines()
new:
`# IP-Adressen ermitteln ETH1 = "0.0.0.0" ETH0 = "0.0.0.0" WLAN0 = "0.0.0.0" retvalue = os.popen("LANG=C ifconfig eth0 | grep 'inet ' | cut -d':' -f2| cut -d' ' -f10").readlines()
Ich kann einfach git nicht! Sorry