Thank you for your donation!


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


Building a wifi remote control
#1
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
Reply
#2
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 ?
Reply
#3
The Web API is described here
https://github.com/moode-player/moode/bl.../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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
(08-30-2022, 06:30 PM)Thanks a lot Tim Curtis Wrote: The Web API is described here
https://github.com/moode-player/moode/bl.../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
Reply


Forum Jump: