- NEW: support for inline image data in a POI location publishes
- FIX: image2card.sh was creating invalid JSON (#520)
- UPD: deprecate google maps from vmap.html (#512)
- FIX: install unit file into /etc/systemd/system/ot-recorder.service during fpm (#514)
- FIX: fix permissions on files installed to share/docs/ot-recorder (#513)
- FIX: contrib/faces/github2card.py require TID
- FIX: contrib/faces/gravatar2card.sh require TID and replace MD5 by SHA256 for Gravatar
- FIX: contrib/faces/image2card.sh asks for TID to produce CARD
- UPD: changed 'convert' in image2card.sh to 'magick'
- FIX: consolidate raspbian/debian fpm-make invocations
Changes:
- Fix invalid json generated by image2card.sh (s/,/:/)
- Make sure that image conversion works when supplied images
are not JPG.
- Adjust comments based on the current documentation:
https://owntracks.org/booklet/features/card/#shell-script
- 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)
- 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)
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.
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>
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.
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>