frimtec / compal-wifi-switch Goto Github PK
View Code? Open in Web Editor NEW:satellite: CLI tool to switch on/off the wifi signal of a Compal-CH7465LG cablemodem.
License: Apache License 2.0
:satellite: CLI tool to switch on/off the wifi signal of a Compal-CH7465LG cablemodem.
License: Apache License 2.0
Since the firmware update of the compal modem to 6.15.30-1p3-1-NOSH switching of guest networks is broken.
The rest call does not return, and the guest-network settings are corrupted.
I am trying to retrieve the status using the command "compal-wifi-switch status --host 192.168.0.1 --password "REDACTED" --verbose", but here is the output.
INFO:compal:302 [http://192.168.0.1/] => '../common_page/login.html' [token: 1905655552] 15 http://192.168.0.1/xml/setter.xml OrderedDict([('fun', 15), ('Username', 'admin'), ('Password', 'x3CtepmumR5Wj')]) b'successful;SID=877090304' {'Access-Control-Allow-Origin': 'http://192.168.0.1', 'Referrer-Policy': 'origin', 'Content-Security-Policy': "default-src 'self' 'unsafe-eval' 'unsafe-inline'", 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'Date': 'Thu, 08 Dec 2022 20:53:52 GMT', 'Last-Modified': 'Thu, 07 Apr 2022 07:19:41 GMT', 'Cache-Control': 'no-cache', 'Pragma': 'no-cache', 'Expires': '-1', 'Content-Type': 'text/xml', 'Connection': 'close', 'Set-Cookie': 'sessionToken=2230701568; Domain=192.168.0.1; path=/; HttpOnly; Expires=Thu, 08 Dec 2022 21:03:52 GMT; '} {'SID': ['877090304']} ['877090304'] successful;SID=877090304 INFO:compal:[login] SID 877090304 1 http://192.168.0.1/xml/getter.xml OrderedDict([('token', '2230701568'), ('fun', 1)]) b'' Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Python311\Scripts\compal-wifi-switch.exe\__main__.py", line 7, in <module> File "C:\Python311\Lib\site-packages\compal_wifi_switch\main.py", line 120, in main args.func(args) File "C:\Python311\Lib\site-packages\compal_wifi_switch\main.py", line 11, in status status_object = Commands.status(args.host, args.password) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\compal_wifi_switch\__init__.py", line 75, in status global_settings = etree.fromstring(modem.xml_getter(GetFunction.GLOBALSETTINGS, {}).content, parser=parser) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "src/lxml/etree.pyx", line 3254, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1913, in lxml.etree._parseMemoryDocument File "src/lxml/parser.pxi", line 1800, in lxml.etree._parseDoc File "src/lxml/parser.pxi", line 1141, in lxml.etree._BaseParser._parseDoc File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError File "<string>", line 1 lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1
When switching wifi off an on again, the activation state of the guest wifi is lost.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.