]> git.vomp.tv Git - vompclient.git/blob - config.json.sample
Some comments and remove an unneeded include
[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     "start_to_live_tv": 1 // Channel number
19   },
20
21   "log":
22   {
23     "enabled": false,
24     "filename": "stdout",
25     "level": "debug"
26   },
27
28   "server":
29   {
30     // "server" has no defaults
31     // Normally vompclient will use IPv4 UDP broadcasts and IPv6 multicast to find servers
32     // Entering an address and optionally a port will disable discovery
33
34     "address": "vdrserver.example.com",
35     "port": 3024
36   },
37
38   "server-discovery":
39   {
40     // If exactly two servers are found by auto server location and they have the same
41     // name and port but different IP versions, prefer which?
42     "prefer-ipv": 6
43   },
44
45   "input":
46   {
47     "mod_cec_enabled": true,
48     "mod_udp_enabled": true,
49     "mod_lirc_enabled": true
50   },
51
52   "input_udp":
53   {
54     "port": 2000
55   }
56
57   "input_lirc":
58   {
59     // input_lirc has no defaults
60
61     // Use these two options:
62
63         "lirc_ip": "192.0.2.0",  /* Numeric IPv4 or IPv6 */
64         "lirc_port": 8765,       /* except this, this has a default */
65
66     // Or this one:
67
68         "lirc_socket": "/run/lirc/lircd",
69
70     //
71
72     // List all the Lirc remote names to listen to here:
73
74     "remotes": [ "lirc-remote-name-1", "lirc-remote-name-2" ],
75
76     // Now create a section here for each Lirc remote. Map each Lirc button to vomp keys.
77
78     "lirc-remote-name-1":
79     {
80       /* List all keys to be used by Vomp
81       On the left - the Lirc key name. On the right - the Vomp key name. See input.h (for now)  */
82
83       "KEY_POWER": "POWER",
84       "KEY_MUTE": "MUTE"
85       // etc.
86     },
87
88     "lirc-remote-name-2":
89     {
90     }
91   }
92 }