Thank you for your donation!


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


Problem: how do I know what moode is doing?
#4
Hi didomax

I have a program that needs to determine play/pause/stop state. I use the /var/local/www/currentsong.txt file (enable the Moode metadata file in the UI) with the following logic

   https://github.com/antiprism/mpd_oled/bl...s.cpp#L353

If the file doesn't contain "title=something" then a non-MPD player is being used and the state is 'play',
otherwise, if the file includes "state=stop" then the state is 'stop',
otherwise the state is 'play'.

[Seems like there is no longer any detection of 'pause', whatever 'pause' means...]

Adrian.
Reply


Messages In This Thread
how do I know what moode is doing? - by didomax - 03-27-2021, 09:40 PM
RE: how do I know what moode is doing? - by adrii - 03-28-2021, 10:03 AM
RE: how do I know what moode is doing? - by adrii - 03-28-2021, 10:19 AM

Forum Jump: