You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all
Thank you for that great script, it works great on my Synology, surveying my B715 router.
As I'm not a programmer, would it be possible to add some line to the code to write an entry into a log file, every time the internet is gone and the router is rebooted?
I know this is a feature request, not an issue, but anyway, it would be great...
Thank you
The text was updated successfully, but these errors were encountered:
Hi you can use an crontab with shell redirect, AKA >> mylog , i use it to start getsignal.py, also at the end of script i added :
quatreG="vas savoir!"
buchette="x"
for key, value in dico.items():
#print(key, " : ", value)
if key == "CurrentNetworkTypeEx" : quatreG=value
if key == "SignalIcon" : buchette=value
if quatreG == "1011":
print("On est en 4G+ : " + quatreG)
else :
print("On est en 4G : " + quatreG)
print("nombre de buchettes: " + buchette)
print("Déconexion : " + client.user.logout())
if buchette <= "2" and not quatreG == "1011":
restart = '/usr/bin/python3 huawei/b618reboot-master/reboot_router.py'
print("Bloquer sur 2 buchettes? On redemarre le router")
os.system(restart)
Hi all
Thank you for that great script, it works great on my Synology, surveying my B715 router.
As I'm not a programmer, would it be possible to add some line to the code to write an entry into a log file, every time the internet is gone and the router is rebooted?
I know this is a feature request, not an issue, but anyway, it would be great...
Thank you
The text was updated successfully, but these errors were encountered: