sudo apt install autoconf build-essential cmake libncurses-dev\
librtlsdr-dev libtool libusb-1.0-0-dev pkg-config python3-pip\
rtl-sdr sqlite3
git clone https://github.com/merbanan/rtl_433.git
cd rtl_433
mkdir build
cd build
cmake ..
make
sudo make install
git clone https://github.com/xaelsouth/rtl-wmbus.git
cd rtl-wmbus
make release
sudo make install
git clone https://github.com/weetmuts/wmbusmeters.git
cd wmbusmeters
./configure
make
sudo make install
sqlite3 NAME_OF_YOUR_DATABASE_FILE < create_script.sql
Set meter_id , meter_name, bash_script and db_filename.
Add an entry in the crontab to call the script every hour:
0 * * * * <path_to_water.py>
The crontab can be configured with:
crontab -e