No description
Find a file
Pieter Hollander e508e8d967
All checks were successful
Build Docker image / build (push) Successful in 58s
Add go package build workflow.
2024-02-21 19:02:51 +01:00
.gitea/workflows Add go package build workflow. 2024-02-21 19:02:51 +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"