Thank you for your donation!


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


Solved: Python commands vs http commands
#1
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
Reply
#2
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.
Reply
#3
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.
Reply


Forum Jump: