Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config not loading #19

Open
latitjuig opened this issue Mar 6, 2016 · 5 comments
Open

Config not loading #19

latitjuig opened this issue Mar 6, 2016 · 5 comments

Comments

@latitjuig
Copy link

Hi guys. I new to all of this. Please help. Cant seem to get config.json running

sudo homebridge
*** 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
[3/6/2016, 10:16:23 AM] Loaded plugin: homebridge-openhab
[3/6/2016, 10:16:23 AM] Registering platform 'homebridge-openhab.openHAB'
[3/6/2016, 10:16:23 AM] ---
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-154 │     
└────────────┘     

[3/6/2016, 10:16:24 AM] Homebridge is running on port 51826.

@ssvenn
Copy link

ssvenn commented Mar 6, 2016

I had the same problem, when you run it through sudo i think it uses the .homebridge config directory from /root/
Try forcing a specific config directory by running it again with sudo homebridge -U /home/username/.homebridge

You might also want to delete the persist folder in .homebridge and reset HomeKit to start from scratch if it still isn’t working.

-Sverre

On 06 Mar 2016, at 09:17, latitjuig [email protected] wrote:

Hi guys. I new to all of this. Please help. Cant seem to get config.json running

sudo homebridge
*** 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 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 http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
[3/6/2016, 10:16:23 AM] Loaded plugin: homebridge-openhab
[3/6/2016, 10:16:23 AM] Registering platform 'homebridge-openhab.openHAB'
[3/6/2016, 10:16:23 AM] ---
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 031-45-154 │
└────────────┘
[3/6/2016, 10:16:24 AM] Homebridge is running on port 51826.


Reply to this email directly or view it on GitHub #19.

@latitjuig
Copy link
Author

Where is the default homebridge installation folder?? The .homebridge one?

Sent from Outlook Mobile

On Sun, Mar 6, 2016 at 12:44 AM -0800, "ssvenn" [email protected] wrote:

I had the same problem, when you run it through sudo i think it uses the .homebridge config directory from /root/

Try forcing a specific config directory by running it again with sudo homebridge -U /home/username/.homebridge

You might also want to delete the persist folder in .homebridge and reset HomeKit to start from scratch if it still isn’t working.

-Sverre

On 06 Mar 2016, at 09:17, latitjuig [email protected] wrote:

Hi guys. I new to all of this. Please help. Cant seem to get config.json running

sudo homebridge

*** 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 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 http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister

[3/6/2016, 10:16:23 AM] Loaded plugin: homebridge-openhab

[3/6/2016, 10:16:23 AM] Registering platform 'homebridge-openhab.openHAB'

[3/6/2016, 10:16:23 AM] ---

Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐

│ 031-45-154 │

└────────────┘

[3/6/2016, 10:16:24 AM] Homebridge is running on port 51826.

Reply to this email directly or view it on GitHub #19.


Reply to this email directly or view it on GitHub.

@latitjuig
Copy link
Author

Ok, now i have this problem.

$ sudo homebridge -U /home/pi/.homebridge
*** 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
[3/6/2016, 12:59:54 PM] Loaded plugin: homebridge-openhab
[3/6/2016, 12:59:55 PM] Registering platform 'homebridge-openhab.openHAB'
[3/6/2016, 12:59:55 PM] ---
/usr/local/lib/node_modules/homebridge/lib/server.js:181
var username = config.bridge.username;
^

TypeError: Cannot read property 'username' of undefined
at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:181:31)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:44:23)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)

Help please

@tommasomarchionni
Copy link
Owner

Check your config.json file. It seems that there is no bridge parameter.

@jonbid
Copy link

jonbid commented Apr 9, 2016

yes, adding the bridge parameter fix that problem for me as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants