Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lilanga/sensor-data-sending-service
Service is written is go to emulate sensor data reading and publish in to HiveMQ(https://www.hivemq.com) private endpoint. Written to use Balena Cloud(https://dashboard.balena-cloud.com) and deploy to raspberry PI zero using GitHub actions
https://github.com/lilanga/sensor-data-sending-service
balenacloud hivemq iot mqtt
Last synced: 20 days ago
JSON representation
Service is written is go to emulate sensor data reading and publish in to HiveMQ(https://www.hivemq.com) private endpoint. Written to use Balena Cloud(https://dashboard.balena-cloud.com) and deploy to raspberry PI zero using GitHub actions
- Host: GitHub
- URL: https://github.com/lilanga/sensor-data-sending-service
- Owner: Lilanga
- Created: 2022-04-11T04:27:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-11T08:36:43.000Z (almost 3 years ago)
- Last Synced: 2024-11-27T21:13:12.251Z (3 months ago)
- Topics: balenacloud, hivemq, iot, mqtt
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Sensor data sending service
This service is use to emulate sensor data aquestition part. Mock values are publishing to mqtt topic.
Service is designed to run on raspberry pi devices (or any supported image by balena) using balena cloud.Please update following environment variables
```go
// comma seperated list of sensor IDs which need to be used as emulated device ids
IDS=// integer number to specify delay in seconds between two sensor readings
DELAY=// 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=// MQTT topic which message needs to be published
MQTT_TOPIC=
```