Python xbmc.executebuiltin('Action(Right)')
#1
Hello,

I would like hardware-keys on my raspi.
Therefore I write a Python-Sript.
My problem is, that indeed this script is working:
Quote:while True:
if GPIO.input(25): # if port 25 == 1

xbmc.executebuiltin('Action(VolumeUp)')

BUT this isn't working:
Quote:while True:
if GPIO.input(25): # if port 25 == 1

xbmc.executebuiltin('Action(Right)')

Can anyone help.
Reply
#2
What are you trying to use it for?

If you use JSON RPC there's an Input.Right method but, if I remember correctly, this won't fast forward if you're watching a video.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#3
I have got a raspi, with a lcd display without touch.
Now I would install hardware controll keys about raspi.gpio's.

I dont control about intanet, because i will control local.

For this, I write a python script to set every key a comand.
In this I would integrate 4 cursor key (right, left, up, down) to navigate trough all menues.
Reply
#4
Have a look at this thread: http://forum.kodi.tv/showthread.php?tid=154211
Also worth noting this: http://forum.kodi.tv/showthread.php?tid=181446

JSON can be used to control locally too.

You probably need a fifth button for "select" too...
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply

Logout Mark Read Team Forum Stats Members Help
Python xbmc.executebuiltin('Action(Right)')0