I would like to hook up a I2C LCD display to the Rasperry 4 which is running Mopidy.
But that’s not the topic of this question.
My problem is, how do I get the information to be shown on the display?
This is what I would like to have access to, either through Mopidy or maybe some lower level component (alsa? driver status?):
awesome! thank you for the reply and for pointing me in the right direction.
I found the first 2 data points in /proc/asound/card0/pcm0p/sub0/hw_params
I think I’ll look into the MPD frontend next. (The Pidi frontend seems to be too focused on that kind of RGB display. I don’t care for controlling each pixel of the screen. I’m just gonna use the RPLCD library to display some text on a monochromatic display )
Alright, here’s my script! hopefully it’ll be of some use to someone
It has scrolling text, and can be safely used as a cron job.
It can manage all sizes of display but you’ll have to re-arrange some stuff, mostly in the GetInfo() function.
It requires minimal setup: LCD configuration, log file path, MPD host.
Sorry about the ital-english!!
The working parameters of the audio adapter seem to only be dependent on the drivers and not on the current audio stream being played, which is too bad. But it’s still quite cool to have those IMO
Maybe I’ll figure something out some other time