NEEOInc / neeo-sdk

NEEO Brain SDK
https://neeoinc.github.io/neeo-sdk/
MIT License
49 stars 17 forks source link

BaseURL (or IP Address) as ENV Variable #170

Open splattner opened 5 years ago

splattner commented 5 years ago

I have to create an other Issue with the BaseURL (#58 is similar).

I wanna use a Custome Device built with the NEEO SDK (0.51.13) in a Docker Container. Setting the BRAINIP works via ENV Variable, but the IP Address used for the baseURL is just the first non internal IPV4 Adress found. On my System (running Docker with network host) this is vboxnet0 and therefore I have the wrong IP Address. You should allow the baseURL (or just the IP Address) to be set via ENV. I don't wanna set sdkOptions or similar in the package.json as this could change depending on the Environment the Container runs.