Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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=
```