Refactor Models for InfluxDB (#1)

Update to InfluxDB 2.0 and update all interfaces to work with it.

MAC has been deprecated, since current `influxdb2` doesn't support non built-in types for read/write into the DB.

Co-authored-by: Felipe Diniello <felipediniello@pm.me>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2023-06-18 18:43:15 +02:00
parent a5976252e8
commit 962b90e1b8
22 changed files with 440 additions and 397 deletions

8
.env
View File

@@ -1,8 +1,8 @@
DATABASE_URL=postgres://kairo:AJzYhFltZXRiGQ@localhost/kairoXYZ_db
INFLUX_URL=http://localhost:8086
INFLUX_DB=db0
INFLUX_USER=mmRTLS
INFLUX_PASSWORD=Lkj9s2iAnd7Gxg
INFLUX_HOST=http://localhost:8086
INFLUX_BUCKET=db0
INFLUX_ORG=kario
INFLUX_TOKEN=82GAOBcdQoPnFNp_aew3DPffg44ihr4-lxs2BMGQ7RJ6nZyqSAFerX-WaHgLC47hTI23LgOauEfyTU_FKT0SpQ==
MQTT_BROKER=tcp://localhost:1883