diff --git a/README.md b/README.md index bfb901c4a..746389d2a 100644 --- a/README.md +++ b/README.md @@ -1050,10 +1050,10 @@ SOFTWARE. [sonarr-armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg [sonarr-armv7-shield]: https://img.shields.io/badge/armv7-no-red.svg [sonarr-i386-shield]: https://img.shields.io/badge/i386-no-red.svg -[addon-spotify]: https://github.com/hassio-addons/addon-spotify-connect/tree/6417abb -[addon-doc-spotify]: https://github.com/hassio-addons/addon-spotify-connect/blob/6417abb/README.md +[addon-spotify]: https://github.com/hassio-addons/addon-spotify-connect/tree/199c7e0 +[addon-doc-spotify]: https://github.com/hassio-addons/addon-spotify-connect/blob/199c7e0/README.md [spotify-issue]: https://github.com/hassio-addons/addon-spotify-connect/issues -[spotify-version-shield]: https://img.shields.io/badge/version-6417abb-blue.svg +[spotify-version-shield]: https://img.shields.io/badge/version-199c7e0-blue.svg [spotify-aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg [spotify-amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg [spotify-armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg diff --git a/spotify/CHANGELOG.md b/spotify/CHANGELOG.md index 8ea3c4447..3dbf2bf99 100644 --- a/spotify/CHANGELOG.md +++ b/spotify/CHANGELOG.md @@ -1,4 +1,36 @@ # Changelog since v0.13.0 +- Add librespot initial-volume option (#276) + +* Adds initial-volume option. + +* Adds initial-volume option. + +* add constraints to ensure values stay within the valid range of 0-100 + +* Fixed translation issues. + +* validate that the initial-volume value is within the valid range (0-100) before passing it to librespot. + +* Improved documentation. + +* Prettified Code! + +* Update DOCS.md + +Removed irrelevant description about behavior with different backends + +* Update DOCS.md + +* Update en.yaml + +* Update hu.yaml + +* Update it.yaml + +--------- + +Co-authored-by: spoetnik +Co-authored-by: Franck Nijhof - ⬆️ Update ghcr.io/hassio-addons/base Docker tag to v17.1.3 (#284) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> diff --git a/spotify/DOCS.md b/spotify/DOCS.md index 5c0457ec2..53df24993 100644 --- a/spotify/DOCS.md +++ b/spotify/DOCS.md @@ -35,6 +35,7 @@ Example add-on configuration: log_level: info name: HomeAssistant bitrate: 320 +initial-volume: 50 username: frenck@example.com password: MySpotifyPassword autoplay: true @@ -75,6 +76,13 @@ however, the add-on consumes more data. Valid values: `96`, `160` (default) or `320`. +### Option: `initial-volume` + +Initial volume in % from 0-100. This setting takes effect when the addon starts or +recovers from a crash. + +initial-volume: 50 # Optional + ### Option: `username` **IMPORTANT**: _This requires a Spotify Premium account!_ diff --git a/spotify/README.md b/spotify/README.md index 622736171..689513a00 100644 --- a/spotify/README.md +++ b/spotify/README.md @@ -52,6 +52,6 @@ If you are more interested in stable releases of our add-ons: [patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png [patreon]: https://www.patreon.com/frenck [project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg -[release-shield]: https://img.shields.io/badge/version-6417abb-blue.svg -[release]: https://github.com/hassio-addons/addon-spotify-connect/tree/6417abb +[release-shield]: https://img.shields.io/badge/version-199c7e0-blue.svg +[release]: https://github.com/hassio-addons/addon-spotify-connect/tree/199c7e0 [screenshot]: https://github.com/hassio-addons/addon-spotify-connect/raw/main/images/screenshot.png \ No newline at end of file diff --git a/spotify/config.yaml b/spotify/config.yaml index 1461c211f..9d1c20e03 100644 --- a/spotify/config.yaml +++ b/spotify/config.yaml @@ -1,5 +1,5 @@ name: Spotify Connect -version: 6417abb +version: 199c7e0 slug: spotify description: Play Spotify music on your Home Assistant device url: https://github.com/hassio-addons/addon-spotify-connect @@ -14,6 +14,7 @@ init: false options: name: Home Assistant bitrate: 160 + initial-volume: 50 schema: log_level: list(trace|debug|info|notice|warning|error|fatal)? name: str @@ -21,4 +22,5 @@ schema: username: str? password: password? autoplay: bool + initial-volume: match(^([0-9]|[1-9][0-9]|100)$)? image: ghcr.io/hassio-addons/spotify/{arch} diff --git a/spotify/translations/en.yaml b/spotify/translations/en.yaml index 18f51084d..21616a607 100644 --- a/spotify/translations/en.yaml +++ b/spotify/translations/en.yaml @@ -14,6 +14,10 @@ configuration: description: >- The bitrate Spotify should use. The higher, the better the sound quality, however, the add-on consumes more data. + initial-volume: + name: Initial Volume + description: >- + Initial volume in % from 0-100. username: name: Spotify username description: >- diff --git a/spotify/translations/hu.yaml b/spotify/translations/hu.yaml index 96406a0a8..3201edf2d 100644 --- a/spotify/translations/hu.yaml +++ b/spotify/translations/hu.yaml @@ -14,6 +14,10 @@ configuration: description: >- A Spotify által használt bitráta beállítása. Minél magasabb, annál jobb minőségű, viszont ez nagyobb adatforgalommal jár. + initial-volume: + name: Kezdeti térfogat + description: >- + Kezdeti térfogat %-ban 0-100 között. username: name: Spotify felhasználónév description: >- diff --git a/spotify/translations/it.yaml b/spotify/translations/it.yaml index 88e723dd6..171b09969 100644 --- a/spotify/translations/it.yaml +++ b/spotify/translations/it.yaml @@ -14,6 +14,10 @@ configuration: description: >- Il bitrate che Spotify dovrebbe usare. Piú é alto, migliore é la qualitá sonora, tuttavia, l'add-on consumerá piú banda. + initial-volume: + name: Volume Iniziale + description: >- + Volume iniziale in % da 0 a 100. username: name: Spotify username description: >-