Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sonos] Add support for RadioApp music service #13235

Merged
merged 6 commits into from
Aug 11, 2022

Conversation

lolodomo
Copy link
Contributor

@lolodomo lolodomo commented Aug 8, 2022

Fix #13208

Signed-off-by: Laurent Garnier lg.hc@free.fr

@lolodomo lolodomo added enhancement An enhancement or new feature for an existing add-on additional testing preferred The change works for the pull request author. A test from someone else is preferred though. labels Aug 8, 2022
@lolodomo lolodomo requested a review from kgoderis as a code owner August 8, 2022 11:15
@lolodomo
Copy link
Contributor Author

lolodomo commented Aug 8, 2022

@sbushnell : here is a jar for testing. Download the file and then rename .zip into .jar.

Edit:removed

If I consider your example in the issue, the channel "currenttitle" should now contain "XXXXX" and the channel "currenttrack" should now contain "XXXXX - Green Day - Time Of Your Life (Good Riddance)" with XXXXX being probably the name of the radio station.
The album art should work now.
Please also try sending a notification (like a TTS message) while the radio is playing, to check if the radio is properly restored after the notification.
Waiting for your feedback.

Edit: I now ignore title starting with "Advertisement_" so for talk show, you should get "XXXXX" in channel "currenttrack".
Joined file has been updated.

Fix openhab#13208

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Two minor suggestions.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
…nformation

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo lolodomo force-pushed the sonos_radioapp branch 2 times, most recently from c1e18cc to 8ad2809 Compare August 10, 2022 21:38
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo
Copy link
Contributor Author

@sbushnell : here is a new jar for testing.

org.openhab.binding.sonos-3.4.0-SNAPSHOT.zip

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo lolodomo added community approved and removed additional testing preferred The change works for the pull request author. A test from someone else is preferred though. labels Aug 10, 2022
@sbushnell
Copy link

sbushnell commented Aug 11, 2022 via email

Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jlaur jlaur merged commit 92d6f1c into openhab:main Aug 11, 2022
@jlaur jlaur added this to the 3.4 milestone Aug 11, 2022
@lolodomo lolodomo deleted the sonos_radioapp branch August 11, 2022 06:36
@jlaur jlaur changed the title [sonos] Added support of RadioApp music service [sonos] Add support for RadioApp music service Aug 13, 2022
leifbladt pushed a commit to leifbladt/openhab-addons that referenced this pull request Oct 15, 2022
* [sonos] Added support of RadioApp music service
* Extract artist and song title from TITLE
* Extract code in methods to reduce the size of the method updateMediaInformation
* Create new class and add tests

Fix openhab#13208

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
* [sonos] Added support of RadioApp music service
* Extract artist and song title from TITLE
* Extract code in methods to reduce the size of the method updateMediaInformation
* Create new class and add tests

Fix openhab#13208

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
* [sonos] Added support of RadioApp music service
* Extract artist and song title from TITLE
* Extract code in methods to reduce the size of the method updateMediaInformation
* Create new class and add tests

Fix openhab#13208

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
* [sonos] Added support of RadioApp music service
* Extract artist and song title from TITLE
* Extract code in methods to reduce the size of the method updateMediaInformation
* Create new class and add tests

Fix openhab#13208

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Feb 28, 2023
* [sonos] Added support of RadioApp music service
* Extract artist and song title from TITLE
* Extract code in methods to reduce the size of the method updateMediaInformation
* Create new class and add tests

Fix openhab#13208

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community approved enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[sonos] 'currenttrack' is not updated for Music Source 'RadioApp'
3 participants