Skip to content

Commit

Permalink
generic librespot args envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
nickw444 committed Jul 30, 2023
1 parent f8364ea commit 8947625
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Container images are configured using parameters passed at runtime (such as thos
| `--net=host` | Shares host networking with container. |
| `-e PUID=1000` | for UserID - see below for explanation |
| `-e PGID=1000` | for GroupID - see below for explanation |
| `-e SPOTIFY_CONNECT_NAME=MultiRoom` | optionally specify a name to identify as in the Spotify Connect menu (default is `OwnTone`). |
| `-e LIBRESPOT_ARGS="-n OwnTone -b 320"` | optionally specify additional arguments to pass to librespot |
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
| `-v /config` | Where daapd server stores its config and dbase files. |
| `-v /music` | Map to your music folder. |
Expand Down
2 changes: 1 addition & 1 deletion readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ param_net_desc: "Shares host networking with container."
param_usage_include_env: true
param_env_vars:
- {env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London."}
- {env_var: "SPOTIFY_CONNECT_NAME", env_value: "MultiRoom", desc: "Specify a name to identify as in the Spotify Connect menu."}
- {env_var: "LIBRESPOT_ARGS", env_value: "-n OwnTone -b 320", desc: "Optionally specify additional arguments to pass to librespot"}
param_usage_include_vols: true
param_volumes:
- {vol_path: "/config", vol_host_path: "/path/to/data", desc: "Where daapd server stores its config and dbase files."}
Expand Down
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-librespot/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

librespot --backend pipe --device /music/spotify -n "${SPOTIFY_CONNECT_NAME:-OwnTone}" --cache /tmp
eval librespot --backend pipe --device /music/spotify --cache /tmp ${LIBRESPOT_ARGS:-"-n OwnTone"}

0 comments on commit 8947625

Please sign in to comment.