rtl_433 install
root@orangepi0-1:~# apt update
root@orangepi0-1:~# apt upgrade
root@orangepi0-1:~# apt install libtool libusb-1.0-0-dev librtlsdr-dev rtl-sdr build-essential autoconf cmake pkg-config git screen rtl-433
root@orangepi0-1:~# git clone git@github.com:merbanan/rtl_433.git
root@orangepi0-1:~# cd rtl_433/
root@orangepi0-1:~# build
root@orangepi0-1:~# cd build/
root@orangepi0-1:~# cmake ..
root@orangepi0-1:~# make
root@orangepi0-1:~# make install
Start sending mqtt messages in screen
root@orangepi0-1:~# screen -t "rtl_433 mqtt"
root@orangepi0-1:~# rtl_433 -F "mqtt://192.168.1.212:1883,user=x,pass=xxx"
rtl_433 version 19.08-8-g3d36258 branch master at 201909091215 inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Publishing MQTT data to 192.168.1.212 port 1883
Publishing device info to MQTT topic "rtl_433/orangepi0-1/devices[/type][/model][/subtype][/channel][/id]".
Publishing events info to MQTT topic "rtl_433/orangepi0-1/events".
Publishing states info to MQTT topic "rtl_433/orangepi0-1/states".
Consider using "-M newmodel" to transition to new model keys. This will become the default someday.
A table of changes and discussion is at https://github.com/merbanan/rtl_433/pull/986.
Registered 106 out of 136 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-103 108-116 119 121 124-128 131-136 ]
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
MQTT Connected...
MQTT Connection established.
Test Connection, subscribe to topic
root@raspberrypi3-2:~# mosquitto_sub -h 192.168.1.xxx -u xxxx -P xxxx -v -t rtl_433/#
rtl_433/orangepi0-1/events {"time":"2020-01-04 07:12:35","model":"Acurite Lightning 6045M","id":15431,"channel":"A","battery":"LOW","temperature_F":45.3,"humidity":99,"strike_count":127,"storm_dist":24,"active":1,"rfi":0,"ussb1":0,"exception":0,"raw_msg":"fc47af63cf21ff185c"}
rtl_433/orangepi0-1/devices/Acurite_Lightning_6045M/A/15431/time 2020-01-04 07:12:35
rtl_433/orangepi0-1/devices/Acurite_Lightning_6045M/A/15431/id 15431
rtl_433/orangepi0-1/devices/Acurite_Lightning_6045M/A/15431/channel A
rtl_433/orangepi0-1/devices/Acurite_Lightning_6045M/A/15431/battery LOW
rtl_433/orangepi0-1/devices/Acurite_Lightning_6045M/A/15431/temperature_F 45.299999
rtl_433/orangepi0-1/devices/Acurite_Lightning_6045M/A/15431/humidity 99