Starbix / dockerimages

🐳 Some dockerfiles based on alpine
MIT License
26 stars 6 forks source link

Every Update or Change seems to default it back to factory #2

Closed dazza120 closed 6 years ago

dazza120 commented 6 years ago

Hi every update via a pull from unraid or a change of the config seems to, revert the whole home bridge back to the factory settings that cause homebridge to fail to start as it detects the json file which is setup for my wemo and nest stuff. So i have to remove the json file then restart the home bridge then terminal in and install the plugins then put the json file back. Is there anyway i can get unraid to keep my setting on update so home bridge remains operational after pulling your updates. PS thanks for the port.

Starbix commented 6 years ago

Hello @dazza120

First of all thanks for showing interest in my image! Right now it only installs the homebridge plugin (at the building stage of the image). However I could add an option where the starting script installs additional plugins, so you could use wemo and nest.

dazza120 commented 6 years ago

yes please that would be great thanks. The unraid port is working well thanks!

dazza120 commented 6 years ago

Hi the ones i'm using is npm install -g homebridge-nest and npm install -g homebridge-platform-wemo if these could be pulled down with every update it would save my home bridge going off line. Thanks in advance

Starbix commented 6 years ago

You can now add custom plugins using the CUSTOMPLUGINS environmental variable like this:

Please tell me if this works for you.

dazza120 commented 6 years ago

Hi for some reason its not pulling down the plugins it, just fails to start i have done it like this

Config Type: Variable

Name: Host Key 1

Key:

Value:

Default Value: homebridge-nest homebridge-platform-wemo

Description:Container Variable: CUSTOMPLUGINS

Display: Always

Required: Yes

Password Mask: No

Starbix commented 6 years ago

You need to put it into Value. You put it into Default Value and Key needs to be CUSTOMPLUGINS.

bildschirmfoto 2018-06-05 um 22 36 50
dazza120 commented 6 years ago

hi thanks do you need the npm install -g part or just from homebridge-platform-wemo? replied before me thank you

Starbix commented 6 years ago

Just the name. The init script executes npm install -g + CUSTOMPLUGINS

dazza120 commented 6 years ago

its saved it just won't start. because its no downloading them before it starts the json file blocks it here is how i have it

/mnt/user/appdata/homebridge/ /config rw

homebridge-nest homebridge-platform-wemo Custom Plugins 51826 homebridge-nest homebridge-platform-wemo /mnt/user/appdata/homebridge/

dazza120 commented 6 years ago

screen shot 2018-06-05 at 21 53 00

Starbix commented 6 years ago

It's CUSTOMPLUGINS not Custom Plugins as the Key!

dazza120 commented 6 years ago

Hi i've done that. Now it starts but there is no log or home kit function

dazza120 commented 6 years ago

Scratch that the log has loaded and it has downloaded the plugins :)

dazza120 commented 6 years ago

Thank You very much now when it updates i won't have to worry about the json file thank you very much it is much appreciated

Starbix commented 6 years ago

Glad this worked for you!