More customizable remote function
I am controlling my Raspberry TV wtth UR android app and with the exception of Spotify and Netflix's volume control, it works fine. But there is one thing what I just cannot do. I cannot turn the bloody TV on or of, nor can I controll the volume of the TV or the Raspberry (well I can do the Raspberry with the mouse trackpad, but it is not the same as a specialized button for this).
I can outfit my Rpi with an IR LED which can do just that. But that started me thinking of the UR app. I know I can directly type in terminal commands like ./tvON.sh or ./tvOFF.sh but what I want is a custom remote in which a user can add buttons and link them to sending a certain system command.
I don't know if this already exists or not but if not, it would be a cool addon. You would be able to launch a shellscript or program of a raspberry with the push on a button.
And that bring me to my 2nd brain fart. I want to do the same with my voice. So my phone would become a sort of wireless microphone for the Pi. It would be awesome to speak 'TV on' in the UR app and the Rpi turns the Tv on.
IR codes are fairly complex things, and whereas the RC6 and then the "Pronto" format was standard a few years ago there have been a few variations since.
Originally UR recommended the Keene "IR Anywhere" hardware, and that is what I am still using. The Keene will use Pronto codes sent over IP from the UR server. I have had to keep an old UR app version for learning the pronto codes (V 3.0.23) as changes were made to UR "IR learn" in later versions of the app so that commands could be sent directly to the Phone or Tablet built in "Blaster" in a completely different format.
The UR server and the app can therefore both send codes for IR transmission, but in different formats, and you would need different versions of the app for each format (for when you need to "learn" codes). I don't know of a translator between these two formats, but it could be done using the two versions of the app and "learning" on one whilst transmitting on the other.
The app has built in functions that let you choose to which sender the data should go (local or server)........ but I doubt that either have functions for sending directly to a UART on the Rpi.
However you might be able to send the raw strings as a script.
Help here......... https://github.com/unifiedremote/Docs ..... but not a lot about IR.
Google voice is integrated in the Android app in some manner (see the app preferences) but I have never tried to use it and so I don't know its capabilities.