Comments (26)
Did you run sudo apt-get install libavahi-compat-libdnssd-dev
before npm rebuild
?
from hap-nodejs.
i know im probably making a noob error but id love some help lol
from hap-nodejs.
ha nope ill try that now
from hap-nodejs.
pi@raspberrypi ~/HAP-NodeJS $ sudo apt-get install libavahi-compat-libdnssd-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd1
libdbus-1-dev
The following NEW packages will be installed:
libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd-dev
libavahi-compat-libdnssd1 libdbus-1-dev
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 453 kB of archives.
After this operation, 1,346 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavahi-compat-libdnssd1 armhf 0.6.31-2 [45.1 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavahi-common-dev armhf 0.6.31-2 [68.5 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libdbus-1-dev armhf 1.6.8-1+deb7u4 [214 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavahi-client-dev armhf 0.6.31-2 [62.3 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavahi-compat-libdnssd-dev armhf 0.6.31-2 [62.8 kB]
Fetched 453 kB in 0s (620 kB/s)
Selecting previously unselected package libavahi-compat-libdnssd1:armhf.
(Reading database ... 73500 files and directories currently installed.)
Unpacking libavahi-compat-libdnssd1:armhf (from .../libavahi-compat-libdnssd1_0.6.31-2_armhf.deb) ...
Selecting previously unselected package libavahi-common-dev.
Unpacking libavahi-common-dev (from .../libavahi-common-dev_0.6.31-2_armhf.deb) ...
Selecting previously unselected package libdbus-1-dev.
Unpacking libdbus-1-dev (from .../libdbus-1-dev_1.6.8-1+deb7u4_armhf.deb) ...
Selecting previously unselected package libavahi-client-dev.
Unpacking libavahi-client-dev (from .../libavahi-client-dev_0.6.31-2_armhf.deb) ...
Selecting previously unselected package libavahi-compat-libdnssd-dev.
Unpacking libavahi-compat-libdnssd-dev (from .../libavahi-compat-libdnssd-dev_0.6.31-2_armhf.deb) ...
Setting up libavahi-compat-libdnssd1:armhf (0.6.31-2) ...
Setting up libavahi-common-dev (0.6.31-2) ...
Setting up libdbus-1-dev (1.6.8-1+deb7u4) ...
Setting up libavahi-client-dev (0.6.31-2) ...
Setting up libavahi-compat-libdnssd-dev (0.6.31-2) ...
pi@raspberrypi ~/HAP-NodeJS $ npm rebuild
[email protected] install /home/pi/HAP-NodeJS/node_modules/curve25519
node-gyp rebuild
make: Entering directory '/home/pi/HAP-NodeJS/node_modules/curve25519/build'
CXX(target) Release/obj.target/curve/node_curve.o
SOLINK_MODULE(target) Release/obj.target/curve.node
SOLINK_MODULE(target) Release/obj.target/curve.node: Finished
COPY Release/curve.node
make: Leaving directory '/home/pi/HAP-NodeJS/node_modules/curve25519/build'
[email protected] install /home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum
node-gyp configure build
make: Entering directory '/home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum/build'
make: Nothing to be done for 'all'.
make: Leaving directory '/home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum/build'
[email protected] /home/pi/HAP-NodeJS/node_modules/curve25519
[email protected] /home/pi/HAP-NodeJS/node_modules/js-nacl
[email protected] /home/pi/HAP-NodeJS/node_modules/node-hkdf
[email protected] /home/pi/HAP-NodeJS/node_modules/node-hkdf/node_modules/vows
[email protected] /home/pi/HAP-NodeJS/node_modules/node-hkdf/node_modules/vows/node_modules/eyes
[email protected] /home/pi/HAP-NodeJS/node_modules/node-persist
[email protected] /home/pi/HAP-NodeJS/node_modules/node-persist/node_modules/mkdirp
[email protected] /home/pi/HAP-NodeJS/node_modules/node-persist/node_modules/underscore
[email protected] /home/pi/HAP-NodeJS/node_modules/node-persist/node_modules/sugar
[email protected] /home/pi/HAP-NodeJS/node_modules/srp
[email protected] /home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum
pi@raspberrypi ~/HAP-NodeJS $ node Core.js
module.js:340
throw err;
^
Error: Cannot find module 'mdns'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/pi/HAP-NodeJS/Advertiser.js:1:74)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
from hap-nodejs.
thats the response i receive :) again im sure this is something im doing lol but thanks for trying to help :)
from hap-nodejs.
think i got it
i ran:
npm install mdns
npm rebuild
and this is the response i get
pi@raspberrypi ~/HAP-NodeJS $ node Core.js
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
HAP-NodeJS starting...
Cannot find secret key, creating One...
TCP server accepting connection on port: 51822
HAP Server is listening
(this was after i ran your suggestion btw)
from hap-nodejs.
hello i'll have some error :
after npm rebuild :
[email protected] install /home/cm1204/HAP-NodeJS/node_modules/mdns
node-gyp rebuild
sh: 1: node-gyp: not found
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild"
failed with 127
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the mdns package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls mdns
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.2.0-70-generic-pae
npm ERR! command "node" "/usr/bin/npm" "rebuild"
npm ERR! cwd /home/cm1204/HAP-NodeJS
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: node-gyp rebuild
npm ERR! message sh "-c" "node-gyp rebuild"
failed with 127
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/cm1204/HAP-NodeJS/npm-debug.log
npm not ok
but i'll run before :
sudo apt-get install libavahi-compat-libdnssd-dev
and after node Core.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Unable to load shared library /home/cm1204/HAP-NodeJS/node_modules/mdns/build/Release/dns_sd_bindings.node
at Object..node (module.js:472:11)
at Module.load (module.js:348:32)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (/home/cm1204/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:24:20)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:32)
at Function._load (module.js:308:12)
cm1204@cm1204-VirtualBox:~/HAP-NodeJS$
how resolve it ?
from hap-nodejs.
run
sudo apt-get install libavahi-compat-libdnssd-dev
then
npm install mdns
npm rebuild
then
node Core.js
let me know if that worked?
from hap-nodejs.
im now stuck until i get apple ios developer program lol
from hap-nodejs.
this error now :
after npm rebuild :
[email protected] install /home/cm1204/HAP-NodeJS/node_modules/curve25519
node-gyp rebuild
make: entrant dans le répertoire « /home/cm1204/HAP-NodeJS/node_modules/curve25519/build »
CXX(target) Release/obj.target/curve/node_curve.o
make: g++ : commande introuvable
make: *** [Release/obj.target/curve/node_curve.o] Erreur 127
make: quittant le répertoire « /home/cm1204/HAP-NodeJS/node_modules/curve25519/build »
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.2.0-70-generic-pae
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/cm1204/HAP-NodeJS/node_modules/curve25519
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the curve25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls curve25519
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-70-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "rebuild"
npm ERR! cwd /home/cm1204/HAP-NodeJS
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/cm1204/HAP-NodeJS/npm-debug.log
npm ERR! not ok code 0
and afetr node Core.js :
module.js:340
throw err;
^
Error: Cannot find module 'mdns'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/cm1204/HAP-NodeJS/Advertiser.js:1:74)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
from hap-nodejs.
are you in the hap-nodejs directory?
from hap-nodejs.
yes
from hap-nodejs.
i edited the steps above just after posting them, you saw those right? if you did then im no expert haha i have no clue what the commands actually mean so you best bet is to pop back over to siriproxy issue #542 (i think) and direct them here to help you :)
from hap-nodejs.
ok now it's good also i think : i've this message
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister
HAP-NodeJS starting...
TCP server accepting connection on port: 51826
HAP Server is listening
is it good ?
my iPhone dont' see accesories
from hap-nodejs.
Yes, I think. I get that warning stuff, too.
from hap-nodejs.
and your iPhone see the accesories ?
from hap-nodejs.
Yes. You installed the HomeKitDemo app on the phone?
I remember that it did not work immediately, but I can't recall, what it was.
Von: quiquoi <[email protected]mailto:[email protected]>
Antworten an: KhaosT/HAP-NodeJS <[email protected]mailto:[email protected]>
Datum: Montag, 3. November 2014 19:25
An: KhaosT/HAP-NodeJS <[email protected]mailto:[email protected]>
Cc: Konrad Güßbacher <[email protected]mailto:[email protected]>
Betreff: Re: [HAP-NodeJS] problem with npm rebuild (#3)
and your iPhone see the accesories ?
—
Reply to this email directly or view it on GitHubhttps://github.com/KhaosT/HAP-NodeJS/issues/3#issuecomment-61523501.
from hap-nodejs.
yes HomekitDemo is in my phone ... but nothing ask me to pair with accesoiries !
from hap-nodejs.
Can you try to run this on your iPhone and see if bonjour browser can discover the hap service on your computer?
from hap-nodejs.
i try iNet and in :
bonjour services > No services detected
it's not good no ?
from hap-nodejs.
@quiquoi That's strange, the service publish should be finished when you saw those warnings.
from hap-nodejs.
After a reboot of the computer, everything is OK! thank you
by cons is it possible to add another accessory that is not a lamp?
I ordered my electric shutters, is it possible to include in HAP-NodeJS?
if so how
thank you
from hap-nodejs.
any idea how to participate / using this bridge without an iOS developer account i.e. installing an own app?
from hap-nodejs.
I do not know if this is possible!
I have a developer account
from hap-nodejs.
@schlickspringer There is no way to use the devices from the bridge without installing the custom app.
Sent from my iPhone
On Nov 4, 2014, at 5:22 AM, schlickspringer [email protected] wrote:
any idea how to participate / using this bridge without an iOS developer account i.e. installing an own app?
—
Reply to this email directly or view it on GitHub.
from hap-nodejs.
@quiquoi Glad it finally works ^^
@schlickspringer Right now I don't think there is any kind of HomeKit app available on App Store. Sadly, a developer account with iDP is required to try HomeKit app on iOS (unless jailbreak the device).
from hap-nodejs.
Related Issues (20)
- Accessories states in Home App does not update when controlled manually HOT 12
- handleSnapshotRequest reason sometimes passed in as "undefined" HOT 2
- allow to specify a different IP in mDSN advertisement HOT 2
- Special Characters in Name HOT 6
- Node 16 to 18 update - Alpine - Docker - Synology
- node.js update HOT 1
- Node.js Update HOT 1
- Minimum Current Ambient Light Level warning HOT 1
- Lot of mDNS queries HOT 7
- Test permissions on "persist" storage location before publish
- Readme Text is ambiguous
- "ControllerStorage for accessory XXX was already initialized!" HOT 1
- How to run HAP-NodeJS inside Docker container HOT 5
- How to update the device status HOT 5
- TypeError: crypto_1.default.getCiphers is not a function at Object../node_modules/hap-nodejs/dist/lib/util/hapCrypto.js HOT 6
- v0.11.0 fails on Synology HOT 15
- VOC Density characteristic incorrectly set as a float and limited to 1000 HOT 4
- Setting Characteristic minValue via setProps results in debug error if the current value is lower than the new minValue HOT 6
- TypeScript plugins do not build with noImplicitAny: true in 1.6.0 HOT 11
- Interpreting Siri Commands HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hap-nodejs.