Moode Forum
[PROBLEM] MPD status - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [PROBLEM] MPD status (/showthread.php?tid=1185)



MPD status - fabnavigator - 03-08-2019

I'm sending a simple status request (i.e., "http://192.168.0.85/status") to my MoOde player at 192.168.0.85 and am not getting back what I would expect as per the MPD documentation (https://www.musicpd.org/doc/html/protocol.html#querying-mpd-s-status). Should this work?


RE: MPD status - Tim Curtis - 03-08-2019

Edit /var/www/command/index.php and uncomment the echo statement in the code block below

Code:
    else {
        sendMpdCmd($sock, $_GET['cmd']);
        $result = readMpdResp($sock);
        closeMpdSock($sock);
        //echo $result;
    }

Then use the following URL

http://<host or ip_address>/command/?cmd=status


RE: MPD status - fabnavigator - 03-08-2019

(03-08-2019, 05:26 PM)Tim Curtis Wrote: Edit /var/www/command/index.php and uncomment the echo statement in the code block below

Code:
    else {
        sendMpdCmd($sock, $_GET['cmd']);
        $result = readMpdResp($sock);
        closeMpdSock($sock);
        //echo $result;
    }

Then use the following URL

http://<host or ip_address>/command/?cmd=status
I didn't have an echo statement to uncomment, so I just added it, and it worked like a charm. I had originally tried "/command?cmd=status", but when it didn't return any results I tried just "status". In any case, it's working now. Thank you. I don't think I would have figured this out on my own (ever).