-
Notifications
You must be signed in to change notification settings - Fork 2
/
hyperion-config-switch.conf
47 lines (38 loc) · 1.67 KB
/
hyperion-config-switch.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/bash
# Script to switch configuration files and to turn
# Hyperion LEDs on and off dependent on Network AVR
# (such as Pioneer 1X2X series, Onkyo, and Denon)
# Author: Dominic Wrapson, aka Hwulex
# License: The MIT License (MIT)
# http://choosealicense.com/licenses/mit/
# Transport method. Platform dependant but most systems will have one available, choose from the following
# script_transport="nc"
# script_transport="netcat"
# script_transport="ncat"
# script_transport="telnet"
script_transport="nc"
#OpenElec/RasPlex
#path_remote="/storage/hyperion/bin/hyperion-remote.sh"
#path_config="/storage/hyperion/config/"
#path_reload="killall hyperiond; /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json </dev/null >/dev/null 2>&1 &"
# Raspbian
#path_remote="hyperion-remote"
#path_config="/opt/hyperion/config/"
#path_reload="initctl restart hyperion"
# or
#path_reload="/etc/init.d/hyperion restart"
# MY CONFIG
path_remote="/storage/hyperion/bin/hyperion-remote.sh"
# path_config MUST END IN A TRAILING SLASH! As I'm too lazy to detect and do anything about it if not
path_config="/storage/hyperion/config/"
path_reload="killall hyperiond; /storage/hyperion/bin/hyperiond.sh ${path_config}hyperion.config.json </dev/null >/dev/null 2>&1 &"
# Visual effect for power-off, taken from list of available Hyperion effects
# Leave blank for none
off_effect="Knight rider"
off_duration=2500
# Temp file, so we can save previous state of AVR
# If exists, should contain key=value pairs
# POWER=1 (or 0) which is actually inverted to what you might expect
# INPUT=19FN (etc)
tmp="/tmp/hyperion-config-switch.tmp"
log="/var/log/hyperion-config-switch.log"