No description
Find a file
Pieter Hollander a4ff04245a
All checks were successful
Build Docker image / build (push) Successful in 1m0s
Build Golang packages / release (push) Successful in 1m31s
Add -v.
2024-02-21 20:09:59 +01:00
.gitea/workflows Add -v. 2024-02-21 20:09:59 +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"