Open latitjuig opened 8 years ago
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 notifications@github.com 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 https://github.com/tommasomarchionni/homebridge-openHAB/issues/19.
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" notifications@github.com 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 notifications@github.com 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 https://github.com/tommasomarchionni/homebridge-openHAB/issues/19.
— Reply to this email directly or view it on GitHub.
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.
Help please
Check your config.json file. It seems that there is no bridge parameter.
yes, adding the bridge parameter fix that problem for me as well.
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:
[3/6/2016, 10:16:24 AM] Homebridge is running on port 51826.