Comments (10)
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.
@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.
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.
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.
@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.
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.
Thanks for letting me know to check my eibd-connection first!
Been there myself, anyway...
from node-eibd.
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.
@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.
@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)
- KNX "software" devices HOT 4
- Wrong lenght using DPT10/11 HOT 23
- command line apps have no error handlers HOT 3
- groupsocketlisten with conn_sep branch of knxd HOT 3
- Documentation link dead HOT 2
- knx connection HOT 5
- DPT232 HOT 1
- Cannot connect HOT 3
- Missing DPT in telegram HOT 2
- When sending a read message, the response contains the wrong value HOT 2
- 16 bit group addresses HOT 4
- Mandatory closing of connection after sending APDU HOT 3
- groupread executable broken for non-socket reads HOT 5
- [Enhancement] Use a generic telegram decoder to be able to parse all telegrams HOT 2
- DPT14 for thermostat HOT 1
- npm install eibd could't set HOT 2
- /usr/bin/env: βnode\rβ: No such file or directory HOT 1
- Buffer Constructor is deprecated in Node.js 10
- trouble getting groupread response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-eibd.