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

https://github.com/rh0/rtl433_to_mqtt

Simple dockerfile for rtl_433 specifying output to MQTT
https://github.com/rh0/rtl433_to_mqtt

dockerfile mqtt mqtt-client rtl-433 rtl-sdr

Last synced: 2 months ago
JSON representation

Simple dockerfile for rtl_433 specifying output to MQTT

Awesome Lists containing this project

README

        

# rtl_433 to MQTT :satellite: :loudspeaker:

Dockerfile to help containerize some functionality from https://github.com/merbanan/rtl_433. Specifically publishing recieved device messages to an MQTT broker.

## Setup

Connection details for the MQTT broker are handled via the following environment variables:

+ **MQTT_HOST** _host for mqtt broker_
+ **MQTT_PORT** _mqtt port, defaults to 1883_
+ **MQTT_USER** _mqtt username_
+ **MQTT_PASS** _mqtt password_

Since rtl_433 uses USB attached SDRs you'll need to pass through the device to container (this requires the privileged flag).

For example, with docker compose:

```yaml
rtl433:
build:
context: https://github.com/rh0/rtl433_to_mqtt.git
image: rh0/rtl433_to_mqtt:latest-dev
container_name: rtl433
restart: always
env_file:
- ./rtl433.env
privileged: true
devices:
- /dev/bus/usb:/dev/bus/usb
```

If all goes well and your radio is in range of a 433mhz device broadcast, your MQTT broker should start receiving messages from those devices in the `rtl_433` topic.