OpenELEC Testbuilds for RaspberryPi Part 2
(2014-02-16, 23:25)tfouto Wrote: to me, gpio didn't work either with latest gotham nightlies. Only worked after installed this addon:

Thanks for your hard work...

I was using the add-on and it worked well for a while, but at some point it stopped working (and actually made matters worse) so I disabled it.

Looking at the python script it appears to do something similar to what I have in my script, but not quite the same:

OpenELEC:~ # cat /storage/.config/
modprobe lirc_rpi
eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP
/usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput --output=/var/run/lirc/lircd --pidfile=/var/run/lirc/ /storage/.config/lircd.conf

OpenELEC:~ # cat /storage/.xbmc/addons/script.service.lirc_rpi_launcher/
#!/usr/bin/env python
import os
import xbmc
import xbmcaddon

__addon__       = xbmcaddon.Addon(id='script.service.lirc_rpi_launcher')
__addonname__   = __addon__.getAddonInfo('name')
__icon__        = __addon__.getAddonInfo('icon')

title = "Lirc_RPi Launcher"
text1 = "Initialising"
text2 = "Initialised"
time = 5000  # ms

cmd_mod_rpi = "modprobe lirc_rpi"

cmd_kill_lircd = "killall lircd; sleep 4; killall lircd;" # give modprobe time to finish

cmd_lircd = "/usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput --output=/var/run/lirc/lircd --pidfile=/var/run/lirc/ /storage/.config/lircd.conf"

xbmc.executebuiltin('Notification(%s, %s, %d, %s)'%(title, text1, time, __icon__))


xbmc.executebuiltin('Notification(%s, %s, %d, %s)'%(title, text2, time, __icon__))
OpenELEC:~ #

Messages In This Thread
RE: OpenELEC Testbuilds for RaspberryPi Part 2 - by RichG - 2014-02-16, 23:44
AW: RE: - by DieterLumpen - 2013-07-29, 20:50
include guires switch? - by hpbaxxter - 2013-08-01, 21:46
RE: dual audio?? - by pootler - 2013-08-03, 17:13
Help, watch 3D Film on Non 3D TV - by unix72 - 2013-08-09, 12:39
Remote Controllers - by tfft - 2013-08-14, 09:11
rbej repeatable crash - by RichG - 2013-08-19, 12:43
New Tester - by theneverstill - 2013-10-03, 17:16