https://github.com/dchote/envirophat-mqtt
A simple go app that reads sensor information from the Pimoroni Enviro pHAT and publishes it to the specified MQTT endpoint at the specified interval.
https://github.com/dchote/envirophat-mqtt
golang pimoroni-envirophat raspberry-pi
Last synced: 9 days ago
JSON representation
A simple go app that reads sensor information from the Pimoroni Enviro pHAT and publishes it to the specified MQTT endpoint at the specified interval.
- Host: GitHub
- URL: https://github.com/dchote/envirophat-mqtt
- Owner: dchote
- License: mit
- Created: 2019-10-10T12:16:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T23:21:39.000Z (almost 3 years ago)
- Last Synced: 2024-11-15T03:14:25.913Z (about 1 year ago)
- Topics: golang, pimoroni-envirophat, raspberry-pi
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# envirophat-mqtt
A simple go app that reads sensor information from the Pimoroni Enviro pHAT and publishes it to the specified MQTT endpoint at the specified interval.
Please download the precompiled binary from the releases page: https://github.com/dchote/envirophat-mqtt/releases
```
Usage: envirophat-mqtt [options]
Options:
--server= MQTT server host/IP [default: 127.0.0.1]
--port= MQTT server port [default: 1883]
--topic= MQTT topic prefix [default: envirophat]
--clientid= MQTT client identifier [default: envirohat]
--interval= Poll interval (seconds) [default: 5]
-h, --help Show this screen.
-v, --version Show version.
```