ptz0n / homebridge-verisure

 Platform plugin for Homebridge allowing to manage and control Verisure devices.
https://www.npmjs.com/package/homebridge-verisure
MIT License
66 stars 15 forks source link

Enable configuration using environment variables #48

Closed ptz0n closed 5 years ago

ptz0n commented 5 years ago

In some setups, configuring the platform using environment variables would be really convenient.

Update the plugin globally

$ npm install -g git://github.com/ptz0n/homebridge-verisure#config-environment-variables

Alt. run it manually

$ git clone https://github.com/ptz0n/homebridge-verisure.git
$ cd homebridge-verisure
$ git checkout config-environment-variables
$ npm install
$ homebridge -P .

Fixes: #47

ptz0n commented 5 years ago

Please have a look @jlowgren.

ptz0n commented 5 years ago

What's the content of your, now secret free, config.json? Did you remove the bridge part which homebridge tries to read in the trace above?

jodelamo commented 5 years ago

Sorry, forgot about that file:

{
  "platforms": [
    {
      "platform" : "verisure",
      "name" : "Verisure"
    }
  ]
}
ptz0n commented 5 years ago

You are missing the bridge part of the config. See config-sample.json

jodelamo commented 5 years ago

Oops. Works now, thanks. 🙂