]> git.vomp.tv Git - vompclient.git/blob - config.json.sample
Implement unix sockets in Input classes
[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 */
12
13 {
14   "main":
15   {
16     "daemonize": true
17   },
18
19   "log":
20   {
21     "enabled": false,
22     "filename": "stdout",
23     "level": "debug"
24   },
25
26   "server":
27   {
28     // "server" has no defaults
29     // Normally vompclient will use IPv4 UDP broadcasts and IPv6 multicast to find servers
30     // Entering an address and optionally a port will disable discovery
31
32     "address": "vdrserver.example.com",
33     "port": 3024
34   }
35
36   "input":
37   {
38     "mod_cec_enabled": true,
39     "mod_udp_enabled": true,
40     "mod_lirc_enabled": true
41   },
42
43   "input_lirc":
44   {
45     // input_lirc has no defaults
46
47     // Use these two options:
48
49         "lirc_ip": "192.0.2.0",  /* Numeric IPv4 or IPv6 */
50         "lirc_port": 8765,       /* except this, this has a default */
51
52     // Or this one:
53
54         "lirc_socket": "/run/lirc/lircd",
55
56     //
57
58     // List all the Lirc remote names to listen to here:
59
60     "remotes": [ "lirc-remote-name-1", "lirc-remote-name-2" ],
61
62     // Now create a section here for each Lirc remote. Map each Lirc button to vomp keys.
63
64     "lirc-remote-name-1":
65     {
66       /* List all keys to be used by Vomp
67       On the left - the Lirc key name. On the right - the Vomp key name. See input.h (for now)  */
68
69       "KEY_POWER": "POWER",
70       "KEY_MUTE": "MUTE"
71       // etc.
72     },
73
74     "lirc-remote-name-2":
75     {
76     }
77   }
78 }