bbtinkerer / LircNodeJsWeb

Web interface to LIRC using Node.js. Create a universal remote and control your devices from the browser.
GNU General Public License v3.0
52 stars 18 forks source link

Integration of other console commands into remote control #1

Open kaertai opened 6 years ago

kaertai commented 6 years ago

I implemented your code to make a universal remote for my IR devices using a raspberry pi zero. It works great, thanks!

Now I am trying to integrate a Fire TV device into the remote. I have found a way to control the device using a console command in the following format: "adb shell input keyevent 19" where the number (19) corresponds to the desired command (up, in this case). I am trying to add a device so that instead of assigning "KEY_power" I could assign "FIRETV_19" and upon a button click, have it issue the adb console command instead of the IRSEND command.

I have some programming knowledge, but have never used javascript before, so any hints on how to accomplish this would be greatly appreciated. Thanks again for your code, it's awesome!

normanr commented 4 years ago

You can do this with irexec, no changes to this app should be required.