Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions airsonos/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ has to buffer the HTTP audio.

Set to `true` to let timing reference drift (no click).

### Option: `name_format`

Changes how the name of the device is displayed in AirPlay menus. The default
is the speaker name followed by a `+` (e.g., `Main Bedroom+`). You can use a
string with `%s` representing the device's name. For example, setting this
value to `%s [AS]` would show `Main Bedroom [AS]`.

## Sonos hints and limitations

When a Sonos group is created, only the master of that group will appear as
Expand Down
1 change: 1 addition & 0 deletions airsonos/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ options:
latency_rtp: 1000
latency_http: 2000
drift: false
name_format: "%s+"
schema:
log_level: list(trace|debug|info|notice|warning|error|fatal)?
address: str?
Expand Down
5 changes: 5 additions & 0 deletions airsonos/rootfs/etc/s6-overlay/s6-rc.d/airsonos/run
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,10 @@ if bashio::config.true 'drift'; then
options+=(-r)
fi

# Set custom name format
if bashio::config.has_value 'name_format'; then
options+=(-n "$(bashio::config 'name_format')")
fi

# Run the AirSonos server
exec airsonos "${options[@]}"