I use a 4x20 LCD Display. With python i transfer the current song information to the display.
Here i am using the standard mpc commands like shown here: linux.die.net/man/1/mpc
Is there a general API or how to get the song information from my spotify track?
How to get song infomration from my airplay device?
I searched a bit in the www folder an found the json information in /_player_engine_spop.php for spotify.
Here i will grab that info. Is there a better solution?
He uses the option to dump the meta info from the playing song in a dir.
You have to do a few adjustments:
Make a dir to save the meta info:
sudo mkdir /etc/shairport
You have to add the -M option and the location (the dir from the first step) to store the info, to the init file:
sudo nano /etc/init.d/shairport
So the start command ends up like this:
/usr/local/bin/shairport -d -a "$NAME" -w -B "mpc stop" -M /etc/shairport
Restart shairport or reboot Volumio.
There is also script to get the info from the directory and sent this to the LCD. He is using an USB-lcd but i think the first part of his code will be usefull for you.