huawei-modem-python-api-client icon indicating copy to clipboard operation
huawei-modem-python-api-client copied to clipboard

Any Good example for reboot / all of use of this lib ?

Open spookycheekybreeky opened this issue 3 years ago • 2 comments

Any Good example for reboot / all of use of this lib , because im pretty new to python i would like to get some example for making this lib work in my code.

spookycheekybreeky avatar Nov 28 '21 14:11 spookycheekybreeky

try

import huaweisms.api.user
import huaweisms.api.device

# change modem_host parameter to your router ip
ctx = huaweisms.api.user.quick_login("myusername", "mypassword", modem_host="192.168.3.1")

huaweisms.api.device.reboot(ctx)

dopstar avatar Nov 30 '21 07:11 dopstar

ty that work ! but do you now how i can disable the web gui so i can reboot the modem like evry 5 min without the gui on ly screen ?

spookycheekybreeky avatar Nov 30 '21 21:11 spookycheekybreeky