energomera-cli

command module
v0.0.0-...-a27108e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2020 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Energomera CLI

Energomera example CLI application written in Go

Usage

To build it:

git clone https://github.com/peak-load/energomera-cli.git
cd energomera-cli
go get -v
go build 

To configure it edit config.json file located in the same directory

{
     "Port": "/dev/serial0",
     "SleepInterval": 500,
     "Counters" : ["000001","000002"]
}
  • Port - specify your port connected to rs-485 bus. Depends on your adapter model or OS (I'm using on Linux under RPi3) port can be different e.g. /dev/ttyS0 or /dev/USB0
  • SleepInterval - in milliseconds, can be adjusted if you are getting errors due to long read time
  • Counters - specify your electricity meter unique IDs. ID needs to be set beforehand using windows based utiliy as described in manual here

To run it (with sample output):

./energomera-cli 
========== COUNTER 000001 ==========
phase1v: "214.989"
phase2v: "217.376"
phase3v: "221.558"
phase1a: "1.4998"
phase2a: "1.3667"
phase3a: "4.6107"
power: "1.2187"
phase1p: "0.2762"
phase2p: "0.0096"
phase3p: "0.9328"
freq: "49.98"
tarif1: "85095.7769548"
tarif2: "35949.3052429"
tarif3: "27860.3782999"
========== COUNTER 000002 ==========
phase1v: "223.819"
phase2v: "192.289"
phase3v: "248.016"
phase1a: "0.0128"
phase2a: "0.0222"
phase3a: "0.0128"
power: "0.0"
phase1p: "0.0"
phase2p: "0.0"
phase3p: "0.0"
freq: "50.01"
tarif1: "78997.0277689"
tarif2: "52564.3978779"
tarif3: "26404.3700133"

Credits

Original Python code:

Documentation / resources

License

MIT License, see LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址