bwestover / togglifi

Python app for controlling enable/disable status of a single Wi-Fi network on a Unifi Controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

togglifi

Toggle a Wi-Fi network on/off in a Unifi Controller managed network.

Includes a basic Flask UI and an API for enabling/disabling a single Wi-FI network using the unificontrol Python package.

Build using an ENV file

  1. Create a .env file containing:

    UNIFI_HOST=<ip or hostname for your Unifi controler>
    UNIFI_PW=<unifi admin password>
    UNIFI_WLAN_ID=<wlan ID for the network you want to toggle>
    

    Todo: I should create a tool/docs for determining the UNIFI_WLAN_ID. I got it using the unificontrol package locally

  2. Build docker container:

    (From the repo directory)

    $ docker build -t togglifi:latest .
    $ docker run --rm -it --env-file .env --name wifi-toggle -p 8000:8000 wifi-toggle
    
  3. Access via localhost: http://0.0.0.0:8000

About

Python app for controlling enable/disable status of a single Wi-Fi network on a Unifi Controller

License:MIT License


Languages

Language:HTML 66.6%Language:Python 26.2%Language:Dockerfile 4.5%Language:Shell 2.7%