]> git.vomp.tv Git - vompclient.git/blob - config.json.sample
Move subtitles default to Config
[vompclient.git] / config.json.sample
1 /* Vomp local config file
2
3    Using a local config.json file is optional.
4    This file shows all config options and their defaults,
5    where applicable.
6
7    To use a local config, create config.json and copy in just the
8    settings you want to change. Place the file in the current working
9    directory for vompclient.
10
11    Command line options override config.json.
12 */
13
14 {
15   "main":
16   {
17     "daemonize": true
18   },
19
20   "log":
21   {
22     "enabled": false,
23     "filename": "stdout",
24     "level": "debug"
25   },
26
27   "server":
28   {
29     // "server" has no defaults
30     // Normally vompclient will use IPv4 UDP broadcasts and IPv6 multicast to find servers
31     // Entering an address and optionally a port will disable discovery
32
33     "address": "vdrserver.example.com",
34     "port": 3024
35   },
36
37   "server-discovery":
38   {
39     // If exactly two servers are found by auto server location and they have the same
40     // name and port but different IP versions, prefer which?
41     "prefer-ipv": 6
42   },
43
44   "input":
45   {
46     "mod_cec_enabled": true,
47     "mod_udp_enabled": true,
48     "mod_lirc_enabled": true
49   },
50
51   "input_lirc":
52   {
53     // input_lirc has no defaults
54
55     // Use these two options:
56
57         "lirc_ip": "192.0.2.0",  /* Numeric IPv4 or IPv6 */
58         "lirc_port": 8765,       /* except this, this has a default */
59
60     // Or this one:
61
62         "lirc_socket": "/run/lirc/lircd",
63
64     //
65
66     // List all the Lirc remote names to listen to here:
67
68     "remotes": [ "lirc-remote-name-1", "lirc-remote-name-2" ],
69
70     // Now create a section here for each Lirc remote. Map each Lirc button to vomp keys.
71
72     "lirc-remote-name-1":
73     {
74       /* List all keys to be used by Vomp
75       On the left - the Lirc key name. On the right - the Vomp key name. See input.h (for now)  */
76
77       "KEY_POWER": "POWER",
78       "KEY_MUTE": "MUTE"
79       // etc.
80     },
81
82     "lirc-remote-name-2":
83     {
84     }
85   }
86 }