rern / OSMC_GPIO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSMC_GPIO

screen0

Features

  • Power on off audio equipments in sequence
  • delay setting for each equipment(relay)
  • Notification for on off
  • Idle timer power off by polling 'play' status every minute with last minute warning
  • Auto power off on reboot / shutdown

Install

wget -qN --show-progress https://github.com/rern/OSMC/raw/master/OSMC_GPIO/install.sh; chmod +x install.sh; ./install.sh

Settings
Edit: /home/osmc/gpio.json

Control

  • Keyboard / Remote control: add the following to on / off buttons in keyboard.xml / remote.xml
<key1>RunScript(/home/osmc/gpioon.py)</key1>
<key2>RunScript(/home/osmc/gpiooff.py)</key2>

remote

  • Menu: add the following to DialogButtonMenu.xml in skin directory
<!-- within <content> ... </content> -->
	<item>
		<label>GPIO On</label>
		<onclick>RunScript(/home/osmc/gpioon.py)</onclick>
		<visible>System.CanReboot</visible>
	</item>
	<item>
		<label>GPIO Off</label>
		<onclick>RunScript(/home/osmc/gpiooff.py)</onclick>
		<visible>System.CanReboot</visible>
	</item>

About


Languages

Language:Shell 50.4%Language:Python 49.6%