Moode Forum

Full Version: Python commands vs http commands
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know there are http commands like the following:

http://ip/command/?cmd=play
http://ip/command/?cmd=next
http://ip/command/?cmd=pause
http://ip/command/?cmd=stop
http://ip/command/?cmd=vol.sh up 1
http://ip/command/?cmd=vol.sh dn 1
http://ip/command/?cmd=vol.sh mute
http://ip/command/?cmd=vol.sh 25

Are there commands I can use in a python script, just need the basics like above for now
I figured out the volume part, i thought the vol command was a php file but it is an sh which can be run from within my script.
The rest I'm sure are mpd commands, just not sure of the format required.
OK I've figured that out as well, was trying mpd --help but that is wrong

I tried mpc --help which is also wrong.

Finally found something in an old post that does the trick: mpc help (no dashes)

So basically I answered my own question.