05-18-2018, 12:35 PM
Very easy-to-follow step by step guide.
I used it myself because the guide from justboom could not work on moode 4.
As for the wiring: with the domed face of the IR receiver facing towards you: left pin of the receiver goes to the GPIO 27, middle pin of the receiver goes to ground, and right pin is for the supply voltage (3,3 or 5 volts).
To launch a playlist on remote button press: create a playlist ("JAZZ" for example), and edit the config entry in the .lircrc file so that you have:
KEY_PL1 is whatever name you gave to the button.
A combination of keys can be used to perform an action. For example to avoid an accidental power off, a combination of 3 button press can be used to power off:
In this case you have to press the menu button, the volume up button and the menu button again in order to power off.
To ensure that the volume set by the remote is reflected on the moode audio interface, the volume entry in the .lircrc file should be like:
Remy
I used it myself because the guide from justboom could not work on moode 4.
As for the wiring: with the domed face of the IR receiver facing towards you: left pin of the receiver goes to the GPIO 27, middle pin of the receiver goes to ground, and right pin is for the supply voltage (3,3 or 5 volts).
To launch a playlist on remote button press: create a playlist ("JAZZ" for example), and edit the config entry in the .lircrc file so that you have:
Code:
begin
prog = irexec
button = KEY_PL1
config = mpc clear; mpc load JAZZ; mpc play
end
A combination of keys can be used to perform an action. For example to avoid an accidental power off, a combination of 3 button press can be used to power off:
Code:
begin
prog = irexec
button = KEY_MENU
button = KEY_UP
button = KEY_MENU
config = mpc stop; sudo /var/www/command/restart.sh poweroff
end
To ensure that the volume set by the remote is reflected on the moode audio interface, the volume entry in the .lircrc file should be like:
Code:
begin
prog = irexec
button = Volume-Up
config = /var/www/vol.sh up 2
end
begin
prog = irexec
button = Volume-Down
config = /var/www/vol.sh dn 2
end
Remy