endrebjorsvik / kaifa-meter Goto Github PK
View Code? Open in Web Editor NEWRead and decode serial data from Kaifa electricity meters
License: GNU General Public License v3.0
Read and decode serial data from Kaifa electricity meters
License: GNU General Public License v3.0
python3.6 reader.py 421 420 422 423 422 421 422 421 422 422 422 422 422 422 422 421 421 421 422 421 421 421 421 421 421 421 422 422
Hi,
I wrote a daemon using your library for a Kaifa meter. Now I want to use the same for a Politerm 800, but of course the format is different. I keep getting this error:
Exception: Error in path (parsing) -> meter_ts_item -> item_type
Do you know of good debugging tools to figure out the format so I can modify your code to work with the Politerm?
Thanks!
Hi,
Tried using this library on my Kaifa MA304H4, using a Rapsberry PI and this USB dongle:
https://www.aliexpress.com/item/Freeshipping-USB-to-MBUS-slave-module-discrete-component-non-TSS721-circuit-M-BUS-bus-data-monitor/32814808312.html?spm=a2g0s.9042311.0.0.3da24c4dlS35K7
This is the error message I get.
Python 3.6.5 (default, Jan 10 2019, 05:08:53)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
import kaifa_meter.reader
kaifa_meter.reader.read_serial('/dev/ttyUSB0')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.6/site-packages/kaifa_meter-0.1.0-py3.6.egg/kaifa_meter/reader.py", line 56, in read_serial
AttributeError: 'int' object has no attribute 'val'
It works fine with the C-library from Per Erik Norbø. I was hoping to use your python library to pipe the data to MQTT. I would be happy to be a tester for this meter/dongle combo for your library, just instruct me on what to do.
Hi, testing out your package and got the following. Any ideas wha would cause it?
pi@powerpi:~ $ ./.local/bin/kaifa_meter serial /dev/ttyUSB0
Traceback (most recent call last):
File "./.local/bin/kaifa_meter", line 6, in <module>
from kaifa_meter.cli import cli
File "/home/pi/.local/lib/python3.7/site-packages/kaifa_meter/cli.py", line 2, in <module>
from kaifa_meter.reader import read_serial, read_file
File "/home/pi/.local/lib/python3.7/site-packages/kaifa_meter/reader.py", line 5, in <module>
from kaifa_meter.decoder import decode_frame
File "/home/pi/.local/lib/python3.7/site-packages/kaifa_meter/decoder.py", line 107, in <module>
c.Embedded(List2Top),
AttributeError: module 'construct' has no attribute 'Embedded'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.