Saves data from the TIC (Enedis Tele Information Client) received from MQTT to a TimescaleDB
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nicolas Massé 8145644303 first release 4 years ago
cli initial commit 4 years ago
schemas initial commit 4 years ago
.gitignore initial commit 4 years ago
Containerfile build container image 4 years ago
LICENSE initial commit 4 years ago
README.md initial commit 4 years ago
go.mod initial commit 4 years ago
go.sum initial commit 4 years ago
migrations.go initial commit 4 years ago
mqtt.go initial commit 4 years ago
podman-compose.yaml initial commit 4 years ago
process.go first release 4 years ago
tic-tsdb.yaml initial commit 4 years ago

README.md

Saves TIC events to TimescaleDB

Testing

podman-compose up -d
go run cli/main.go process
declare -a fields=(IINST IINST1 IINST2 IINST3 PAPP BASE HCHP HCHC)
while sleep 1; do
    value=$((1 + RANDOM % 100))
    field=${fields[1 + $((RANDOM % ${#fields[@]}))]}
    echo "{\"ts\":$EPOCHSECONDS,\"val\":\"$(printf %03d $value)\"}" | pub -broker mqtt://localhost:1883 -topic esp-tic/status/tic/$field -username dev -password secret -qos 1
done