Thank you for your donation!


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


Problem: MPD status
#1
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/protoco...d-s-status). Should this work?
Reply
#2
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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(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).
Reply


Forum Jump: