This is a simple Golang server that allows you to control your NETGEAR WiFi Router Nighthawk (R7800) router by turning the WiFi on or off. It serves a web page that displays the current WiFi status and provides buttons to enable or disable the WiFi.
- Go 1.16 or higher
- Docker (optional)
- Clone the repository:
git clone https://github.com/fpesce/wifi-control-server.git
cd wifi-control-server
- Set the required environment variables:
export ROUTER_URL="http://your-router-url"
export USERNAME="your-username"
export PASSWORD="your-password"
- Build and run the server:
go build
./wifi-control-server
- Open a web browser and navigate to http://localhost:8080. You should see the WiFi Control web page.
Alternatively, you can build and run the server using Docker.
- Build the Docker image:
make docker-build
- Run the Docker container:
make docker-run
This project is licensed under the Apache License v2. See the LICENSE file for details.
Please feel free to submit issues or pull requests for any improvements or bug fixes.