21 lines
999 B
Markdown
21 lines
999 B
Markdown
|
# fritzfix
|
||
|
|
||
|
a custom tool for a very special, personal use case.
|
||
|
|
||
|
## description
|
||
|
|
||
|
every time the router goes down or reboots all the phones connected to a fritzbox stop working until the fritzbox itself is rebooted.
|
||
|
|
||
|
this tool regularly checks if the router is responding to http requests.
|
||
|
if the router does not respond the tool will wait for it to come back online and then execute a reboot via selenium (headless browser in a docker container).
|
||
|
|
||
|
also some notifications are sent to my local ntfy instance.
|
||
|
|
||
|
## build / usage
|
||
|
|
||
|
- clone the repository: `git clone https://git.velvettear.de/velvettear/fritzfix.git`
|
||
|
- enter the repository: `cd fritzfix`
|
||
|
- create and modify a config file: `cp config.json.example config.json && vim config.json`
|
||
|
- build an image: `docker build --no-cache docker.registry.velvettear.de/fritzfix:latest .`
|
||
|
- push the image: `docker push docker.registry.velvettear.de/fritzfix:latest`
|
||
|
- run it: `docker run --rm -it docker.registry.velvettear.de/fritzfix:latest`
|