[Release] GPIO Monitor Service KODI Add-on


Here is handy add-on I created to monitor a GPIO pin on the Raspberry Pi.
Once the pin is pulled high or low, a configurable KODI function is run.

How to Install

First follow THIS post to install my KODI Add-on Repository.

Now navigate to "Main Menu -> Add-ons -> My Add-ons"
Select ".." then select "Install from repository"
Select "MattHuisman.nz Repository".
Select "Services" then "GPIO Monitor"

Now select "Install" and the add-on will download and install.


Follow the prompts to install the required RPi-GPIO Library.

Enjoy!


Configuration

The pin, edge and function can all be set in the add-on settings.


The Pin can be anything from 1 to 40 (default is 0 = Disabled)
It uses the board pin numbering (Gray numbers below)


The edge can be Falling (default) or Rising.

Falling will trigger when the pin goes from High to Low.
Rising will trigger when the pin goes from Low to High.

Note: Some pins have built-in pull up resistors so it's best to use Falling with these pins.

The Function can be any of the KODI build-in functions:
http://kodi.wiki/view/list_of_built-in_functions

The default is "ShutDown"
Other handy functions are "Reboot" & "RunAddon(id)".

No Notifications simply hides the pop-up message when the function is run.