Thank you for your donation!


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


gpiozero to control a remote Moode?
#7
(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.
Reply


Messages In This Thread
gpiozero to control a remote Moode? - by tristanc - 09-03-2018, 06:26 PM
RE: gpiozero to control a remote Moode? - by FizzyTea - 09-04-2018, 09:00 AM

Forum Jump: