Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Multiple Gateways #8

Closed
bebben88 opened this issue Jan 28, 2018 · 4 comments
Closed

Multiple Gateways #8

bebben88 opened this issue Jan 28, 2018 · 4 comments

Comments

@bebben88
Copy link

I have two gateways in my network. When I start this fine script it keeps disconnecting and connecting between the two. I'm running this in a docker container. I dont know if that produces an issue too.

@svrooij
Copy link
Owner

svrooij commented Jan 30, 2018

I didn’t know you could run this app in Docker, because it used multicast to receive info from the gateway(s). And multicast traffic (by default) won’t reach your container.

Implementing more then one gateway is on my list, but I only have one gateway so I cannot test/implement this.

@bebben88
Copy link
Author

bebben88 commented Jan 30, 2018 via email

@svrooij svrooij closed this as completed in 638450a Feb 4, 2018
@svrooij
Copy link
Owner

svrooij commented Feb 4, 2018

@bebben88 could you verify my new version? I cannot test out this version since I don't own a second gateway.

Please re-open if it doesn't work.

@bebben88
Copy link
Author

bebben88 commented Feb 4, 2018

Just testing it in a haste before i'll go to sleep, i get some exception, remember i run it in a docker, so i dont know if thats the trouble now. I will test it further in the next day.

dgram.js:614
throw errnoException(err, 'addMembership');
^

Error: addMembership EADDRINUSE
at _errnoException (util.js:1003:13)
at Socket.addMembership (dgram.js:614:11)
at Socket.Aqara._serverSocket.on (/usr/src/app/node_modules/lumi-aqara/src/index.js:22:32)
at Socket.emit (events.js:160:13)
at startListening (dgram.js:156:10)
at _handle.lookup (dgram.js:273:7)
at process._tickCallback (internal/process/next_tick.js:152:19)
at Function.Module.runMain (module.js:703:11)
at startup (bootstrap_node.js:193:16)
at bootstrap_node.js:617:3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants