Python app to query a FritzBox through fritzconnection and send the interesting results to InfluxDB.
2.0K
Tested on a FritzBox 7490 with FritzOS 7.12, might crash on other models and/or firmware versions.
The FritzBox and InfluxDB instance can be selected through the following environment variables. If not given, defaults are assumed.
FB_IP
IP address of the FritzBox to query. Default if not specified: 192.168.178.1
FB_PORT
Port used to query the FritzBox. Default if not specified: 49000
FB_USER and FB_PASSWD
FritzBox user and password to authentificate. No default! Must be set.
FB_ID
Name given to the InfluxDB database. Default if not specified: FritzBox
If no such database is present, it will be created.
FB_DSL
Is the connection a DSL connection? Default if not specified: True
For DSL connections, further metrics can be queried.
INFLUX_IP
IP address of the InfluxDB instance to connect to. Default if not specified: 127.0.0.1
Must be set since InfluxDB is not running in this container.
INFLUX_PORT
Port on which InfluxDB is running. Default if not specified: 8086
INFLUX_USER and INFLUX_PASSWD
Credentials for the InfluxDB database. Default if not specified: root:root
SAMPLE_TIME
Wait time in between queries in seconds. Default if not specified: 60
Content type
Image
Digest
sha256:8b46038d5…
Size
44 MB
Last updated
10 months ago
docker pull giantmolecularcloud/fritzboxinflux