Dockerfile to help containerize some functionality from https://github.com/merbanan/rtl_433. Specifically publishing recieved device messages to an MQTT broker.
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:
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.