GithubHelp home page GithubHelp logo

Python 3 and MQTT support. about waveplus-reader HOT 8 OPEN

stenjo avatar stenjo commented on August 22, 2024
Python 3 and MQTT support.

from waveplus-reader.

Comments (8)

orjangj avatar orjangj commented on August 22, 2024 1

Hi stenjo,

Great suggestion on adding python3 support.

I would suggest we do this by making the script compatible with both py2 and py3. E.g. by using the "six" python module, instead of having multiple scripts.

Anyway, I'm on leave until next week, so I wont be able to review your suggestions in more detail until then.

from waveplus-reader.

stenjo avatar stenjo commented on August 22, 2024

Just tested my fork with both python 2 anf python 3 and both seems to be working. Should i make a pull-request so you could evaluate?

from waveplus-reader.

jjanderson avatar jjanderson commented on August 22, 2024

Hi,

Is this available yet? Specifically looking for MQTT support.

Thanks

from waveplus-reader.

stenjo avatar stenjo commented on August 22, 2024

Have not had the time to update this PR according to orjangj's request but it works continuously in my apps at home. pulling info every 10 minutes or so.
Have not managed to make it work with the latest 2nd Gen firmware - but otherwise OK.
#8

from waveplus-reader.

jjanderson avatar jjanderson commented on August 22, 2024

Thanks for hte update. Are you able to detail the MQTT message topics generated that one needs to subscribe to in order to get the sensor data?

from waveplus-reader.

stenjo avatar stenjo commented on August 22, 2024

In the PR there is an waveplus.items file containing the openhab items definitions. There you will find indications on the topics the information is published on.
The README.md file contains a more detailed description of the format.

from waveplus-reader.

jjanderson avatar jjanderson commented on August 22, 2024

any idea when this will be merged?

from waveplus-reader.

stenjo avatar stenjo commented on August 22, 2024

Currently, I'm thinking most likely not.
Python 2.7 is no longer supported, and the repo owner is not happy adding the MQTT support to this. In addition it seems to be an issue with Gen 2 devices - that I have not had time or the opportunity to fix.
My suggestion is to use this PR as your source if it contains features you need - otherwise you are advised to use the original code.

from waveplus-reader.

Related Issues (20)

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.