Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146

    CLI for notification of change in metadatas

    Hello,

    thanks to bpa I could send/receive information by the uart.
    https://forums.slimdevices.com/showt...=1#post1044890

    To get the title I send
    Code:
    title ?
    Now I would like the get the new title/or radio name, or... when it arrive.
    How to get automatic notification or sending a new message when the track or radio station changes ?

    Thanks

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,775

    CLI for notification of change inmetadatas

    Check the CLI documentation. "subscribe status" or similar might give
    you what you want.

  3. #3
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    21,883
    A way to start but reading the CLI doc is the way to get what you want.

    "listen 1" command - start a dump of lots of actions. Subscribe is more specific.
    An output "playlist newsong" tells new track is starting - then you can enquire for album and artist details.

    Example - commands in red. The following is test using Tidal - you have to investigate for other stations / files.

    Code:
    listen 1
    listen 1
    .
    .
    .
    xx%3A9e%3Axx%3A2b%3A52%3Ayy playlist open https%3A%2F%2Fsp-pr-fa.audio.tidal.com%2Fmediatracks
    xx%3A9e%3Axx%3A2b%3A52%3Ayy playlist newsong The%20Flow%20of%20Time%20by%20Anders%20Miolin%20from%20VISIONS 0
    xx%3A9e%3Axx%3A2b%3A52%3Ayy newmetadata
    xx%3A9e%3Axx%3A2b%3A52%3Ayy title ?
    xx%3A9e%3Axx%3A2b%3A52%3Ayy title The%20Flow%20of%20Time
    xx%3A9e%3Axx%3A2b%3A52%3Ayy artist ?
    xx%3A9e%3Axx%3A2b%3A52%3Ayy artist Anders%20Miolin
    xx%3A9e%3Axx%3A2b%3A52%3Ayy album ?
    xx%3A9e%3Axx%3A2b%3A52%3Ayy album VISIONS
    xx%3A9e%3Axx%3A2b%3A52%3Ayy playlist index 1   
    xx%3A9e%3Axx%3A2b%3A52%3Ayy playlist stop
    .
    .
    .

  4. #4
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Thanks bpa,

    I'll investigate about listen (all informations but need to be parsed) and subscribe (playlist newsong; it's ok for when new song is coming but seems that the radio name is into the same feed).

    Code:
    dc%3Aa6%3A32%3A75%3A45%3A0a playlist newsong LIAM%20PAYNE%20FT.%20A%20BOOGIE%20WIT%20DA%20HOODIE%20-%20STACK%20IT%20UP
    dc%3Aa6%3A32%3A75%3A45%3A0a playlist newsong Radio%20Pilatus

  5. #5
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    21,883
    Quote Originally Posted by PaulH View Post
    but seems that the radio name is into the same feed
    .
    I don't use CLI in detail so all I am doing is guessing based on other LMS knowledge.

    When a "newsong" starts playing - if it is a radio station the metadata may not be available immediately as it may be inline (i.e. mixed in with audio data) or via polling and it takes time before the metadata chunk is received.
    So initially the metadata may just be station Name and then when metadata becomes available Title/Artist/Album will be updated so after notification of "newsong" keeping looking at Title,Artist,Album regularly because when a track changes on same station (i.e. metadata changes) there may not be a "playlist newsong"

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    6,262
    It should be very close to what you see on a real player with a screen or a controller (like Jivelite).

    What do you see there?

    It might be that the previous song has finished playing and the new song title is not known.

    You could look for " - " (%20-%20) and if not present then do something else.

    In that case, If you do not want the radio station name to appear then what do you want to show instead?

    Edit: started writing before bpa's reply appeared
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  7. #7
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Quote Originally Posted by Paul Webster View Post
    It should be very close to what you see on a real player with a screen or a controller (like Jivelite).

    What do you see there?
    The "newsong" text is the same as displayed on the touchscreen.


    I founded the song name is: playlist newsong
    and for the radio station: playlist newsong Radio

    Code:
    dc%3Aa6%3A32%3A75%3A45%3A0a playlist newsong ONE%20REPUBLIC%20-%20SUNSHINE
    
    dc%3Aa6%3A32%3A75%3A45%3A0a playlist newsong Radio%20Pilatus 0
    By this way I can parse the title and the radio name.

    Solved !
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •