In principle pCP has enabled a default remote key mapping for most functions on Squeezelite (pause/play/volume,etc.) so that should work out of the box, but if you want to use additional keys you also need to upload a. You can review the various buttons on the remote and figure out what you want to use. Under device settings, choose IR GPIO: 18, and IR Device: lirc0 then click. ![]() Go to the pCP web interface and click on the tab.Since you’re not doing this in the pCP web interface you need to backup your changes manually. Make the file executable: sudo chmod +x startup.shĪt this point you’re done installing scripts.Sleep 2 echo "out" > /sys/class/gpio/gpio14/direction Sleep 1 power = $(cat /sys/class/gpio/gpio14/value ) if then # going into a loop until shutdown while true do #!/bin/sh #(optional) start irexec - only if you use the ir remote and want to use a custom lircrc file #/usr/local/bin/irexec /home/tc/.lircrc & # this is the GPIO pin receiving the shut-down signal echo "14" > /sys/class/gpio/exportĮcho "in" > /sys/class/gpio/gpio14/direction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |