Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


data source for oled/lcd display
#2
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.

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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
data source for oled/lcd display - by remy1961 - 09-27-2018, 04:36 PM
RE: data source for oled/lcd display - by Tim Curtis - 09-27-2018, 06:01 PM

Forum Jump: