09-27-2018, 06:01 PM
In System config under the Local Services section turn on "Metadata file"
Then the file /var/local/www/currentsong.txt will be updated every 3 seconds with information about the currently playing song. It's updated whether the UI is up or not.
Here is an example of the contents. It a simple format using = as the delimiter.
Wrt Airplay metadata I found that the mechanism for retrieving it was unreliable so I dropped it from moOde and AFAIK neither Bluetooth nor Squeezelite provides metadata. i think Spotify might but I'm not planning to look into it.
What I could look at for post moOde 4.3 is to update currentsong.txt file with the name and bitrate of the active renderer. That would allow you to update your LCD accordingly.
Airplay Active
16 bit, 44.1 kHz, Stereo, 1.411 mbps
Something like that.
-Tim
Then the file /var/local/www/currentsong.txt will be updated every 3 seconds with information about the currently playing song. It's updated whether the UI is up or not.
Here is an example of the contents. It a simple format using = as the delimiter.
Code:
file=NAS/Music/Compilations/6 String Theory/02 Am I Wrong.flac
artist=Keb' Mo' & Taj Mahal
album=6 String Theory
title=Am I Wrong
coverurl=/coverart.php/NAS%2FMusic%2FCompilations%2F6%20String%20Theory%2F02%20Am%20I%20Wrong.flac
track=2
date=2010
composer=Kevin R. Moore
encoded=16/44.1k FLAC
bitrate=534 kbps
volume=21
mute=0
state=play
Wrt Airplay metadata I found that the mechanism for retrieving it was unreliable so I dropped it from moOde and AFAIK neither Bluetooth nor Squeezelite provides metadata. i think Spotify might but I'm not planning to look into it.
What I could look at for post moOde 4.3 is to update currentsong.txt file with the name and bitrate of the active renderer. That would allow you to update your LCD accordingly.
Airplay Active
16 bit, 44.1 kHz, Stereo, 1.411 mbps
Something like that.
-Tim