bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
184 stars 29 forks source link

[Question]: How to start client when using docker image? #308

Closed DennisGaida closed 8 months ago

DennisGaida commented 8 months ago

I found an old issue here: https://github.com/bropat/eufy-security-ws/issues/129 that tries to run the client using docker exec <container name> node ./dist/bin/client.ts. Unfortunately there is no client.ts anymore in the /usr/src/app/dist/bin/ folder.

There is a client.js and a client.d.ts, but I can't run them using node (client.js is silent on output, client.d.ts throws an export error).

I pretty much want to start the client as explained in the documentation here: https://bropat.github.io/eufy-security-ws/#/tryitout?id=start-client, but can't apply it to the docker image.

DennisGaida commented 8 months ago

Seems I can answer my own question. The compiled client.js seems to be the correct way to start things.

docker exec <container name> node ./dist/bin/client.js -v (verbose flag so you actually see something).

For docker installations you may want to use the host parameter -H 127.0.0.1, since you may not be able to connect to IPv6 (::1) addresses.