140 Commits

Author SHA1 Message Date
Jeremias Stotter
f856975f05 Look up the timezone when an entry is recorded and store it
With big rec files, lookup might be incredibly slow because the timezone will be looked up for every entry.
Like this, timezone is recorded once when an entry is created and doesn't have to be looked up later
2026-01-10 22:25:17 +01:00
Jan-Piet Mens
c97bfab159 bump copyright dates 2025-01-02 12:13:04 +01:00
Jan-Piet Mens
ad647a7681 bump linesize for inline image data 2024-12-14 10:58:16 +01:00
Jan-Piet Mens
229ad96ba6 remove support for Greenwich devices
closes #484
2024-07-30 17:08:21 +02:00
Jan-Piet Mens
aae3dae4b6 avoid a JSON object copy, and describe effects of uncached tzname 2024-07-29 20:56:24 +02:00
Jan-Piet Mens
394e5b8825 omit perror when enumerating devices on first run
the directory will later be created automatically; don't worry users :)

  addresses #481
2024-07-28 12:10:53 +02:00
Pat Thoyts
020212e55a Enable building when WITH_TZ=no to disable timezone information.
Puts the tzinfo function and calls into a guarded block so that the
config option can be turned off and still build the project.
In line_to_location, put the whole if statement in a guarded block as
both parts are using guards anyway.

Signed-off-by: Pat Thoyts <pat.thoyts@gmail.com>
2024-06-15 15:57:32 +01:00
Jan-Piet Mens
1393415c5d tabs 2024-05-24 22:09:19 +02:00
franchyze923
a998bb8fba add alt field to geojson
add alt (altitude) field to geojson
2024-03-04 18:39:53 -05:00
Jan-Piet Mens
5b10981d44 add more type checking
closes #454
2024-02-26 19:16:40 +01:00
Jan-Piet Mens
e2d1359e4b avoid switching $TZ on every location
addresses #444
2024-02-01 17:26:38 +01:00
Jan-Piet Mens
a36fae995f ensure tzname / isolocal also in API last 2024-02-01 12:24:37 +01:00
Jan-Piet Mens
a1990dc79e ensure build is possible if TZ not defined 2024-01-31 12:10:03 +01:00
Jan-Piet Mens
ab66a673a3 for opencagedata reverse geo, obtain tzname from their data
serve from cached entries if available, else use
	tzdatadb with time penalty
	addresses #444
2024-01-31 10:56:10 +01:00
Jan-Piet Mens
5933b45715 support for tz is now optional 2024-01-30 21:19:17 +01:00
Jan-Piet Mens
99520208fc Enhance API data with timezone at location's position
closes #444
2024-01-30 17:09:29 +01:00
Jan-Piet Mens
04af6665f3 Add support for GeoJSON POI only
addresses https://github.com/owntracks/recorder/issues/439
2024-01-24 13:01:41 +01:00
Jan-Piet Mens
37cae69f5f update copyright year 2023-01-02 14:05:26 +01:00
Jan-Piet Mens
8c6c6092b3 FIX: output mandatory properties{} in Feature
closes #367
2021-08-17 11:40:34 +02:00
Jan-Piet Mens
7864b6e042 bump copyright date 2019-12-31 11:51:59 +01:00
Jan-Piet Mens
df009f791a fix misleading error message
closes #302
2019-04-30 17:41:36 +02:00
Adam Liddell
615865c5c9 Add acc field to GeoJSON point feature properties 2019-01-18 21:58:00 +00:00
Jan-Piet Mens
7a1562e24e introduce define for BUFSIZ issue
addresses #242
2018-06-17 13:22:51 +02:00
JP Mens
7a9dbc4292 Merge pull request #243 from avanc/master
Deactivate warnings for format truncation
2018-06-17 13:16:21 +02:00
Sven Klomp
8a57bc19bd Change buffer sizes to avoid truncation 2018-06-16 21:47:03 +02:00
Jan-Piet Mens
8e62f86e30 Add vel to Feature for live map
addresses #241
2018-06-16 17:38:44 +02:00
Jan-Piet Mens
d72b66575a support file systems without DT_DIR
reported by @matbor for CentOS
2018-02-13 06:48:44 +01:00
Olaf Schott
da14ea53da update storage.c to include xmlns on gpx export
at least one tool (RouteConverter) will not accept .gpx files w/o proper namespace information - added xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://www.topografix.com/GPX/1/1'
2017-10-31 14:17:01 +01:00
Jan-Piet Mens
e1f7a1367d consistently use json_delete 2017-08-16 13:49:51 +02:00
Jan-Piet Mens
0565f1d0f3 update desc on changed .otrw files
closes #171
2017-05-17 09:31:33 +02:00
Jan-Piet Mens
73b19bc524 add dist to geofence report
closes #172
2016-12-10 17:50:55 +01:00
Jan-Piet Mens
f43de2032c spurious comment 2016-12-08 20:02:48 +01:00
Jan-Piet Mens
491a8f6f20 NEW: support for geo fences (waypoints)
WARNING: you must run --initialize to create the new sub db
  see documentation in doc/FENCES.md
2016-12-07 19:40:59 +01:00
Jan-Piet Mens
d48c17e9e6 ignore tm_isdst for FreeBSD
closes #125
2016-07-18 17:55:42 +02:00
Jan-Piet Mens
838a303d38 allow negative _geoprec 2016-03-05 18:27:55 +01:00
Jan-Piet Mens
77a5545d92 override precision with _geoprec
closes #58
2016-03-04 12:40:54 +01:00
Jan-Piet Mens
9fbbc3f6fb view can specify hours instead of from/to
closes #99
2016-03-04 10:38:11 +01:00
Jan-Piet Mens
e25033abea stab for CARD in user-dev/u-d.json before user/u.json
closes #94
2016-03-01 22:02:33 +01:00
Jan-Piet Mens
d4490d0b2d lowercase 2016-03-01 15:53:42 +01:00
Jan-Piet Mens
2022ff6ed0 log failed parsing of http.json 2016-02-24 14:28:37 +01:00
Jan-Piet Mens
2cfee69be3 optionally return content of last/user/device/http.json 2016-02-24 14:00:55 +01:00
Jan-Piet Mens
0d94ea65a5 fix CSV, XML output 2016-02-24 07:53:31 +01:00
Jan-Piet Mens
2ac53a87f9 add to array (mem) 2016-02-23 20:39:31 +01:00
Jan-Piet Mens
b41d152cd1 valgrind is happier 2016-02-23 17:31:00 +01:00
Jan-Piet Mens
115302feb6 fix pairs size 2016-02-23 11:26:33 +01:00
Jan-Piet Mens
3505918e54 solidify GPX output 2016-02-22 21:37:40 +01:00
Jan-Piet Mens
a228d6405a delete unused arrays 2016-02-22 21:31:23 +01:00
Jan-Piet Mens
3791e49c05 LMDB is no longer optional 2016-02-22 13:09:57 +01:00
Jan-Piet Mens
e2b9166597 GPL-2 license 2016-02-16 14:09:30 +01:00
Jan-Piet Mens
8cc0c1f440 surface CARD details 2016-02-16 10:04:04 +01:00