freahs / node-red-contrib-node-tradfri

Node-RED node to utilize IKEA Trådfri devices. Fully implemented in Node.js.
GNU General Public License v3.0
7 stars 13 forks source link

node-aead-crypto problems on RPI #2

Open flavorplus opened 6 years ago

flavorplus commented 6 years ago

node-red v0.18.1 node v8.9.4 Raspbian 9 (stretch)

I was trying out the node on a Raspberry Pi Zero-W. After installing the node, node-red refused to start giving a "Illegal Instruction" error. I found out that it's related to node-aead-crypto which contains some compiled C++ code that doesn't run on ARMv6. First I installed node-pre-gyp then I had to go to .node-red/node_modules/node-aead-crypto and run node-pre-gyp rebuild. This fixed the issue and everything works perfectly now. This issue is not directly related to this node but it will stop people from using the node on ARMv6 do you know any solution to this?

freahs commented 6 years ago

Unfortunately, I do not. While working on this node I had similar issues when mounting the development environment in a docker container. Didn't care to investigate and assumed it was due to different architectures. I can see why now...

I'm busy until the middle of march, then I'm planning to resume development. node-tradfri-client received an update recently which is yet incorporated in this node, and supposedly node-aead-crypto has gotten one too. Might look into porting it to javascript, it doesn't look too advanced.

tbowmo commented 6 years ago

I know this is an old issue..

But how was the node installed? I found that after installing through node-red's GUI (palette manager) it didn't work.. But if I installed through command line, with npm install.. then it compilers node-aead-crypto during the install process, and everything worked right out of the box (done on both my dev laptop, and on my atom based server)

flavorplus commented 6 years ago

I would like group support as well and there are some nice updates in the new node-tradfri-client versions. Might also fix this node-aead-crypto issue. Would you like some help getting this done? Have you done any work on this already that you could share in a dev branch for example?