Skip to content

patrickmaurer/smartmeter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

smartmeter.py: extract data from "smart" power-meters

This tool reads the values contained inside Landis+Gyr power-meters and sends the output to InfluxDB. It has been tested with the ZMB120 model, but it should work with any other IEC 62056 compliant devices too.

Some meters report usage data as floating point numbers. Others report as integers only, unfortunately.

I'm using an USB infrared probe to read the data, they are available assembled or as DIY kits:

install

Install few dependencies using pip

  • pyserial
  • influxdb

configure

You'll have to statically set the InfluxDB server IP address, database and credential settings inside the code for now.

run

$ python ./smartmeter.py

install service

  1. save smartmeter.service to /lib/systemd/system/
  2. sudo chmod 644 /lib/systemd/system/smartmeter.service
  3. sudo systemctl daemon-reload
  4. sudo systemctl enable smartmeter.service
  5. sudo systemctl start smartmeter.service
  6. sudo systemctl status smartmeter.service The last command should report the service running.

credits

Joost Baltissen is the author of the inital code. Romain Aviolat added output to InfluxDB.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%