GithubHelp home page GithubHelp logo

add message broker support about ebusd HOT 7 CLOSED

john30 avatar john30 commented on May 30, 2024 1
add message broker support

from ebusd.

Comments (7)

andig avatar andig commented on May 30, 2024

Could you add something simple like e.g. an integrated web server or plain web sockets, too? Using something like node-red its dead simple to add MQTT support but it needs some basic "getting the data out" capabilities.

E.g. https://github.com/volkszaehler/vzlogger uses integrated microhttpd for that purpose.

from ebusd.

john30 avatar john30 commented on May 30, 2024

a web server is already integrated, but still treated as experimental (see http commandline options). When enabled, the messages and fields are available as JSON using the /data/ url suffix.
could you point me to the documentation part of node-red for the data lookup feature you are referring to?

from ebusd.

andig avatar andig commented on May 30, 2024

a web server is already integrated, but still treated as experimental

Great, I'll take a look,.

update it seems the daemon's http server is only accepting connections on localhost. Any chance to make binding to 0.0.0.0 configurable?

could you point me to the documentation part of node-red for the data lookup feature you are referring to?

I would generally refer you to http://nodered.org/. using node-reg you can easily "wire" any IOT application to anything else. It speaks http, websockets, mqtt and you name it out of the box. My idea was that- rather than implementing any specific logging technology- keep ebusd simple by implementing the most stupid of push mechanisms possible (e.g. web sockets) and leave everything else to the user side, e.g. by deploying node-red to convert "simple" to "custom" logging.

from ebusd.

john30 avatar john30 commented on May 30, 2024

no, a HTTP connection is accepted from any port, not only localhost, so I guess you have some firewall issue or something else.
for node-red please check if it supports subsription to MQTT topics. If so, then node-red will be supported automatically once the MQTT support is finished.

from ebusd.

andig avatar andig commented on May 30, 2024

no, a HTTP connection is accepted from any port, not only localhost, so I guess you have some firewall issue or something else.

Right. Used port was blocked by client machine.

for node-red please check if it supports subsription to MQTT topics

Should definitely be possible. My personal preference would have been simple web socket as it doesn't require setting up an MQTT broker but in the end it will also serve the purpose.
Looking forward to the next version to replace logfile parsing with MQTT/node-red!

from ebusd.

john30 avatar john30 commented on May 30, 2024

if you're only interested in pickung up the data from ebusd, then try the HTTP port and the URL http://<ebusdhost>:<ebusdhttpport>/data/

Personally, I use this with fhem and a JSONREADINGS device like this:

define jsonebus JSONREADINGS http://127.0.0.1:8080/data/ 60
attr jsonebus delay 60

from ebusd.

john30 avatar john30 commented on May 30, 2024

solved with da58804 and already documented in the wiki

from ebusd.

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.