go-rflink

command module
v0.0.3-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

README

Go Reference Go Report Card Go

Beta state

All seams working fine ;) Sending(broadcast to 433) from MQTT 2 RFLink - soon

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL