Closed davidjgonzalez closed 6 years ago
Hey David, this is awesome! I will split the readme into a separate site and create wiki entries for Synology and QNAP! Many thanks!
Here is how I do for setup homebridge with QANP NAS. I use type command via ssh for setup homebridge.
Put package.json
, install.sh
and config.json
files to a shared folder in your NAS.
(for example, my path is /share/homes/admin/Docker/homebridge/)
Go to ControlPanel > [Network & File Services sections] > Telnet/ SSH Make sure your NAS ssh is open and you know the port number. (for example, my NAS IP is: 192.168.1.2 port: 22)
Open a terminal, link to your nas via ssh. (For windows users, you may need Putty
)
$ ssh -p 22 admin@192.168.1.2
admin@192.168.1.2's password: <type your account password, it will not shown>
there is either or two method, choose it you like.
Use docker command for start the homebridge
[~] # docker run -d --restart=always --net=host -p 51826:51826 -v /share/homes/admin/Docker/homebridge:/root/.homebridge marcoraddatz/homebridge:latest
config.json
, you can edit it and change that.Then, you will see a new running container in Container Station web interface.
Create a new plain text file named docker-compose.yml
in the same folder.
[~] # cd /share/homes/admin/Docker/
[/share/homes/admin/Docker/homebridge] # vi docker-compose.yml
the contents is
version: '2'
services:
homebridge:
image: marcoraddatz/homebridge:latest
restart: always
network_mode: host
ports:
- "51826:51826"
volumes:
- /share/homes/admin/Docker/homebridge:/root/.homebridge
then using the command to start
[/share/homes/admin/Docker/homebridge] # docker-compose up -d
when you to want to stop container, using this command
[/share/homes/admin/Docker/homebridge] # docker-compose down
it will stop container and remove that.
also, you can hand over to Container Station web interface do the remaining stuff.
I've added two new pages to the wiki:
Feel free to commit changes and many thanks! Will update the readme soon.
Could you please give more information on step 5?
I get the following:
/root/.homebridge/.env not found.
Default env variables will be used.
/root/.homebridge/package.json not found.
Installing plugins from /root/.homebridge/install.sh.
/root/.homebridge/install.sh: line 2: $'\r': command not found
In the container settings I have: Shared Folders | ||
---|---|---|
/root/.homebridge | /share/containerconfigdata | Read/Write |
Thank you
At Step 4, I recommend clicking the spinner control on "Container MAC Address" to set a consistent MAC address when creating the container. Otherwise this will appear as a new device on every restart, which can cause problems.
(In my case specifically it appeared to be causing issues with Wink authentication, and freaked out the Circle device on my network.)
So, do I need to delete the install.sh file after if has installed? After a reboot it runs this script again and reinstalls everything, is that normal?
ALSO- how do I edit the code to allow Homebridge to run in insecure mode?
@codylegger install.sh runs every time it starts up. Containers are based on images - so every time you restart a container, it’s like it’s the first time starting it. You COULD create an image front a configured container but that’s not in scope of this repo - and TBH not necessary. Just let the install run on eveey restart and you’re fine. Nest is the only annoying config I’ve ran into since it requires a new key in each restart (not sure if there’s some way around this now)
Hth
Hi all, i m trying to setup on my Qnap TS-128 but i always have this error standard_init_linux.go:187 standard_init_linux.go:187 Where i did mistake ?
Thanks
So, I have followed all of these steps and when I start the container, it immediately stops again. Any ideas?
do not see the button advance setting, what can i do?
Thanks for this project! Adding instructions for QNAP setup.
Setting up Homebridge using QNAP Containers
/root/.homebridge
. If you want to create a special folder, open QNAP's File Station, and make a new folder (I created one named "Homebridge". This shared folder will let you modify the Homebridge config files without dealing ssh'ing into the docker container.