mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
auto register default false
This commit is contained in:
@@ -33,6 +33,8 @@ bonob is ditributed via docker and can be run in a number of ways
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run \
|
docker run \
|
||||||
|
-e BONOB_SONOS_AUTO_REGISTER=true \
|
||||||
|
-e BONOB_SONOS_DEVICE_DISCOVERY=true \
|
||||||
-p 4534:4534 \
|
-p 4534:4534 \
|
||||||
--network host \
|
--network host \
|
||||||
simojenki/bonob
|
simojenki/bonob
|
||||||
@@ -46,6 +48,8 @@ Now open http://localhost:4534 in your browser, you should see sonos devices, an
|
|||||||
docker run \
|
docker run \
|
||||||
-e BONOB_PORT=3000 \
|
-e BONOB_PORT=3000 \
|
||||||
-e BONOB_SONOS_SEED_HOST=192.168.1.123 \
|
-e BONOB_SONOS_SEED_HOST=192.168.1.123 \
|
||||||
|
-e BONOB_SONOS_AUTO_REGISTER=true \
|
||||||
|
-e BONOB_SONOS_DEVICE_DISCOVERY=true \
|
||||||
-p 3000:3000 \
|
-p 3000:3000 \
|
||||||
simojenki/bonob
|
simojenki/bonob
|
||||||
```
|
```
|
||||||
@@ -113,6 +117,8 @@ services:
|
|||||||
# ip address of your machine running bonob
|
# ip address of your machine running bonob
|
||||||
BONOB_URL: http://192.168.1.111:4534
|
BONOB_URL: http://192.168.1.111:4534
|
||||||
BONOB_SECRET: changeme
|
BONOB_SECRET: changeme
|
||||||
|
BONOB_SONOS_AUTO_REGISTER: true
|
||||||
|
BONOB_SONOS_DEVICE_DISCOVERY: true
|
||||||
BONOB_SONOS_SERVICE_ID: 246
|
BONOB_SONOS_SERVICE_ID: 246
|
||||||
# ip address of one of your sonos devices
|
# ip address of one of your sonos devices
|
||||||
BONOB_SONOS_SEED_HOST: 192.168.1.121
|
BONOB_SONOS_SEED_HOST: 192.168.1.121
|
||||||
@@ -126,7 +132,7 @@ item | default value | description
|
|||||||
BONOB_PORT | 4534 | Default http port for bonob to listen on
|
BONOB_PORT | 4534 | Default http port for bonob to listen on
|
||||||
BONOB_URL | http://$(hostname):4534 | URL (including path) for bonob so that sonos devices can communicate. **This must be either the public IP or DNS entry of the bonob instance so that the sonos devices can communicate with it.**
|
BONOB_URL | http://$(hostname):4534 | URL (including path) for bonob so that sonos devices can communicate. **This must be either the public IP or DNS entry of the bonob instance so that the sonos devices can communicate with it.**
|
||||||
BONOB_SECRET | bonob | secret used for encrypting credentials
|
BONOB_SECRET | bonob | secret used for encrypting credentials
|
||||||
BONOB_SONOS_AUTO_REGISTER | true | Whether or not to try and auto-register on startup
|
BONOB_SONOS_AUTO_REGISTER | false | Whether or not to try and auto-register on startup
|
||||||
BONOB_SONOS_DEVICE_DISCOVERY | true | whether or not sonos device discovery should be enabled
|
BONOB_SONOS_DEVICE_DISCOVERY | true | whether or not sonos device discovery should be enabled
|
||||||
BONOB_SONOS_SEED_HOST | undefined | sonos device seed host for discovery, or ommitted for for auto-discovery
|
BONOB_SONOS_SEED_HOST | undefined | sonos device seed host for discovery, or ommitted for for auto-discovery
|
||||||
BONOB_SONOS_SERVICE_NAME | bonob | service name for sonos
|
BONOB_SONOS_SERVICE_NAME | bonob | service name for sonos
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default function () {
|
|||||||
(process.env["BONOB_SONOS_DEVICE_DISCOVERY"] || "true") == "true",
|
(process.env["BONOB_SONOS_DEVICE_DISCOVERY"] || "true") == "true",
|
||||||
seedHost: process.env["BONOB_SONOS_SEED_HOST"],
|
seedHost: process.env["BONOB_SONOS_SEED_HOST"],
|
||||||
autoRegister:
|
autoRegister:
|
||||||
(process.env["BONOB_SONOS_AUTO_REGISTER"] || "true") == "true",
|
(process.env["BONOB_SONOS_AUTO_REGISTER"] || "false") == "true",
|
||||||
sid: Number(process.env["BONOB_SONOS_SERVICE_ID"] || "246"),
|
sid: Number(process.env["BONOB_SONOS_SERVICE_ID"] || "246"),
|
||||||
},
|
},
|
||||||
navidrome: {
|
navidrome: {
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ describe("config", () => {
|
|||||||
describeBooleanConfigValue(
|
describeBooleanConfigValue(
|
||||||
"autoRegister",
|
"autoRegister",
|
||||||
"BONOB_SONOS_AUTO_REGISTER",
|
"BONOB_SONOS_AUTO_REGISTER",
|
||||||
true,
|
false,
|
||||||
(config) => config.sonos.autoRegister
|
(config) => config.sonos.autoRegister
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user