From 06be309c79073213856c12a3bf795bb0d58806e0 Mon Sep 17 00:00:00 2001 From: Ricardo Bartels Date: Wed, 2 Nov 2022 19:27:05 +0100 Subject: [PATCH] prepare release 1.1.0 --- README.md | 14 +++++++++++--- fritzinfluxdb.py | 4 ++-- fritzinfluxdb/classes/influxdb/handler.py | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f617a39..a757e23 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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: @@ -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)
-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) diff --git a/fritzinfluxdb.py b/fritzinfluxdb.py index 51cedb2..09ebdf9 100755 --- a/fritzinfluxdb.py +++ b/fritzinfluxdb.py @@ -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 " __description__ = "fritzinfluxdb" __license__ = "MIT" diff --git a/fritzinfluxdb/classes/influxdb/handler.py b/fritzinfluxdb/classes/influxdb/handler.py index 998a3f6..556e2a7 100644 --- a/fritzinfluxdb/classes/influxdb/handler.py +++ b/fritzinfluxdb/classes/influxdb/handler.py @@ -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)