2016-05-08, 12:00
Hello kodi people, my first post & new to kodi
I hope i am in the right section, if not, well, admin, please help
I need to control kodi from rpi gpio buttons.
So, I have raspberry pi b, i have arch running, and on top of it i have kodi.
I have adafruit IR remote controller and IR receiver (so gpio is used).
No keyboard or mouse in this rig.
System is set up to boot, auto login, and auto start kodi. This setup works sweetly.
As it happens, i misplace RC a lot, and in future a battery will run out,
so I figured I can make a little solderable plate with buttons (momentary switches),
to control kodi.
With reboot and shutdown button I need 13 of them altogether.
Since rpi has 8 pins, and one is in use for IR receiver, I use mcp23017 IO expander, with wireingpi.
I also found this thread, which makes script runs at certain points, I need mine to run at kodi's start:
http://forum.kodi.tv/showthread.php?tid=151011
In kodi i can see under the running scripts that linked script is listed as running,
but nothing happens when I push my buttons (top command is not listing my script).
Rpi gpio buttons need root privileges, so I made my user sudoer and no need for password. No go.
I also started kodi as user (sudo kodi), but still no go.
So first things first, how to run a root script from kodi at start,
and second, I could not find kodi's python command for commands that i issue from my remote,
like play/pause, enter, left, right, back, setup,...
Any help is most welcome.
Thank you
I hope i am in the right section, if not, well, admin, please help
I need to control kodi from rpi gpio buttons.
So, I have raspberry pi b, i have arch running, and on top of it i have kodi.
I have adafruit IR remote controller and IR receiver (so gpio is used).
No keyboard or mouse in this rig.
System is set up to boot, auto login, and auto start kodi. This setup works sweetly.
As it happens, i misplace RC a lot, and in future a battery will run out,
so I figured I can make a little solderable plate with buttons (momentary switches),
to control kodi.
With reboot and shutdown button I need 13 of them altogether.
Since rpi has 8 pins, and one is in use for IR receiver, I use mcp23017 IO expander, with wireingpi.
I also found this thread, which makes script runs at certain points, I need mine to run at kodi's start:
http://forum.kodi.tv/showthread.php?tid=151011
In kodi i can see under the running scripts that linked script is listed as running,
but nothing happens when I push my buttons (top command is not listing my script).
Rpi gpio buttons need root privileges, so I made my user sudoer and no need for password. No go.
I also started kodi as user (sudo kodi), but still no go.
So first things first, how to run a root script from kodi at start,
and second, I could not find kodi's python command for commands that i issue from my remote,
like play/pause, enter, left, right, back, setup,...
Any help is most welcome.
Thank you