![Go](https://github.com/MERKAT0R/go-RFLink/actions/workflows/goRFLink.yml/badge.svg)
Beta state
All seams working fine ;)
Sending(broadcast to 433) from MQTT 2 RFLink - soon
go-rflink
Inspired by Pgaxatte
Publish RFLink Gateway all messages (temperature and humidity sensors measurement humanreadable and auto to Celsius) to an MQTT topic.
Difference
Replaced abandoned packets, for ex now main MQTT packet is eclipse/paho.mqtt
So added such features like connectionretry, autoreconnect and etc
Other improvements
Installation
go get -u github.com/MERKAT0R/go-rflink
This library now support go.mod, so with go.mod
import github.com/MERKAT0R/go-rflink/rflink
Usage
Optional environment variable can be used to override the default configuration, for example:
PUBLISH_HOST=192.168.0.1:1883 SERIAL_DEVICE=/dev/ttyACM0 go run main.go
See more at env.sh.example
Within a docker container
It is possible to build go-rflink as a container and run it:
docker build - < Dockerfile
docker run \
--device=/dev/ttyACM0 \
--env PUBLISH_HOST="192.168.0.1:1883" \
--env PUBLISH_TOPIC="myrflink" \
go-rflink:latest
TODO
- Features & Bugs ;)
- Minor: MQTT TLS