Synology-Forum.nl
Packages => 3rd party Packages => Overige 3rd party packages => Topic gestart door: koolenboer op 14 oktober 2017, 13:32:02
-
Hoi Luitjes,
ik heb jullie hulp (helaas) nodig. In huis heb ik Homewizard in combinatie met klikaanklikuit ontvangers om lampen aan en uit te schakelen. Nu heb ik reeds Philips hue lampen gekocht en wil ik de boel gaan aansturen via Homekit van Apple. De HUE lampen ondersteunen dit out of the box maar de Homewizard helaas niet. Nu las ik op internet dat ik mijn Homewizard, en ook mijn nest thermostaat, kan laten aansturen door Homekit door Homebridge te draaien op mijn NAS.
Nu staat er een mooie uitleg op de onderstaande website:
https://hub.docker.com/r/marcoraddatz/homebridge/
Alvast bedankt.
Maar telkens als ik mijn container start, wordt hij binnen twee minuten weer gestopt.
Zijn er Homebridge experts hier? Zo ja, dan zou ik graag hun config.json and install.sh files willen bekijken waar ik fout ga.
-
Volgens mij gaat er gewoon iets fout bij het installeren van de docker.
Iemand enig idee? Zie logfile van een poging tot nieuwe install
2017-10-14 11:29:37 stdout at Function.Module._load (module.js:462:3)
2017-10-14 11:29:37 stdout at tryModuleLoad (module.js:470:12)
2017-10-14 11:29:37 stdout at Module.load (module.js:507:32)
2017-10-14 11:29:37 stdout at Object.Module._extensions..js (module.js:584:10)
2017-10-14 11:29:37 stdout at Module._compile (module.js:573:30)
2017-10-14 11:29:37 stdout at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
2017-10-14 11:29:37 stdout at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
2017-10-14 11:29:37 stdout at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:52:38)
2017-10-14 11:29:37 stdout at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:191:19)
2017-10-14 11:29:37 stdout at JSON.parse (<anonymous>)
2017-10-14 11:29:37 stdout SyntaxError: Unexpected token “ in JSON at position 68
2017-10-14 11:29:37 stdout
2017-10-14 11:29:37 stdout ^
2017-10-14 11:29:37 stdout throw err;
2017-10-14 11:29:37 stdout /usr/local/lib/node_modules/homebridge/lib/server.js:197
2017-10-14 11:29:37 stdout [37m[2017-10-14 11:29:37][39m
2017-10-14 11:29:37 stdout [37m[2017-10-14 11:29:37][39m [1m[31mPlease try pasting your config.json file here to validate it: http://jsonlint.com[39m[22m
2017-10-14 11:29:37 stdout [37m[2017-10-14 11:29:37][39m [1m[31mThere was a problem reading your config.json file.[39m[22m
2017-10-14 11:29:37 stdout [37m[2017-10-14 11:29:37][39m [33mNo plugins found. See the README for information on installing plugins.[39m
2017-10-14 11:29:37 stdout npm info ok
2017-10-14 11:29:37 stdout npm info using node@v8.4.0
2017-10-14 11:29:37 stdout npm info using npm@5.3.0
2017-10-14 11:29:37 stdout npm info it worked if it ends with ok
2017-10-14 11:29:35 stdout *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
2017-10-14 11:29:35 stdout *** WARNING *** Please fix your application to use the native API of Avahi!
2017-10-14 11:29:35 stdout *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
2017-10-14 11:29:35 stdout *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
2017-10-14 11:29:35 stdout *** WARNING *** Please fix your application to use the native API of Avahi!
2017-10-14 11:29:35 stdout *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
2017-10-14 11:29:33 stdout /root/.homebridge/install.sh: line 2: `{\fonttbl\f0\fnil\fcharset0 Consolas;}'
2017-10-14 11:29:33 stdout /root/.homebridge/install.sh: line 2: syntax error near unexpected token `}'
2017-10-14 11:29:33 stdout /root/.homebridge/install.sh: line 1: {rtf1ansiansicpg1252cocoartf1504cocoasubrtf830: command not found
2017-10-14 11:29:33 stdout Installing plugins from /root/.homebridge/install.sh.
2017-10-14 11:29:33 stdout /root/.homebridge/package.json not found.
2017-10-14 11:29:33 stdout Default env variables will be used.
2017-10-14 11:29:33 stdout /root/.homebridge/.env not found.
-
Heb net hetzelfde probleem als wat jij voorhebt. Start op maar ligt er na een minuutje ook weer uit, met deze melding
Docker container: Homebridge stopped unexpectedly.
Maar aan jou uitvoer te zien is er reeds iets verkeerd aan je config.json bestand, vandaar de melding "SyntaxError: Unexpected token “ in JSON at position 68" in je logbestand.
Mijn config.json ziet eruit als volgt
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
"accessories": [
],
"platforms": [
{
"platform": "PhilipsHue",
"name": "Philips Hue",
"ip_address": "127.0.0.1",
"username": "252deadbeef0bf3f34c7ecb810e832f"
}
]
}