Homekit Lightswitch with hap-nodejs

  • I'm trying to control GPIO pins via homekit using hap-nodejs

    I've installed node, however I cannot get through the installation of hap-nodejs dependancies due to the lack of "make". Would it be feasible to build these dependancies elsewhere and copy them over. Otherwise would it be possible to install 'make' on the omega 2?

    This had been discussed previously here - https://community.onion.io/topic/178/using-omega-with-homekit-bridge-project/7

  • The general approach would be to cross-compile them and copy them over. This is a good candidate for creating an OpenWRT module and doing the cross-compile within there.

  • @Marc-Nicholas Can you elaborate further? I, too, have been stumped with how to do this. I haven't actually had to do any cross-compiling for node before, but do you mean that you'd have to do a cross compile for just the "node-gyp" and "hap-nodejs" modules?

    I get that the target would be some sort of linux mips, but any kind of "getting started" guide for this stuff would be a great addition to the wiki.

  • I try this for hours. I don't know. I tried to use crosstool ng to compile evert native npm module for the onion but it is not working. We really need a getting started guid for this or someone who explain this to us how we can compile node native addons for the onion.

Log in to reply

Looks like your connection to Community was lost, please wait while we try to reconnect.