I am looking to control my external amp via IR and was able to get all the hardware and software side of things worked out but when it comes to coding a plugin I am left in the cold. Is there anyone out there that would be willing to build a plugin that would help accomplish the task below?
-hijack volume buttons to control LIRC
-create a plugin UI with options to enter “remote name” and “Button Name” that corresponds with Vol+ /Vol- in Volumio
RemoteName [emptyfield to contain RemoteName]
Power [emptyfield to contain ButtonName]
Volume+ [emptyfield to contain ButtonName]
Volume- [emptyfield to contain ButtonName]
-have volume up and down execute the commands below using the variable entered in the fields above
-add amp power button to the UI in some location and have it execute the command below.
Here are the commands I can use to send IR
syntax: irsend SEND_ONCE “RemoteName” “ButtonName”
irsend SEND_ONCE onkyo KEY_POWER
irsend SEND_ONCE onkyo KEY_VOLUMEUP
irsend SEND_ONCE onkyo KEY_VOLUMEDOWN
Something like this should get us started then we can work on tweaks for the other LIRC options. We may be able to implement the continuous start-stop feature. We can also look to add the LIRC config like the IR receiver plugin does.
irsend SEND_START onkyo KEY_VOLUMEUP
irsend SEND_STOP onkyo KEY_VOLUMEUP
irsend SEND_START onkyo KEY_VOLUMEDOWN
irsend SEND_STOP onkyo KEY_VOLUMEDOWN