02-03-2019, 02:55 PM
The web api can be accessed via
Examples
Via SSH
Code:
http://moode/command?cmd=
Examples
Code:
http://moode/command?cmd=play
http://moode/command?cmd=next
http://moode/command?cmd=stop
http://moode/command?cmd=vol.sh up 1
http://moode/command?cmd=vol.sh dn 1
http://moode/command?cmd=vol.sh mute
http://moode/command?cmd=vol.sh 25
Via SSH
Code:
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 volume
--version print the program version
--help print this help text
pi@rp3:~ $