]> git.vomp.tv Git - vompclient.git/blob - config.json.sample
Fix VRecording showing graphic at bottom left when it shouldn't
[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_udp":
52   {
53     "port": 2000
54   }
55
56   "input_lirc":
57   {
58     // input_lirc has no defaults
59
60     // Use these two options:
61
62         "lirc_ip": "192.0.2.0",  /* Numeric IPv4 or IPv6 */
63         "lirc_port": 8765,       /* except this, this has a default */
64
65     // Or this one:
66
67         "lirc_socket": "/run/lirc/lircd",
68
69     //
70
71     // List all the Lirc remote names to listen to here:
72
73     "remotes": [ "lirc-remote-name-1", "lirc-remote-name-2" ],
74
75     // Now create a section here for each Lirc remote. Map each Lirc button to vomp keys.
76
77     "lirc-remote-name-1":
78     {
79       /* List all keys to be used by Vomp
80       On the left - the Lirc key name. On the right - the Vomp key name. See input.h (for now)  */
81
82       "KEY_POWER": "POWER",
83       "KEY_MUTE": "MUTE"
84       // etc.
85     },
86
87     "lirc-remote-name-2":
88     {
89     }
90   }
91 }