04-11-2018, 11:36 PM
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
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