1 .TH LOCTRKD.CONF 5 2022-05-27 "LOCTRKD GPS Tracker Service" "File Formats Manual"
5 loctrkd.conf \- Configuration file for LOCTRKD service
9 Services that consitute
11 suite read configuration data from
12 .B /etc/loctrkd\&.conf
16 format contains several service\&-specific sections and optional
17 device\&-specific sections.
20 \- defines interface points of the
25 \- defines websockets listen port and optionally the location of the
27 file to serve when a non-websocket request is received.
30 \- defines location of
32 database file where events are stored.
35 \- defines which backend will be used.
38 \- defines location of
40 database file with cell tower coordinates and how to download it.
43 \- defines the location of google API access token.
45 .BR [termconfig] " and sections titled after terminals' IMEIs
46 \- defines parameters to be sent to configure the terminals.
48 Section contain the following parameters:
52 (integer) \- TCP port to listen for terminal connections. Default
56 (string) \- Zeromq "pub" socket where events are published. Default
57 .BR ipc:///var/lib/loctrkd/collected .
60 (string) \- Zeromq "pull" socket for messages to be sent to the terminal.
62 .BR ipc:///var/lib/loctrkd/responses .
66 (integer) \- TCP port to listen for websocket connections. Default
70 (string) \- path to the
73 .IR non "-websocket requests. Default
74 .BR /var/lib/loctrkd/index.html .
78 (string) \- location of the database file where events are stored.
86 to select which location service to use. Googlemaps is a realtime service,
87 which means that you are sending location of your clients to Google.
88 Opencellid resolves location against a local database of cell towers, that
89 can be updated from time to time (e.g. once in a week or in a month).
90 This source does not contain WiFi access point locations, and therefore
91 may be less accurate. Default
96 (string) \- location of the database file with cell tower locations.
98 .BR /var/lib/opencellid/opencellid.sqlite .
101 (string) \- location of the file that contains opencellid authentication
103 .BR /var/lib/opencellid/opencellid.token .
106 (number or string) \- MCC of the region, or string "all" for the whole world.
107 Please set correct value for your country.
110 (string) \- if specified, download the file (that must be
112 from this URL instead of the official opencellid.org site.
119 .SS [termconfig] and sections with numeric name
121 .B statusIntervalMinutes
122 (integer) \- terminal will report status this often. Default
125 .B uploadIntervalSeconds
126 (integer) \- terminal will report location this often. Default
130 (integer) \- see protocol description document. Note that all integer values
131 can be specified in decimal, hexadecimal, octal, or binary base. Binary
132 is useful for this value in particular. Default
136 (list of 3 elements) \- this value must be specified as three continuation
137 lines, with time in HHMM (four digit) format.
140 (0 or 1) \- enable or not enable "do not disturb" intervals. Default
143 (list of 3 elements) \- three continuation lines with time intervals
144 in HHMMHHMM (start \- end) format.
147 (0 or 1) \- enable or not enable location upload time interval.
150 (HHMM) \- start of the interval to upload locations.
153 (HHMM) \- end of the interval to upload locations.
156 (list of three elements) \- three
158 as three continuation lines, with three phone numbers that the terminal
159 will use for various reports and calls.
163 section is used as a default fallback for terminals that have no section
164 in the configuration file named according to their IMEI.
168 Keeping configuration for the terminals in this file is suboptimal,
169 and is suitable only for very small installations with one or few
170 served tracker terminals.
174 The program is copyrighted by Eugene G. Crosser <crosser@average.org>
175 and freely distributable under the terms of MIT license.
179 The program is inspired by the project petGPS by Thomas Obadia