![]() |
[How to do instruction] Two interesting features with a remote control - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How to do instruction] Two interesting features with a remote control (/showthread.php?tid=1806) |
Two interesting features with a remote control - didier31 - 10-12-2019 Hi all, If you use a remote control (with lircd and irexec), here are two interesting features. (I don't explain here the installation and configuration of lirc and irexec) - the 1st: Screen OFF / screen ON with a unique key (interesting if you use a direct screen or the HDMI output) - the 2nd: Toggle between a Radios Playlist and a Music Playlist with a unique key (when you listen to your music, you can switch to your favorite radio and return to the exact position of your music) -1- Screen OFF / screen ON with a unique key ----------------------------------------------------------- The screen status (Off) is saved in /tmp directory Extract of '/etc/lirc/irexec.lircrc' (for me the key is 'INFO'): Code: begin If necessary create the directory '/home/pi/my_shells (with correct permissions 755), and copy the code below (with correct permissions 755) Content of shell script '/home/pi/my_shells/screenOnOff.sh' Code: #!/bin/sh -2- Toggle between a Radios Playlist and a Music Playlist with a unique key ---------------------------------------------------------------------------------------------------- First of all, save a playlist with your favorite radios (!! playlist name must be: 'My Radios') Associate a key with the shell script: toggle_radios_vs_musics_playlist.sh Extract of '/etc/lirc/irexec.lircrc' (for me the key is 'TUNER_BAND'): Code: begin If necessary create the directory '/home/pi/my_shells (with correct permissions 755), and the directory '/home/pi/my_shells/tmp (with correct permissions 777). Copy the code below (with correct permissions 755) Content of shell script '/home/pi/my_shells/toggle_radios_vs_musics_playlist.sh' : Code: #!/bin/sh Didier |