change dist for living room

This commit is contained in:
2023-07-27 10:22:55 +02:00
parent 53353a7e50
commit 845eed4abe

View File

@@ -94,16 +94,16 @@ def check_router():
cmnd = "nvram get vpn_client1_state"
status, output = subprocess.getstatusoutput(cmnd)
writeLog("VpnServer1 Status : " + str(output))
writeLog("VpnClient1 Status : " + str(output))
stats["vpnclient1"] = "On" if output == "2" else "Off"
cmnd = "nvram get vpn_client2_state"
status, output = subprocess.getstatusoutput(cmnd)
writeLog("Openvpn2 Status : " + str(output))
stats["vpnclient2"] = "On" if output == 2 else "Off"
writeLog("VpnServer1 Status : " + str(output))
stats["vpnclient2"] = "On" if output == "2" else "Off"
cmnd = "nvram get vpn_server1_state"
status, output = subprocess.getstatusoutput(cmnd)
writeLog("Openvpn2 Status : " + str(output))
stats["vpnserver1"] = "On" if output == 2 else "Off"
writeLog("VpnServer1 Status : " + str(output))
stats["vpnserver1"] = "On" if output == "2" else "Off"
cmnd = "ncat -z 192.168.77.106 25"
status, output = subprocess.getstatusoutput(cmnd)
if status == 0: