Skip to content

aburgr/smartmeter-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smartmeter Reader for Landis + Gyr E450

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).

Requirements

Install requirements

pip3 install -r requirements.txt

Configuration

This configuration is stored in config.py.

Start script

in console:

python3 smartmeter.py

in background (logging to smartmeter.log in home directory):

nohup python3 smartmeter.py > ~/smartmeter.log 2>&1 &

Troubleshooting

Msg timeout or no valid Smartmeter message found

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

(from https://shop.weidmann-elektronik.de/media/files_public/9d73b590bf0752a5beff32d229d4497d/HowToRaspberryPi.pdf)

-bash: ./smartmeter.py: Permission denied

Set the executable flag for the smartmeter.py

chmod +x smartmeter.py

About

Read your Landis + Gyr E450 Smartmeter with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published