This project deals with the Smartmeter Landis + Gyr E450 which is (in my case) operated by Wiener Netze. It reads the data from the optical user interface (de: Kundenschnittstelle).
- Smartmeter Landis + Gyr E450
- Raspberry Pi
- Python 3
- IR Schreib/Lesekopf USB (Optokopf) (Norm: IEC-62056-21). I used this one https://shop.weidmann-elektronik.de/index.php?page=product&info=24)
pip3 install -r requirements.txt
This configuration is stored in config.py
.
in console:
python3 smartmeter.py
in background (logging to smartmeter.log in home directory):
nohup python3 smartmeter.py > ~/smartmeter.log 2>&1 &
Check if there is data on the serial port.
stty -F /dev/ttyUSB0 9600 -parenb cs8 -cstopb -ixoff -crtscts -hupcl -ixon -opost -onlcr -isig -icanon -iexten -echo -echoe -echoctl -echoke
cat /dev/ttyUSB0 | hexdump
Set the executable flag for the smartmeter.py
chmod +x smartmeter.py