No description
Find a file
2024-02-21 18:56:29 +01:00
.gitea/workflows Add container build workflow 2024-02-21 11:23:27 +01:00
docker Add example .env 2024-02-21 11:23:47 +01:00
.gitignore Don't include compiled binary 2024-02-21 15:44:44 +01:00
Dockerfile Add Dockerfile 2024-02-21 11:20:59 +01:00
go.mod Go init 2024-02-21 11:22:24 +01:00
go.sum Go init 2024-02-21 11:22:24 +01:00
main.go Cleanup TODO, add documentation, add slog, change SQL for TimescaleDB compatibility. Split hints into hints table. 2024-02-21 18:56:29 +01:00
README.md Add README.md 2024-02-21 11:23:11 +01:00

OpenDTU logger

OpenDTU logger connects to the OpenDTU livedata websocket and captures metrics. These metrics are inserted into a PostgreSQL database. Optionally, TimescaleDB can be used for better performance.

Environment variables

REMOTE_URL="opendtu:80"
DB_URL="host=localhost port=5432 user=postgres password=secret dbname=dtu sslmode=disable"
TIMESCALEDB_ENABLED="true"
TZ="Europe/Amsterdam"