Git Product home page Git Product logo

kaifa-meter's People

Contributors

endrebjorsvik avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ways

kaifa-meter's Issues

Strange output on Kaifama304h3e

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

How to debug OBIS

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!

Error reading Kaifa MA304H4

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.

AttributeError: module 'construct' has no attribute 'Embedded': Update constuct dependency to 2.10

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'

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.