GithubHelp home page GithubHelp logo

rafaelferreirapt / pzem004t-to-emoncms Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 7 KB

The worker reads the values from pzem004t and sends it to the EmonCMS

Python 100.00%
python pzem-004t emoncms

pzem004t-to-emoncms's Introduction

PZEM004T to EmonCMS with Raspberry Pi

Table of Contents

  1. Intro
  2. Hardware
  3. Software
  4. Example

Intro

Due to having spare parts at home, I decided to use one of my raspberry's to read the PZEM004t values and then post them to EmonCMS. It can be done in a different way, using a esp8266 shield but for this you would have to buy more pieces, you can see this alternative here: https://github.com/apreb/eNode

The worker will send for each second the Current (A) and the Power (W) to the EmonCMS. It will catch the errors and send it to the errbit (airbrake) service.

Hardware

  1. PZEM004t with serial usb cable
  2. Raspberry Pi or similar

Software

  1. EmonCMS service (it can be the emonpi)
  2. Python Packages required for the worker.py
  3. Optional airbrake or errbit service
  4. Optional OPENVPN serice with pivpn

Installation

$ pip3 install -r requirements.txt

$ clone the config_example.json to config.json and edit it

$ install the screen (apt-get install -y screen) and create a session (screen -R emonpzem)

$ python3 worker.py

Example

pzem004t-to-emoncms's People

Contributors

rafaelferreirapt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

qiutao1204

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.