mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 18:44:53 +01:00
change dist for living room
This commit is contained in:
10
mqtt_srv.py
10
mqtt_srv.py
@@ -83,13 +83,13 @@ def check_router():
|
|||||||
status, output = subprocess.getstatusoutput(cmnd)
|
status, output = subprocess.getstatusoutput(cmnd)
|
||||||
|
|
||||||
if "#Skynet_banmalware#" in output:
|
if "#Skynet_banmalware#" in output:
|
||||||
stats["skynet"] = "on"
|
stats["skynet"] = "On"
|
||||||
else:
|
else:
|
||||||
stats["skynet"] = "off"
|
stats["skynet"] = "Off"
|
||||||
if "#Diversion_CountAds#" in output:
|
if "#Diversion_CountAds#" in output:
|
||||||
stats["diversion"] = "on"
|
stats["diversion"] = "On"
|
||||||
else:
|
else:
|
||||||
stats["diversion"] = "off"
|
stats["diversion"] = "Off"
|
||||||
|
|
||||||
|
|
||||||
cmnd = "nvram get vpn_client1_state"
|
cmnd = "nvram get vpn_client1_state"
|
||||||
@@ -98,7 +98,7 @@ def check_router():
|
|||||||
stats["vpnclient1"] = "On" if output == "2" else "Off"
|
stats["vpnclient1"] = "On" if output == "2" else "Off"
|
||||||
cmnd = "nvram get vpn_client2_state"
|
cmnd = "nvram get vpn_client2_state"
|
||||||
status, output = subprocess.getstatusoutput(cmnd)
|
status, output = subprocess.getstatusoutput(cmnd)
|
||||||
writeLog("VpnServer1 Status : " + str(output))
|
writeLog("VpnClient2 Status : " + str(output))
|
||||||
stats["vpnclient2"] = "On" if output == "2" else "Off"
|
stats["vpnclient2"] = "On" if output == "2" else "Off"
|
||||||
cmnd = "nvram get vpn_server1_state"
|
cmnd = "nvram get vpn_server1_state"
|
||||||
status, output = subprocess.getstatusoutput(cmnd)
|
status, output = subprocess.getstatusoutput(cmnd)
|
||||||
|
|||||||
Reference in New Issue
Block a user