Giter Site home page Giter Site logo

shenmao1989 / homebridge-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcoraddatz/homebridge-docker

0.0 2.0 0.0 1.74 MB

Run HomeBridge on a Synology device. No plugins pre-defined, hassle-free setup. Read instructions!

License: Apache License 2.0

Shell 100.00%

homebridge-docker's Introduction

Homebridge on Synology

This Docker image helps you to easily setup Homebridge on your Synology. Make sure you run at least DSM 6.0.2, otherwise you might have to go the harder way via SSH / shell scripts.

If you're on Docker Hub right now and don't see any images, you might want to read this page on Github.

Synology

1. Download Image

First of all, login to your Synology DSM, open Docker, and download marcoraddatz/homebridge from within the registry.

Registry Overview.

2. Prepare your scripts

Create a folder at /volume1/docker/homebridge and put your config.json and either your package.json or install.sh in there.

If you're using the DSM File Station, create the folder in the virtual root.

File Station.

Here are two examples of how your setup files can look like:

package.json

{
  "name": "DiskStationHomeBridge",
  "description": "HomeKit support for the impatient.",
  "version": "0.1.1",
  "license": "ISC",
  "dependencies": {
    "homebridge-harmonyhub": "0.2.0-alpha",
    "homebridge-netatmo": "^0.0.4",
    "homebridge-nukiio": "^0.0.3",
    "homebridge-synology": "^0.1.0"
  }
}

install.sh

#!/bin/sh

npm install -g homebridge-harmonyhub
npm install -g homebridge-netatmo
npm install -g homebridge-nukiio
npm install -g homebridge-synology

A third option is to place your plugins manually under /volume1/docker/homebridge/plugins. This is especially useful if you intend to write an own plugin. See the Homebridge docs for details.

3. Start Container

After your plugins are configured, you're now ready to launch the Docker container.

Launch container.

Click 'Advanced Settings'.

Link local configs.

Link the /volume1/docker/homebridge to /root/.homebridge, otherwise, the configuration files won’t be loaded (within DSM the path is only shown as /docker/homebridge. Make sure you don’t click "read only".

Allow container to work act as host.

It's very important to select the Use the same network as Docker Host checkbox.

That's it!

Once you launch the container, Homebridge and all its dependencies will be installed. To verify that Homebridge is running or if an error occurs, you can use the container's log (Container → Details → Log) to find out the reason why.

Command line

There are many Docker commands that can be run via the homebridge.sh script. Please have a look at the file, it should be self-explaining.

License

The original project from Patrick Busch is licensed under Apache License V2 (see LICENSE). Changes are under MIT.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.