Moode Forum
Building a wifi remote control - 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: Building a wifi remote control (/showthread.php?tid=5049)



Building a wifi remote control - From Hell - 08-30-2022

Hi every one,

I'm building an esp8266 remote control to pilot my moode player.
It's an easy projet, just check buttons and rotaty encoder to send orders trougn Http commands .

i'v found the classic command like this one :

       http://moode/command/?cmd=play

i'v found PLAY, STOP, PAUSE/RESUME, NEXT and VOL n .
And also get Json of playing song.

Is there any other commands ? like PREV and maybe a power managment acces ? (http://moode/command/?cmd=shutdown) 

Thanks in advance for your answers

Greetings from Belgium
Fabian


RE: Building a wifi remote control - From Hell - 08-30-2022

ok, i just found on the MPC man page a little more commands

https://www.mankier.com/1/mpc#Examples_(TL;DR)

But when i want to try with 'prev"
http://moode/command/?cmd=prev

i'v got this message:
readMpdResp(): Error: response $str[0]=(ACK [5@0] {} unknown command "prev")

Any idea ?

PS: how to insert link in this board ?


RE: Building a wifi remote control - Tim Curtis - 08-30-2022

The Web API is described here
https://github.com/moode-player/moode/blob/develop/www/setup.txt

The API actually accepts native MPD commands most of which are also MPC commands. Some exceptions are "prev" which icorresponds to the MPD command "previous"

Try
Code:
http://moode/command/?cmd=previous

MPD commands are here
https://mpd.readthedocs.io/en/latest/protocol.html


RE: Building a wifi remote control - From Hell - 08-31-2022

(08-30-2022, 06:30 PM)Thanks a lot Tim Curtis Wrote: The Web API is described here
https://github.com/moode-player/moode/blob/develop/www/setup.txt

The API actually accepts native MPD commands most of which are also MPC commands. Some exceptions are "prev" which icorresponds to the MPD command "previous"

Try
Code:
http://moode/command/?cmd=previous

MPD commands are here
https://mpd.readthedocs.io/en/latest/protocol.html