45 Commits

Author SHA1 Message Date
Jan-Piet Mens
823f375321 need to check file existence 2025-06-03 12:41:26 +02:00
Jan-Piet Mens
daaf71f4e4 just try to open defaults file instead of using access(2) due to suid 2025-06-03 12:30:06 +02:00
Sergey Trofimov
7e6472a02a use storage dir from env even when the defaults file is missing 2025-04-13 13:14:28 +02:00
Jan-Piet Mens
c97bfab159 bump copyright dates 2025-01-02 12:13:04 +01:00
Jan-Piet Mens
229ad96ba6 remove support for Greenwich devices
closes #484
2024-07-30 17:08:21 +02:00
Jan-Piet Mens
63e0132b05 add version to variables 2024-02-23 12:50:23 +01:00
Jan-Piet Mens
2fd85efff3 NEW: option -J prints variables in JSON format, for scripting 2024-02-18 13:06:25 +01:00
Jan-Piet Mens
e213a0b8b1 bump (C) 2024-02-01 18:04:02 +01:00
Jan-Piet Mens
37cae69f5f update copyright year 2023-01-02 14:05:26 +01:00
Jan-Piet Mens
2198b5f279 read OTR_TOPICS from environment (overrides config); can be overriden by argv 2022-09-07 14:14:01 +02:00
Jan-Piet Mens
eb796d619c UPD: ocat -v shows compiled-in values, ot-recorder -V runtime ones
closes #397
2022-08-15 15:10:46 +02:00
Jan-Piet Mens
9a1d03c648 replace all SHARE by TOUR
the word 'share' is difficult and ambiguos (why are we involved in
  investments?) and we're nipping this in the bud by renaming everything
  now in order to avoid the region/waypoint linguistic issues of the
  past.
2022-08-06 18:46:11 +02:00
Jan-Piet Mens
a401ae08a3 [NEW]: option --variables prints list of actual settings 2022-08-05 13:30:15 +02:00
Jan-Piet Mens
744e62fc43 Read settings from environment even if defaults file can't be read
closes #394
2022-08-05 09:55:54 +02:00
Jan-Piet Mens
61f5ec20e8 refactor environment variable handling for all settings
closes #380
	closes https://github.com/owntracks/docker-recorder/issues/49
2022-08-04 12:40:46 +02:00
Jan-Piet Mens
18efad3e9c experimental SHARES 2022-08-04 11:25:23 +02:00
Jan-Piet Mens
5b0cc477cb support OTR_CAPATH in defaults
closes #336
2020-02-12 08:06:49 +01:00
Jan-Piet Mens
7864b6e042 bump copyright date 2019-12-31 11:51:59 +01:00
Jan-Piet Mens
af82d5f026 cast to long to silence 32bit build on FreeBSD
closes #314
2019-08-01 20:50:21 +02:00
Jan-Piet Mens
390f761c5e OTR_CAFILE, KEYFILE, CERTFILE are now also read from config file
closes #198
2017-06-09 19:46:34 +02:00
Jan-Piet Mens
a13b55c18a protect cf return value
addresses #150
2016-10-03 14:58:24 +02:00
Jan-Piet Mens
6638a3b20b new configuration variable OTR_BROWSERAPIKEY
addresses #146
2016-09-12 19:15:36 +02:00
Jan-Piet Mens
395b333e35 if defaults file can't be read, log an error
closes #131
2016-09-12 09:05:46 +02:00
Jan-Piet Mens
17ddfa07ae add http-logdir option
closes #98
2016-03-03 19:05:44 +01:00
Jan-Piet Mens
d0e4759638 remove spurious printf 2016-03-01 08:50:43 +01:00
Jan-Piet Mens
81e83e2c20 config file supports CAFILE
closes #87
2016-02-26 07:38:46 +01:00
Jan-Piet Mens
c4daf5c523 clientID configurable from config file 2016-02-25 18:59:48 +01:00
Jan-Piet Mens
8a2fe34826 libconfig again 2016-02-25 18:21:48 +01:00
Jan-Piet Mens
b58814530c libconfig quirks 2016-02-25 17:56:05 +01:00
Jan-Piet Mens
25ff5ceca3 Support most config options in defaults file 2016-02-25 17:29:39 +01:00
Jan-Piet Mens
e2b9166597 GPL-2 license 2016-02-16 14:09:30 +01:00
Jan-Piet Mens
d04c38a161 work around missing function in travis' version of libconfig 2016-02-09 11:56:24 +01:00
Jan-Piet Mens
ea0d1d4b68 introduce system-wide defaults file 2016-02-09 11:17:59 +01:00
Jan-Piet Mens
865e986d3d update (C) date 2016-01-01 15:57:34 +01:00
Jan-Piet Mens
a454cb5678 use macro 2015-09-21 16:07:31 +02:00
Jan-Piet Mens
1d69c164d7 feature: REST API provides /api/0/monitor
closes #16
2015-09-09 21:21:38 +02:00
Jan-Piet Mens
8431870ee8 add license 2015-09-01 17:19:52 +02:00
Jan-Piet Mens
e09b93d95d consolidate includes/code 2015-09-01 17:15:00 +02:00
Jan-Piet Mens
7420dcd0ec Rip out Redis & replace with LMDB. 2015-09-01 13:31:49 +02:00
Jan-Piet Mens
4b45699e4f s/JSONDIR/STORAGEDIR/g 2015-08-19 18:58:12 +02:00
Jan-Piet Mens
cbbf16a1a1 use safewrite() for monitor hook file so that it cannot disappear temporarily 2015-08-15 16:27:19 +02:00
Jan-Piet Mens
b050057200 Add monitor hook (Redis and files)
closes #4
2015-08-15 13:18:27 +02:00
Jan-Piet Mens
204dfb8cc7 add udata to monitor hook 2015-08-15 10:46:46 +02:00
Jan-Piet Mens
d408e6f6a8 add (empty for now) monitoring hook 2015-08-15 10:42:55 +02:00
Jan-Piet Mens
8e9b463dd5 add rudimentary binarydump
closes #2
2015-08-15 08:14:34 +02:00