-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.json
61 lines (55 loc) · 1.61 KB
/
config.example.json
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"comment": "This example configuration is prepared for the Abacus Prepino pre-amp",
"comment": "and the use of \"ir-ctl\" from v4l-utils (instead of LIRC).",
"comment": "",
"comment": "All comment lines can be removed safely.",
"player_name": "<LMS player name>",
"server": {
"comment": "The host can be server name or an IP address.",
"comment": "The port should be the CLI port of the LMS server (9090 by default).",
"comment": "The restart delay is the number of seconds before a reconnect attempt",
"comment": "after the connection is broken.",
"host": "<LMS host name>",
"port": 9090,
"restart_delay": 30
},
"default_script": "/usr/bin/ir-ctl -S",
"comment": "The default script can be set to an empty string, preventing a default.",
"events": {
"power:on": [
{
"param": "rc5:0x1028",
"comment": "KEY_POWER_ON",
"comment": "Optional keys:",
"comment": " - delay: delay before executing the command (in milliseconds)",
"comment": " - script: use a different script name for this command",
"comment": " - param: a parameter for the (default) script",
"comment": " - include_value: add data parsed from the server response to the script parameter",
},
{
"delay": 1000,
"comment": "Delay in milliseconds",
"param": "rc5:0x1001",
"comment": "KEY_CHANNEL_1"
}
],
"power:off": [
{
"param": "rc5:0x1029",
"comment": "KEY_POWER_OFF"
}
],
"volume:raise": [
{
"param": "rc5:0x1010",
"comment": "KEY_VOLUME_RAISE"
}
],
"volume:lower": [
{
"param": "rc5:0x1011",
"comment": "KEY_VOLUME_LOWER"
}
]
},
}