TonyTromp / tidal-connect-docker

This is the dockerized version of Tidal Connect Raspberry binairies. Can be seemlessly used in HifiberryOS or any other RPi based operating system running Docker.
160 stars 28 forks source link

WIP: audiocontrol2 module to retrieve and showing metadata informations #3

Closed fff0x closed 2 years ago

fff0x commented 2 years ago

Hi, this is just a crappy POC, but I'm able to fetch and display some title metadata. It took a while until I figured out how the current implementations (e.g. for mpd or spotify) are working. Maybe it is useful for you to implement it correctly.

TonyTromp commented 2 years ago

Great work. The issue we are facing is on getting the data from the tidal_controller_application. We are now scraping using tmux and then sending raw inputs to the session (to control Volume, Skip track etc). Combining this with the work you did on mpd might create a working integration.

fff0x commented 2 years ago

I also noticed that I forgot to add the functions to toggle play/pause, will add them to the script later.

Maybe we can also provide an "art URL" for the album cover, like in the Spotify controller, so we are not required to use the fallback, which delivers me some wrong images in the past days.

Anyway, the overall performance is not so good, maybe it would be make more sense, to write an sqlite db file with the metadata of the current track from the tidal application directly and just read it regularly from the a2 controller.

TonyTromp commented 2 years ago

I have updated the code in work-in-progress folder audiocontrol2 for loading of metadata. It works but is yet one way (e.g. it will only display metadata/artwork, but you cant skip a track from the UI yet.. its on my todo list.)