Hi, I'm looking for a bit of advise regarding a One 4 All streamer remote control and GPIO IR receiver, I followed the wiki on infared remotes and configured it the hard way and it is working as expected, excluding the occasional double button press when pressing up or down.
Code
LibreELEC:~/.config # ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event1) with:
Name: gpio_ir_recv
Driver: gpio_ir_recv, table: rc-rc6-mce
lirc device: /dev/lirc0
Supported protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon rc-mm
Enabled protocols: lirc nec
bus: 25, vendor/product: 0001:0001, version: 0x0100
Repeat delay = 500 ms, repeat period = 125 ms
Display More
Keymap file
Code
LibreELEC:~/.config # cat rc_keymaps/streamer_remote
# table streamer, type: nec
0xeac20c KEY_EPG
0xeac266 KEY_BACK
0xeac219 KEY_UP
0xeac299 KEY_UP
0xeac233 KEY_DOWN
0xeac2b3 KEY_DOWN
0xeac21e KEY_LEFT
0xeac22d KEY_RIGHT
0xeac22a KEY_OK
0xeac278 KEY_HOME
0xeac261 KEY_CONTEXT_MENU
0xeac234 KEY_REWIND
0xeac24c KEY_PLAYPAUSE
0xeac255 KEY_FASTFORWARD
0xeac204 KEY_PAGEUP
0xeac217 KEY_PAGEDOWN
0xeac24b KEY_1
0xeac210 KEY_2
0xeac24d KEY_3
0xeac242 KEY_4
Display More
rc_maps.cfg
Ideally I would like to remap a few of the buttons to run a few scripts but no matter what i have tried it doesn't seem to work, I tried to add a keymap.xml to kodi userdata folder but it doesn't seem to have any effect
Code
LibreELEC:~/.config # cat ../.kodi/userdata/keymaps/keymap.xml
<keymap>
<global>
<remote>
<epg>System.Exec("/storage/cycle-source.sh")</epg>
</remote>
</global>
</keymap>
Am i doing something wrong or would it be better and easier to revert to the LIRC method?
Also can a bash script be ran or would a python be more appropriate?
any help or assistance would be appreciated