Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nmasse-itix/tic-tsdb
Saves data from the TIC (Enedis Tele Information Client) received from MQTT to a TimescaleDB
https://github.com/nmasse-itix/tic-tsdb
enedis mqtt mqtt-client timescaledb
Last synced: about 2 months ago
JSON representation
Saves data from the TIC (Enedis Tele Information Client) received from MQTT to a TimescaleDB
- Host: GitHub
- URL: https://github.com/nmasse-itix/tic-tsdb
- Owner: nmasse-itix
- License: mit
- Created: 2022-03-03T14:58:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-03T16:25:50.000Z (over 2 years ago)
- Last Synced: 2024-06-20T03:29:01.284Z (8 months ago)
- Topics: enedis, mqtt, mqtt-client, timescaledb
- Language: Go
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Saves TIC events to TimescaleDB
## Testing
```sh
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
```