Auteur Topic: Homebridge via Docker DS415+  (gelezen 2566 keer)

Offline koolenboer

  • Bedankjes
  • -Gegeven: 12
  • -Ontvangen: 4
  • Berichten: 118
Homebridge via Docker DS415+
« Gepost 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.
  • Mijn Synology: DS415+
  • HDD's: 2x3TB + 2x5TB WD-RED
  • Extra's: 2GB RAM

Offline koolenboer

  • Bedankjes
  • -Gegeven: 12
  • -Ontvangen: 4
  • Berichten: 118
Re: Homebridge via Docker DS415+
« Reactie #1 Gepost op: 14 oktober 2017, 13:36:16 »
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   [2017-10-14 11:29:37]
2017-10-14 11:29:37   stdout   [2017-10-14 11:29:37] Please try pasting your config.json file here to validate it: http://jsonlint.com
2017-10-14 11:29:37   stdout   [2017-10-14 11:29:37] There was a problem reading your config.json file.
2017-10-14 11:29:37   stdout   [2017-10-14 11:29:37] No plugins found. See the README for information on installing plugins.
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.
  • Mijn Synology: DS415+
  • HDD's: 2x3TB + 2x5TB WD-RED
  • Extra's: 2GB RAM

Offline StefaanD

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 48
  • -Ontvangen: 96
  • Berichten: 344
Re: Homebridge via Docker DS415+
« Reactie #2 Gepost op: 31 oktober 2017, 20:55:35 »
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"
       }   
   ]
  }
  • Mijn Synology: DS2413+
  • HDD's: 8 x 4TB
  • Extra's: 4 GB
Momenteel niets
5-star contributor My Movies Pro


 

homebridge

Gestart door MacMarsBoard Overige 3rd party packages

Reacties: 2
Gelezen: 2463
Laatste bericht 28 september 2016, 22:17:33
door MacMars
VERPLAATST: Homebridge ervaringen

Gestart door BirdyBoard Wordpress package

Reacties: 0
Gelezen: 1077
Laatste bericht 12 maart 2021, 16:51:00
door Birdy
VERPLAATST: homebridge

Gestart door BirdyBoard iOS Apps (iPhone, iPad en iPod)

Reacties: 0
Gelezen: 1209
Laatste bericht 28 september 2016, 22:39:26
door Birdy
Homebridge ervaringen

Gestart door groan1234Board Docker / Container Manager

Reacties: 2
Gelezen: 871
Laatste bericht 14 maart 2021, 20:51:41
door groan1234
homebridge synology

Gestart door Enzoz89Board Overige 3rd party packages

Reacties: 1
Gelezen: 2846
Laatste bericht 23 maart 2017, 21:42:23
door wopper