09-04-2018, 09:00 AM
(09-04-2018, 08:21 AM)tristanc Wrote:(09-03-2018, 11:42 PM)FizzyTea Wrote: Wouldn't it be easier to have button presses on the pi zero trigger commands on moode via ssh or the web api?
You wouldn't need to customize moode at all. I think.
Ah, that's an interesting idea. My first thought was that it would work fine for 'select playlist x' but might struggle with volume control - repeated ssh connections could be very laggy. Unless I altered the increments. Hmm, I'll need to think.
That's why I thought going down a few levels and passing only the GPIO levels would be fast and, to the Moode, seamless.
/var/www/vol.sh handles moode's volume nicely
Code:
vol.sh with no arguments will print the current volume level
vol.sh restore will set alsa/mpd volume based on current knob setting
vol.sh <level between 0-100>, mute (toggle), up <step> or dn <step>, -help
e.g.
/var/www/vol.sh up 2
/var/www/vol.sh mute
/var/www/vol.sh 55
Search the forum for lots of other nuggets like that. Also mpc is simple for play/pause, playlists etc.