Error npm Homebridge install with Domoticz
Posted: Sunday 27 December 2015 23:01
Hi Guys,
i have a problem : i did a new install with the domoticz image, the new image includes homebrige.
i followed this tutorial : http://www.domoticz.com/wiki/Homekit_Siri
So i edited the config.json in the Homebridge folder, this is my config :
{
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "Domoticz",
"name": "Domoticz",
"server": "127.0.0.1",
"port": "8097"
"roomid": 2,
"loadscenes": 0
}
],
"accessories": [
]
}
But the problem is when i do
npm run start
this is the message error :
> [email protected] start /home/pi/homebridge
> node app.js
Starting HomeBridge server...
undefined:9
"roomid": 2,
^
SyntaxError: Unexpected string
at Object.parse (native)
at Object.<anonymous> (/home/pi/homebridge/app.js:21:19)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Linux 4.1.13+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.1
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! This is most likely a problem with the homebridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get their info via:
npm ERR! npm owner ls homebridge
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/homebridge/npm-debug.log
Any idea, what's happen ?
Thanks for any help
i have a problem : i did a new install with the domoticz image, the new image includes homebrige.
i followed this tutorial : http://www.domoticz.com/wiki/Homekit_Siri
So i edited the config.json in the Homebridge folder, this is my config :
{
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "Domoticz",
"name": "Domoticz",
"server": "127.0.0.1",
"port": "8097"
"roomid": 2,
"loadscenes": 0
}
],
"accessories": [
]
}
But the problem is when i do
npm run start
this is the message error :
> [email protected] start /home/pi/homebridge
> node app.js
Starting HomeBridge server...
undefined:9
"roomid": 2,
^
SyntaxError: Unexpected string
at Object.parse (native)
at Object.<anonymous> (/home/pi/homebridge/app.js:21:19)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Linux 4.1.13+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v0.12.1
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! This is most likely a problem with the homebridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get their info via:
npm ERR! npm owner ls homebridge
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/homebridge/npm-debug.log
Any idea, what's happen ?
Thanks for any help