1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

OpenELEC Addon just control!

Introduction
Note: This is not an official addon, we can´t provide support!
This addon is made to control the hyperion ambilight over Network (JSON-RPC) with browser or apps

Installation

  • Klick on the "Download ZIP" button (see link below!) of the GitHub website (top right)
  • Copy the folder "script.hyperioncontrol" to "/storage/.kodi/addons/" on your Raspberry Pi or create a zip file and install the addon from the zip file
  • copy the folder "scripts" to "userdata/hyperion/scripts/" folder, it contains scripts for hyperion

Call command with JSON-RPC:
Code:
{"jsonrpc":"2.0","id":1,"method":"Addons.ExecuteAddon" ,"params":{"addonid":"script.hyperioncontrol","params":{"cmd":"power_toggle"}}}

For example:
Code:
Power_toggle calls the script power_toggle.sh
effect_knight_rider calls effect_knight_rider.sh
and so on
there is only one exception, if you call color_FF0000 it will light up the red LEDs so you can choose all available colors.
Effect_off will turn all effects off.

If you want to use a relay to switch the ambilight power supply please add these lines to autostart.sh:
Code:
echo "X" > /sys/class/gpio/export

echo "out" > /sys/class/gpio/gpioX/direction

echo "1" > /sys/class/gpio/gpioX/value
[CODE]

X is the Number of the GPIO Port used to control the relay and [COLOR=#ff0000]should be replaced[/COLOR].
In th files power_toggle.sh and power_off.sh the number [COLOR=#ff0000]must be changed too.[/COLOR]
GitHub location: https://github.com/emc02/hyp-rpi-oelec-jsonrpc-remote-addon

HINT: If you want to ask for a feature or you have an issue, follow the GitHub link above and open an issue!

This page has been seen 5,073 times.