2017-09-26, 17:56
I think OSMC has a different implementation of RPI.GPIO that you can install, as I think RPi.tools is designed for LibreElec.
But if you do that then you will need to change the script to point to its new location (similar to post #26 above, but it will probably be in a different place again).
Aside from that you may need to ask on the OSMC forum (or ask Sam here) as OSMC seems to handle things differently from LE in terms of its user on which everything runs (LE runs things as root by default). The script may need to be run with root or sudo priv's to allow access to the GPIO, if the OSMC implementation of GPIO doesn't take care of that by default.
I'm not a great expert on OSMC as I've only installed it a couple of times for various testing - all of my active Pi's use LibreElec and the add-on was designed for its needs.
But if you do that then you will need to change the script to point to its new location (similar to post #26 above, but it will probably be in a different place again).
Aside from that you may need to ask on the OSMC forum (or ask Sam here) as OSMC seems to handle things differently from LE in terms of its user on which everything runs (LE runs things as root by default). The script may need to be run with root or sudo priv's to allow access to the GPIO, if the OSMC implementation of GPIO doesn't take care of that by default.
I'm not a great expert on OSMC as I've only installed it a couple of times for various testing - all of my active Pi's use LibreElec and the add-on was designed for its needs.