connect: Add possibility set web password in command line

Example: run.bat connect6.py 12345678
This commit is contained in:
remittor
2025-03-04 19:38:39 +03:00
parent 5b7d2962ed
commit 71ed2e9808
3 changed files with 14 additions and 2 deletions
+2
View File
@@ -1010,6 +1010,8 @@ def create_gateway(timeout = 4, die_if_sshOk = True, die_if_ftpOk = True, web_lo
ccode = gw.device_info["countrycode"]
print(f'CountryCode = {ccode}')
if web_login:
if isinstance(web_login, str):
gw.webpassword = web_login
gw.web_login()
return gw