nidayand / node-red-contrib-tradfri

Work in progress - Node-RED node for IKEA TRÅDFRI devices
Other
24 stars 9 forks source link

Not Working when running inside docker #35

Closed freeSparrow closed 4 years ago

freeSparrow commented 4 years ago

Hi, Every time I try to get Preshared key, it gives the "Registration did not work". I have also tried to use user/pass in the App Identity/Preshared fields but still not getting any devices. If I run the same version none docker, I just works.

Any input is appreciated.

freeSparrow commented 4 years ago

Got it working, The registation part is still not working, but fetching of devices is working now on alpine docker image.

did a change in line 48 in node-tradfri-argon/lib/coap-client.js

changed this line resolve(JSON.parse(stdOut.split('\n')[3])); to: resolve(JSON.parse(stdOut));