GithubHelp home page GithubHelp logo

Comments (10)

snowdd1 avatar snowdd1 commented on June 9, 2024

What exactly did you try?
The example at the end of the readme in which a groupsocketlisten() is shown?
Did you change the IP and port to match your knxd/eibd server (default in the example is localhost:6720)
What Hardware and OS are you using?
I am using node-eibd successfully on node 0.12.1 on arm7 (raspberry2).

from node-eibd.

cjk avatar cjk commented on June 9, 2024

@snowdd1 Thanks for the quick reply.
I was trying out the example on the bottom using groupsocketlisten().

I was probably using the wrong connection-values (port, ip-address), will have to try this again. But from the error-message I did not think of a connection-error at first. It sounded like perhaps the event-emitter implentation was causing problems.

./bin/groupread localhost 3671 "1/1/5" was also giving me

(node) warning: possible EventEmitter memory leak detected. 11 data listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
[...]
RangeError: Maximum call stack size exceeded

for the same reasons.

Thanks for letting me know to check my eibd-connection first!

from node-eibd.

cjk avatar cjk commented on June 9, 2024

OK, after starting eibd with the -i option (listen on TCP) instead of -u it's working without the error.

Now I just have to figure out how to listen to ongoing bus-traffic, since that doesn't seem to work with the -i option.

from node-eibd.

snowdd1 avatar snowdd1 commented on June 9, 2024

It's running with -i in my installation. Listen on the bus - have a look at my pull request #15. I have implemented a very basic subscription model with callbacks that can be used to subscribe to specific group addresses. E.g. if you want your nodeJS program function to be called if 1/1/5 is sent over the wire.

from node-eibd.

cjk avatar cjk commented on June 9, 2024

@snowdd1 Great advice! I looked at your fork and considering using that one instead (perhaps you should publish it on NPM using your namespace).
While I'm at it, perhaps I should replace eibd with knxd along the way, it seems to work for most people who have tried it. I'll see if I can create an Arch-Package and publish it then for others to re-use.

from node-eibd.

snowdd1 avatar snowdd1 commented on June 9, 2024

I just did a commodity function I needed myself. @andreek is clearly the owner of this whole thing.
If he is not looking into github for some weeks, I might package the extension into an eibd-commodity package myself.

from node-eibd.

snowdd1 avatar snowdd1 commented on June 9, 2024

Thanks for letting me know to check my eibd-connection first!

Been there myself, anyway...

from node-eibd.

cjk avatar cjk commented on June 9, 2024

Somewhat OT here, but people may find it useful:
I created a package-build for Arch-Linux for the KNXd that can be used as a (maintained) drop-in replacement for EIBd - works for me so far: https://aur.archlinux.org/packages/knxd-git/

from node-eibd.

andreek avatar andreek commented on June 9, 2024

@cjk I guess '-u' is used in eibd/knxd for usb interface, right? Maybe we have to write this in the README. node-eibd only supports TCP.

from node-eibd.

cjk avatar cjk commented on June 9, 2024

@andreek You're right, I actually don't need -u since I'm not using USB (have an IP-router). So, node-eibd is the perfect library for me, thanks for writing it! πŸ‘
But it's also true that documentation is a bit scarce right now, which makes it hard for beginners to get up-and-running. Lot's of trial-and-error needed.
Let's see if we can improve the docs in the future, I'll try to help if I can.

from node-eibd.

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.