Thank you for your donation!


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


currentsong.txt location
#2
Hi,

Yes thats the correct location, /var/local/www/currentsong.txt

The key to determining whether to use currentsong.txt is that the file is updated within a 3 second polling loop by worker.php. If for example you want to display elapsed time in 1 second intervals, or use side-scrolling text etc then you will probably want to query MPD directly for all the information from a Python script that has its own 1 sec polling loop.

NOTE that there are some data values like the URL for the cover art that are not available by queuing MPD.

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
currentsong.txt location - by mancio61 - 04-11-2018, 11:20 PM
RE: currentsong.txt location - by Tim Curtis - 04-11-2018, 11:36 PM
RE: currentsong.txt location - by mancio61 - 04-12-2018, 08:52 AM
RE: currentsong.txt location - by RafaPolit - 04-12-2018, 01:45 PM
RE: currentsong.txt location - by mancio61 - 04-12-2018, 01:54 PM
RE: currentsong.txt location - by RafaPolit - 04-13-2018, 07:13 PM

Forum Jump: