106 Commits

Author SHA1 Message Date
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
Pat Thoyts
eb001ef2aa Fix the view lastpos response.
The locarray json data is transferred to the response object and if
it is deleted here results in an empty object being returned to the user
and the default view just shows "Imported data is malformed" instead of
a map. This restores the vmap functionality.

Signed-off-by: Pat Thoyts <pat.thoyts@gmail.com>
2024-06-14 00:34:50 +01:00
Jan-Piet Mens
81edd329f8 free json used on views themselves
closes #464
2024-05-25 09:01:46 +02:00
Jan-Piet Mens
2ebcc4ae6b free no-longer needed json data
addresses https://github.com/owntracks/recorder/issues/464
2024-05-24 21:45:40 +02:00
Jan-Piet Mens
5cf088332e in http mode friends' data must contain a topic; construct it or retrieve from last if available
fixes #451
2024-02-10 21:51:25 +01:00
Jan-Piet Mens
e213a0b8b1 bump (C) 2024-02-01 18:04:02 +01:00
Jan-Piet Mens
93b3c9aff2 append Recorder version number to JSON data in API locations 2024-02-01 17:32:58 +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
f929cafee3 ensure lowercased user/device in tour file 2022-08-07 12:18:02 +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
577dc56d8d NEW: tour views are stored in/read from STORAGEDIR/tours/
this separates manually created views from those submitted
	automatically from the apps, and solves the problem of having to
	make viewsdir writeable by the process owner of ot-recorder,
	which I find is a cleaner solution.
2022-08-05 20:16:34 +02:00
Jan-Piet Mens
dbb4dc2b08 NEW: @@@LABEL@@@ in view HTML is replaced by view's label attribute 2022-08-04 23:21:44 +02:00
Jan-Piet Mens
18efad3e9c experimental SHARES 2022-08-04 11:25:23 +02:00
Jan-Piet Mens
3d18bf8b17 prefix Content-Length by X- to avoid issues with chunked encoding
closes #350
2020-09-08 11:31:22 +02:00
Jan-Piet Mens
31f453ccd3 fix off-by-one error introduced in #328 (Safari only)
closes #346
2020-07-01 16:40:23 +02:00
Jan-Piet Mens
7864b6e042 bump copyright date 2019-12-31 11:51:59 +01:00
Linus Groh
277b3cedf0 Send Content-Length header in json_response 2019-12-14 22:07:24 +00:00
Jan-Piet Mens
60813e80d7 option --viewsdir overrides <docroot>/views
addresses #305
2019-06-09 19:41:41 +02:00
Jan-Piet Mens
d9f5d6c977 s/ /tab/ 2019-03-17 09:52:51 +01:00
Sven Anders
6b0e1b6fb2 fix unused result warning on debian stretch 2019-03-17 08:55:27 +01:00
Jan-Piet Mens
5020658174 misleading indent 2019-01-10 16:17:26 +01:00
Jan-Piet Mens
041357928d ensure geohash is sent down the tube in http 2019-01-10 15:48:47 +01:00
Jan-Piet Mens
87a5839805 ping/ping monitoring user/device no longer shows up on map nor in table
closes #195
2017-06-19 13:07:47 +02:00
Jan-Piet Mens
0c0e3b4f7e field_n doesn't support NAN on gcc 2017-05-31 20:27:19 +02:00
Jan-Piet Mens
20f6954eac support traccar (osmand) GET requests 2017-05-31 20:07:27 +02: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
001c95395f Serve apikey.js with mime type application/javascript
closes #168
2016-12-02 10:16:18 +01:00
Jan-Piet Mens
d010f2a656 decrypted payloads have "_decrypted":true added to .rec file
closes #151
2016-09-22 14:45:43 +02:00
Jan-Piet Mens
bf39ceb392 Maps browser API key file (apikey.js) is now served by the Recorder
- new option in Recorder: --browser-apikey

	addresses #146
2016-09-12 10:11:21 +02:00
Jan-Piet Mens
04bc76bec7 api/0/version outputs git commit 2016-07-22 10:33:56 +02:00
Jan-Piet Mens
5973275ee4 add content-type to view's page 2016-03-04 11:34:45 +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
9ca53b264f http publishes are marked with _http:true in JSON 2016-03-02 19:49:00 +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
c1a3f7f195 ctrl.track starts a month ago
closes #93
2016-03-01 16:19:03 +01:00
Jan-Piet Mens
c0723d344f unused 'track' 2016-03-01 10:13:51 +01:00
Jan-Piet Mens
4494868419 track for CTRL 2016-03-01 10:08:53 +01:00
Jan-Piet Mens
b163005b01 Lua hook on responding to POST in httpmode 2016-02-24 17:59:00 +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
215e1beee2 free 2016-02-24 10:19:00 +01:00
Jan-Piet Mens
8c96d7bd3c encryption fix 2016-02-24 10:12:18 +01:00
Jan-Piet Mens
f38cd3eb33 encrypt httpmode responses if key available 2016-02-24 09:20:11 +01:00
Jan-Piet Mens
63581077be add support for GPX in API 2016-02-24 07:52:46 +01:00
Jan-Piet Mens
7eff223619 acc,vac 2016-02-23 19:42:29 +01:00
Jan-Piet Mens
b8c2d234e3 add cog,alt,vel to httpmode friends for iOS 2016-02-23 19:38:08 +01:00
Jan-Piet Mens
4d7dcf2007 check that friends db value is JSON array 2016-02-23 17:29:52 +01:00
Jan-Piet Mens
81399aa406 cleanup 2016-02-23 14:18:59 +01:00
Jan-Piet Mens
cb7cdbaa30 support FRIENDS in http mode 2016-02-23 12:05:46 +01:00