From: https://www.sensorsiot.org/install-rtl_433-for-a-sdr-rtl-dongle-on-a-raspberry-pi/
sudo apt-get install git git-core cmake libusb-1.0-0-dev
build-essential
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/ && mkdir build && cd build/
cmake ../ -DINSTALL_UDEV_RULES=ON
sudo make
sudo make install
sudo ldconfig
cd ~
sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
sudo reboot
sudo nano /etc/modprobe.d/no-rtl.conf
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
Reboot OS
lsusb
rtl_test -t
sudo apt-get install libtool libusb-1.0.0-dev librtlsdr-dev
rtl-sdr doxygen
git clone https://github.com/merbanan/rtl_433.git
cd rtl_433/ && mkdir build &&
cd build && cmake ../ &&
make
sudo make install
rtl_433 -h
The source for this tutorial is: https://sdr-setup-notes.readthedocs.io/en/latest/dev_rtlsdr.html#rtl-433-tool-setup Install supervisord
sudo apt-get install -y supervisor
sudo nano /etc/supervisor/conf.d/rtl_433.conf
Enter into file:
[program:rtl_433]
command=/home/pi/rtl_433/build/src/rtl_433 -R 123 -F “mqtt://localhost:1883,,user=”admin”,pass=”admin”,events=BEER”user=pi
autostart=yes
autorestart=yes
startretries=100
stderr_logfile=/var/log/rtl_433/rtl_433.err.log
stdout_logfile=/var/log/rtl_433/rtl_433.log
sudo mkdir /var/log/rtl_433
sudo service supervisor start
sudo service supervisor status
If you changed the configuration file:
sudo supervisorctl reread
You are done!