Skip to main content

CLI tool to switch on/off the wifi module of a Compal cabelmodem (CH7465LG/Ziggo Connect Box)

Project description

Compal-Wifi-Switch

PyPI PyPI - Python Version license

A command line tool to switch on/off the wifi sender of a Compal CH7465LG cablemodem.

Wifi radiation should be turned off if not used (better for your health and for IT security reasons). Unfortunattly the Compal CH7465LG cablemodem does not offer a physical button to switch on/off the wifi module. There is also no configuration possible to switch the wifi module on/off based on a time schedule (e.g. switch off during night).

The compal-wifi-switch tool can switch wifi on/off via a command line interface. The tool can be installed on a server where Python runtime is available (NAS, Raspberry Pi, etc.). To schedule compal-wifi-switch you can use cron or any other scheduling mechanism.

Installation

Using pip

  1. Install python3.7 or higher
  2. Install compal-wifi-switch with pip install compal-wifi-switch.
  3. Run compal-wifi-switch with compal-wifi-switch --help.

Without pip (e.g. on Synology DSM)

  1. Download package from PyPi (tar.gz) to your server.
  2. Run the following commands:
# Install
user@dsm:~> tar xfv compal-wifi-switch-<version>.tar.gz
user@dsm:~> cd compal-wifi-switch-<version>
user@dsm:~/compal-wifi-switch> python3 setup.py install --user

# Run
user@dsm:~> python3 ~/compal-wifi-switch-<version>/compal_wifi_switch/main.py --help

Usage

usage: compal-wifi-switch [-h] --host HOST --password PASSWORD --switch
                          {on,off} [--band {2g,5g,all}] [--version]

Compal-Wifi-Switch configuration

optional arguments:
  -h, --help            show this help message and exit
  --host HOST           host name or IP of compal cablemodem, or use env
                        variable COMPAL_WIFI_SWITCH_HOST
  --password PASSWORD   password of compal cablemodem, or use env variable
                        COMPAL_WIFI_SWITCH_PASSWORD
  --switch {on,off}, -s {on,off}
                        wifi power state to set
  --band {2g,5g,all}, -b {2g,5g,all}
                        band to switch power state for (default = all)
  --version, -v         show program's version number and exit

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compal-wifi-switch-0.1.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

compal_wifi_switch-0.1.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file compal-wifi-switch-0.1.2.tar.gz.

File metadata

  • Download URL: compal-wifi-switch-0.1.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for compal-wifi-switch-0.1.2.tar.gz
Algorithm Hash digest
SHA256 906846f8a3ff7b679e0ad1603ae89260de80bf48d1d52d964e740161c70d26d4
MD5 6233330fb75b4de37038eb47e2f6b546
BLAKE2b-256 89f9f4888a4d0bec0ab4b5eaa51fa29006c08a40a0a774333d9ebbf4bc1c3c47

See more details on using hashes here.

File details

Details for the file compal_wifi_switch-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: compal_wifi_switch-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for compal_wifi_switch-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e25c9f886b08b668b0b801ee55e7bf0de94bac7a6a26645a8f8d91baf2b2cbc
MD5 8349a777d13cde99890714e0dbfac2b3
BLAKE2b-256 89e15bf169adab1ff40f039f10bb70f07bab533adab8ac621aa4e81686e708fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page