https://github.com/lilanga/sensor-data-processing-service
Sample service to processing MQTT payloads and write it to timescale database
https://github.com/lilanga/sensor-data-processing-service
iot mqtt pubsubclient timescaledb timeseries
Last synced: 9 months ago
JSON representation
Sample service to processing MQTT payloads and write it to timescale database
- Host: GitHub
- URL: https://github.com/lilanga/sensor-data-processing-service
- Owner: Lilanga
- Created: 2022-04-07T10:17:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-12T06:55:34.000Z (over 3 years ago)
- Last Synced: 2025-01-26T10:41:28.656Z (11 months ago)
- Topics: iot, mqtt, pubsubclient, timescaledb, timeseries
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Sensor data processing service
This sample service is written for reading writing from HiveMQ private mqtt cloud endpoint.
Use appropriate values for following environment values
```
// MQTT Host URL in 'tls://xxxxxxx....' format for private HiveMQ endpoints
MQTT_HOST=
// MQTT port number
MQTT_PORT=
// MQTT user name
MQTT_USER=
// MQTT password
MQTT_PASS=
// string to be used as the client for the connection
MQTT_CLIENT_ID=
// Timescale Database user
TSDB_USER=
// Timescale Database password
TSDB_PASS=
// Timescale database host url
TSDB_HOST=
// Timescale database name
TSDB_DB=
// Port of the timescale database
TSDB_PORT=
// SSL mode of the Timescaledb connection. one of `require`, `prefer`, `allow`, `disabled`
TSDB_SSL_MODE=
```
#### Docker build
You can use `dockerBuild.sh` file inside the build folder to create docker image for testing