Skip to content

Commit

Permalink
prepare release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-Ricardo committed Nov 2, 2022
1 parent a8d160e commit 06be309
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
"fritzinfluxdb" is a tool written in python to fetch data from a FritzBox router and writes it to InfluxDB.
It is equal capable as fritzcollectd and directly writing to InfluxDB.

Data collected:
* connection related information (amount of data, throughput, daily up/download statistics)
* all log messages
* home automation (temperature, power consumption, heating settings)
* phone call list (incoming, outgoing, missed, blocked)
* system stats (cpu usage/temp, memory usage)
* WLAN information (num clients, status, channels)
* VPN/DynDNS information (active users, vpn hostname, DynDNS settings)

Both InfluxDB 1 and InfluxDB 2 are supported

![Grafana Dashboard](https://raw.githubusercontent.com/bb-Ricardo/fritzinfluxdb/main/grafana/grafana_dashboard.png)
Expand Down Expand Up @@ -185,7 +194,7 @@ For InfluxDB 2 it is highly recommended creating a specific write only token for
usage: fritzinfluxdb.py [-h] [-c fritzinfluxdb.ini [fritzinfluxdb.ini ...]] [-d] [-v]
fritzinfluxdb
Version: 1.1.0 (2022-11-XX)
Version: 1.1.0 (2022-11-02)
Project URL: https://github.com/bb-Ricardo/fritzinfluxdb
optional arguments:
Expand Down Expand Up @@ -232,8 +241,7 @@ InfluxDB >=2.2.0:
check here to find an overview of more attributes which probably could be added
https://wiki.fhem.de/w/index.php?title=FRITZBOX

New TR-069 services can be defined in [fritzinfluxdb/classes/fritzbox/services_tr069.py](https://github.com/bb-Ricardo/fritzinfluxdb/blob/main/fritzinfluxdb/classes/fritzbox/services_tr069.py) <br>
New LUA services can be defined in [fritzinfluxdb/classes/fritzbox/services_lua.py](https://github.com/bb-Ricardo/fritzinfluxdb/blob/main/fritzinfluxdb/classes/fritzbox/services_lua.py)
New services can be defined in [fritzinfluxdb/classes/fritzbox/service_definitions](https://github.com/bb-Ricardo/fritzinfluxdb/blob/main/fritzinfluxdb/classes/fritzbox/service_definitions)

# License
>You can check out the full license [here](https://github.com/bb-Ricardo/fritzinfluxdb/blob/main/LICENSE.txt)
Expand Down
4 changes: 2 additions & 2 deletions fritzinfluxdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
from fritzinfluxdb.classes.fritzbox.handler import FritzBoxHandler, FritzBoxLuaHandler
from fritzinfluxdb.classes.influxdb.handler import InfluxHandler, InfluxLogAndConfigWriter

__version__ = "1.1.0-beta.2"
__version_date__ = "2022-11-XX"
__version__ = "1.1.0"
__version_date__ = "2022-11-02"
__author__ = "Ricardo Bartels <ricardo@bitchbrothers.com>"
__description__ = "fritzinfluxdb"
__license__ = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion fritzinfluxdb/classes/influxdb/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ async def write_data(self):
self.last_write_retry = datetime.now(pytz.utc)
try:
if self.config.version == 1:
write_successful = self.session_v1.write_points(data, time_precision=WritePrecision.US)
write_successful = self.session_v1.write_points(data, time_precision="u")
elif self.config.version == 2:
self.session_v2_write_api.write(bucket=self.config.bucket, record=data,
write_precision=WritePrecision.US)
Expand Down

0 comments on commit 06be309

Please sign in to comment.