Git Product home page Git Product logo

energy-meter-mercury206's Introduction

Energy Meter Mercury 206

Implements primitives allowing to communicate with energy meter Mercury 206 (RUS) over serial interface with Python and get current display readings remotely.

  • Free software: MIT license

Реализует примитивы позволяющие взаимодействовать со счётчиком электрической энергии Меркурий 206 через последовательный интерфейс и дистанционно получать текущие показания дисплея.

Usage

Use a virtualenv:

$ virtualenv mercury206.env
$ source mercury206.env/bin/activate

Install package with all dependencies into virtualenv:

$ pip install git+https://github.com/sergray/energy-meter-mercury206.git

Create sample configuration (requires Python 3.7):

$ mercury206_config

Edit ${HOME}/.mercury206/config.ini. It is possible to override default configuration path with environment variable MERCURY_CONFIG.

Get display readings:

$ mercury206_readings

Использование

Создадим и установим пакет и зависимости в виртуальное окружение:

$ virtualenv mercury206.env
$ source mercury206.env/bin/activate
$ pip install git+https://github.com/sergray/energy-meter-mercury206.git

Создадим шаблон настроек (предполагает наличие Python 3.7):

$ mercury206_config

Отредактируем ${HOME}/.mercury206/config.ini. Путь в конфигурационному файлу можно переопределить с помощью переменной окружения MERCURY_CONFIG.

Если путь к последовательному порту и адрес счётчика указаны правильно,получим показания счётчика:

$ mercury206_readings

Ссылки

energy-meter-mercury206's People

Contributors

bhrte avatar sergray 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.