Skip to content

fsutter/water-meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Water logger

Prerequisites

Install system packages

sudo apt install autoconf build-essential cmake libncurses-dev\
  librtlsdr-dev libtool libusb-1.0-0-dev pkg-config python3-pip\
  rtl-sdr sqlite3

Install libraries

rtl_433

git clone https://github.com/merbanan/rtl_433.git
cd rtl_433
mkdir build
cd build
cmake ..
make
sudo make install

rtl-wmbus

git clone https://github.com/xaelsouth/rtl-wmbus.git
cd rtl-wmbus
make release
sudo make install

wmbusmeters

git clone https://github.com/weetmuts/wmbusmeters.git
cd wmbusmeters
./configure
make
sudo make install

Create SQLite database:

sqlite3 NAME_OF_YOUR_DATABASE_FILE < create_script.sql

Edit config.ini to match your configuration

Set meter_id , meter_name, bash_script and db_filename.

Installation

Add a crontab entry

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published