01-06-2020, 01:31 PM
MPD commands can be sent via
Volume commands via
Code:
http://moode/command?cmd=
Example:
http://moode/command?cmd=stop
Volume commands via
Code:
http://moode/command?cmd=vol.sh
pi@rp3:~ $ /var/www/vol.sh --help
Usage: vol.sh [OPTION] [VOLUME]
Change the volume and update the knob.
With no OPTION or VOLUME, print the current volume.
With just VOLUME, set current volume to VOLUME.
-up VOLUME value between 1 and 100
-dn VOLUME value between 1 and 100
-mute mute or unmute the volume
-restore set volume to current knob level
--version print the program version
--help print this help text
Examples:
http://moode/command?cmd=vol.sh -up 1
http://moode/command?cmd=vol.sh -dn 1
http://moode/command?cmd=vol.sh 15
http://moode/command?cmd=vol.sh -mute