Commit Graph

1226 Commits

Author SHA1 Message Date
Jan-Piet Mens
59bc46fbe4 note difficulty of Recorder in docker with regard to Friends 2024-12-14 11:02:18 +01:00
Jan-Piet Mens
ad647a7681 bump linesize for inline image data 2024-12-14 10:58:16 +01:00
Jan-Piet Mens
091673432c UPD: deprecate google maps in vmap.html
closes #512
2024-12-02 09:59:48 +01:00
Jan-Piet Mens
3958c9ec69 install unit file into /etc/systemd/system/ot-recorder.service during fpm
closes #514
2024-12-02 08:27:34 +01:00
Jan-Piet Mens
a529d6501d fix permissions on files installed to share/docs/ot-recorder
addresses #513
2024-12-01 10:50:03 +01:00
Jan-Piet Mens
f251d302f3 s/vmap/leaflet/g
closes https://github.com/owntracks/recorder/issues/511
2024-11-28 10:49:07 +01:00
Jan-Piet Mens
f6473d5052 reformat portions of code; somebody/something slipped up using spaces 2024-11-26 21:47:29 +01:00
Jan-Piet Mens
750726b567 WIP: store photos taken in app and transmitted to Recorder
addresses https://github.com/owntracks/recorder/issues/509
2024-11-26 19:28:28 +01:00
Jan-Piet Mens
fce90dedd4 add tid to card output 2024-11-25 20:29:29 +01:00
Jan-Piet Mens
8e87664e5e add TID and replace old MD5 by SHA256 2024-11-25 20:23:54 +01:00
Jan-Piet Mens
fde9692a31 demand TID as parameter for CARD
addresses https://github.com/owntracks/booklet/pull/88
2024-11-25 20:11:05 +01:00
Jan-Piet Mens
b33619295b Merge pull request #505 from Themis3000/patch-1
Update README.md
2024-11-12 07:49:29 +01:00
Themi Megas
02911d5259 Update README.md
Updated readme to describe how to disable mqtt in the "configuration variables" table
2024-11-12 00:25:45 -06:00
Jan-Piet Mens
b842fb0a57 use modern 'magick' instead of 'convert' also to disable imagemagick warning 2024-11-11 13:34:21 +01:00
Jan-Piet Mens
82bfb478d4 raspbian == debian for fpm-make 2024-10-28 09:53:02 +01:00
Jan-Piet Mens
9987f10ee9 don't label files in /etc as configs by default
the one file we do have there is marked as config anyway
	this brings raspbian fpm-make to be like debian fpm-make
2024-10-28 09:47:29 +01:00
Jan-Piet Mens
d54a8c451f 2024-10-25 version 0.9.9
- FIX: OTR_CLEAN_AGE default not correctly handled (#500)
- FIX: ocat --dump will not output keys which don't have JSON data in them
- FIX: lowercase waypoints (otrw) and config (otrc) directory and filenames (#486)
- UPD: remove support for Greenwich devices (#484)
- FIX: avoid a JSON object copy
- FIX: print currently desired lmdb size in error that cache cannot be opened (#480)
- NEW: startup message hints at configured revgeo setting and reverse geocoder brand
- FIX: debian postinst now restarts ot-recorder (#446)
0.9.9
2024-10-25 10:55:44 +02:00
Jan-Piet Mens
a90e2fee7b ocat --dump will not output keys which don't have JSON data in them
avoids dump's output containing lines with
		friends
		luadb
		topic2tid
		wp
2024-10-07 10:20:23 +02:00
Jan-Piet Mens
22b52a2f5c Show configured revgeo status at startup 2024-10-07 10:20:23 +02:00
Christoph Krey
76b00e4b78 [FIX] OTR_CLEAN_AGE default not correctly handled #500 2024-10-02 11:14:08 +02:00
Jan-Piet Mens
9275341b94 document existence of _type=status in code
addresses #482
2024-07-31 13:55:24 +02:00
Jan-Piet Mens
ea54106a50 lowercase waypoints (otrw) and config (otrc) directory and filenames
closes #486
2024-07-31 11:45:56 +02:00
Jan-Piet Mens
0be22243ff remove mentions of Greenwich devices 2024-07-30 19:10:38 +02: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
eb97ebbd87 explain o and n 2024-07-29 20:45:32 +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
Jan-Piet Mens
3634f46496 print currently desired lmdb size in error that cache cannot be opened
addresses #480
2024-07-26 15:49:02 +02:00
Jan-Piet Mens
d406404633 startup message hints at configured reverge geocoder 2024-07-26 15:22:28 +02:00
Jan-Piet Mens
719cc3c8ab fpm postinst now restarts daemon
closes #446
2024-07-23 11:58:01 +02:00
Jan-Piet Mens
488eabe3e3 2024-07-23 version 0.9.8
- FIX: add card data to websocket notifications (#450)
- FIX: Enable building when WITH_TZ=no to disable timezone information (#473)
- FIX: view lastpos response (#471)
- FIX: handle out-of-order location notification in last/ (#472)
- FIX: drastically reduce memory leakage in views (#464)
- FIX: reformat json if it contains newlines/tabs before storing in .rec (#437)
- NEW: cached geo records can be auto-expired by setting OTR_CLEAN_AGE (#447)
- NEW: option -J prints variables in JSON format, for scripting
- NEW: version is printed in -J / -V
- FIX: in http mode friends' data must contain a topic; construct it or retrieve from last if available (#451)
- FIX: crash on non-string event name in _transition messages (#454)
- NEW: Add alt field to GeoJSON points parameters (#456)
0.9.8
2024-07-23 10:42:43 +02:00
Jan-Piet Mens
214089f8b9 ensure initialized 2024-06-26 11:36:09 +02:00
Jan-Piet Mens
c0f01a35eb Merge pull request #474 from patthoyts/pt/issue-450
issue #450: add card data to websocket notifications
2024-06-16 08:57:55 +02:00
Jan-Piet Mens
be7a172baf Merge pull request #473 from patthoyts/pt/with-tz-no
Enable building when WITH_TZ=no to disable timezone information.
2024-06-16 08:55:49 +02:00
Pat Thoyts
6476cb4ec7 issue #450: add card data to websocket notifications
When processing the most recent location update this gets pushed over the
websocket to update the live map last position. If a card is present it
needs to be added just before this push occurs.
2024-06-15 16:28:55 +01: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
5f2723800d Merge pull request #471 from patthoyts/correct-view-lastpos
Fix the view lastpos response.
2024-06-15 11:21:48 +02:00
Jan-Piet Mens
61922fcf52 Merge pull request #472 from patthoyts/pt/issue-313
issue #313: handle out-of-order location notification
2024-06-15 11:18:55 +02:00
Pat Thoyts
4fc1a083ed issue #313: handle out-of-order location notification
When receiving a location update check that it is newer than the last
update from the same device before updating the 'last' record. This
ensures the 'last' record is always the most recent update from the device
in the event updates arrive out of order.
2024-06-14 21:22:45 +01: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
1393415c5d tabs 2024-05-24 22:09:19 +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
f1fad31a9b now really ignore _type=transition if data is not string 2024-04-02 10:53:37 +02:00
Jan-Piet Mens
1a913d319a remove spurious fprintf 2024-04-02 10:53:37 +02:00
Jan-Piet Mens
3c6b2c3bf3 Merge pull request #460 from nickswalker/nick/waypoint-transition-fix
Don't check fences when user submits a waypoint
2024-04-02 10:53:19 +02:00
Jan-Piet Mens
2e54fd0f46 Merge pull request #459 from nickswalker/nick/putrec-last-websocket
Make putrec hook also decide whether `last` and websocket update
2024-04-02 10:52:13 +02:00
Nick Walker
d5216eba96 Make putrec hook also decide whether last and websocket receive a message
Current hook just governs whether the record is written, but this means that the `last` file
and the live websocket would still be updated with data that the user decided to filter. Now
we use the hook to skip those steps as well.
Update HOOKS.md to note the functionality change
2024-03-30 20:33:45 -07:00
Nick Walker
475f074505 Don't check fences when user submits a waypoint
The coordinates of this waypoint may or may not be their current location, but
if they  happen to cause the user to move across a waypoint radius boundary, this
check will fire the lua hook with a transition event
2024-03-30 20:09:40 -07:00
Jan-Piet Mens
c56c68aefb Merge pull request #457 from franchyze923/master
add alt field to geojson
2024-03-05 00:49:32 +01:00