Code Monkey home page Code Monkey logo

belgian_digitalmeter_p1's Introduction

Belgian Digital Meter script for the P1 port

Script to parse P1 output of the Belgian electricity meter.

Prerequisites:

Hardware:

  • Digital Meter (Sagecom S211: Single phase, Sagecom T211-D : Three-phase and Flonidan - G4SRTV: Natural gas (as slave of the first two)
  • Cable to connect to the meter (RJ11/RJ12), either serial or premade including USB to serial

Software Either use requirements.txt:

pip install -r requirements.txt;

Or install with your package manager:

jensd@deb10:~$ sudo apt install python3-serial python3-crcmod python3-tabulate
Reading package lists… Done
Building dependency tree
...
Setting up python3-serial (3.4-4) ...

Adjustments/configuration:

At the beginning of the script, you can change the following:

  • Serial port:
serialport = '/dev/ttyUSB0'
  • Enable debug:
debug = False
  • Add/update OBIS codes:
obiscodes = {}

More information

I created a blogpost where I elaborate about P1 port and data format to parse This can be found here: https://jensd.be/1183/linux/read-data-from-the-belgian-digital-meter-through-the-p1-port

belgian_digitalmeter_p1's People

Contributors

jensdepuydt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.