Commit Graph

672 Commits

Author SHA1 Message Date
Jan-Piet Mens
59a891ac17 describe systemd service file 2016-02-26 11:06:15 +01:00
Jan-Piet Mens
6e27bab998 ship README and service file in /usr/share/doc/ 2016-02-26 10:33:55 +01:00
Jan-Piet Mens
87555e4726 ocat displays path to config file 2016-02-26 08:28:11 +01:00
Jan-Piet Mens
81e83e2c20 config file supports CAFILE
closes #87
2016-02-26 07:38:46 +01:00
Jan-Piet Mens
49d346fd80 ownership of ot-recorder config files
closes #89
2016-02-25 19:09:23 +01:00
Jan-Piet Mens
cf4da36fae install config file 0640 2016-02-25 19:05:40 +01:00
Jan-Piet Mens
c4daf5c523 clientID configurable from config file 2016-02-25 18:59:48 +01:00
Jan-Piet Mens
21bed4b184 2016-02-25 version 0.5.3
- FIX: mqtt user/pass from config file
- UPD: defaults file now contains most config settings
- UPD: ocat -v explicitly shows yes/no for MQTT/HTTP
- NEW: hooks in httpmode
- REM: r-only mode removed
- FIX: squashed a number of memory leaks
- NEW: encryption in responses of httpmode
- UPD: API supports GPX output
- NEW: friends (locations, cards) in http mode
- UPD: LMDB is no longer optional during build
- UPD: remove Hosted mode (#86)
- NEW: HTTP mode
- UPD: remove support for /msg
- UPD: startup log message includes version

2016-02-18 version 0.5.1
- FIX: RHEL postinstall shoud run on update as well

2016-02-17 version 0.5.0
- FIX: License: GPL2 (#18)
- NEW: view contains CARD's avatar if available, as does last/
- FIX: map heights _ought_ to now be ok, also on mobile devices
- NEW: small utility for creating view auth
- NEW: support for VIEWs with optional digest authentication
- NEW: gravatar2card.sh and github2card.py in contrib/faces
- FIX: use of limit in locations api

2016-02-09 version 0.4.9
- NEW: introduce /etc/default/ot-recorder
- UPD: GPX output now contains elevation and UTC time
- UPD: default --label on live map changed from "Recorder" to "OwnTracks"
- NEW: optional rename of topics in map popups (#79)
- FIX: mongoose correctly identifies changed files (304 vs 200 and Etag)
- NEW: points on GeoJSON map are now clickable for infowindow (#78)
- NEW: GeoJSON points now have tst in properties (#78)
- FIX: map with extra info in popup box (#77)
- NEW: packaging for Centos7
- NEW: ot-recorder --debug
- FIX: ocat version shows libmosquitto and sodium versions

2016-01-27 version 0.4.8
- FIX: finish Debian8 packaging
- FIX: add missing entry to reason table which could cause SIGSEGV
- FIX: add public domain base64.[ch] (#18)
- NEW: experimental support for payload decryption with per/user secret keys
- FIX: ignore SIGPIPE
- NEW: API endpoint /version returns Recorder version

2016-01-11 version 0.4.7
- NEW: Beacon messages are now handed to the Websocket server
- UPD: locations API returns data in `data` (no longer in `locations`)
- NEW: google reverse-geo API key is now a run-time option in recorder (#18)
- FIX: table view shows last voltage for Greenwich devices in battery column (#73)
- FIX: normalize acc to double for older device versions
- NEW: API locations/ now has support for CSV (#72)

2015-11-13 version 0.4.6
- NEW: support batt,ext,status in LAST API for Greenwich device firmware
- FIX: reverse geo lookup limited to 2000ms
- FIX: make install now creates STORAGEDEFAULT/last (#67)
- FIX: documentation update to include instructions for building on Ubuntu 14.04

2015-11-04 version 0.4.5
- NEW: LAST and LOCATIONS return additional human-formatted ISO timestamp for display, disptst
- FIX: otrc dump now contains correct configuration settings which can be restored to phone
- FIX: waypoints/config filename extention fixed (otrw/otrc)
- NEW: extra.json (in last/username/device/) is merged in and returned in API (#60)
- FIX: http server sets utf-8 on JSON responses (API)
- NEW: recorder's --norec disables writing REC files
- FIX: removed Mosquitto loop timeout; great improvement in HTTP performance
- NEW: API supports /last ?fields=a,b,c

2015-10-23 version 0.4.4
- FIX: now actually builds without LMDB (not recommended!)
- NEW: Add a battery level column to the Table. (#56)
- FIX: waypoints and config dumps are prettyfied
- FIX: XML output prints empty tags when fields are requested
- NEW: API photo/ endpoint (returns default png on user 404)
- NEW: configuration dump (cmd dump) is stored in store/config/$user-$device.otrc
- NEW: waypoints dump (Publish Waypoints from device) written to store/waypoints/$user/$device/user-device.otrw

2015-10-19 version 0.4.3
- NEW: recorder exits if Lua script cannot be loaded (#54)
- FIX: add fail-safe to CSV parser (#53)
- FIX: GeoJSON LineString tracks are now sorted by tst and not by received date
- FIX: recorder's default label correctly set if not compiling with WITH_LUA (#50)
- FIX: Re-zoom map on autozoom enable (#51)
- NEW: favicon/logo, thanks to @ckrey (#50)
- NEW: contrib/faces/image2card.sh to publish a Recorder-compatible JSON CARD from photo
- NEW: multilister adds username/device to JSON location data (#49)

2015-10-02 version 0.4.2
- FIX: ocat --format csv outputs addr and locality as quoted strings
- NEW: live map has a label (set with ot-recorder --label) to indentify instance; connection status is border
- NEW: live map has toggle button to auto-fit (zoom)
- NEW: live map fits to show all devices (#46, #47) with &fit=1 (#48)
- NEW: recorder --initialize non-destructively creates databases (#45)
- INT: added multilister (not yet surfaced to API) (#36)
- FIX: index.html uses UTC to go back in time (reported by Ben)
- NEW: recorder can use Lua otr_putrec() to prohibit REC file writing (#27)
- FIX: storage removes waypoints on kill (#34)
- FIX: storage removes photo on kill (#30)
- FIX: exit if HTTP port cannot be opened
- FIX: lowercase T in date formats allowed (#44)
- FIX: websockets switch to WSS when content served over HTTPS (#43)
- FIX: live map now shows user/device (#42)

2015-09-26 version 0.4.1
- FIX: recorder correctly handles topics with leading slash
- NEW: Lua functions (putdb, getdb) have access to a `luadb'-named LMDB database
- NEW: Lua hooklets
- UPD: reverse geo JSON data in lmdb now contains locality (unless null)
- UPD: ocat --load can delete individual keys from lmdb
- NEW: recorder uses topic2tid named database for on-the-fly TID replacements in JSON payloads

2015-09-21 version 0.4.0
- NEW: ot-recorder stores received (shared) waypoints in waypoints/
- NEW: ot-recorder --quiet to disable info on stdout
- FIX: full rewrite of on_message(); needs testing!
- FIX: recorder logs MQTT connection request
- FIX: Lua's otr_exit is now invoked on exit
- FIX: SIGINT and SIGTERM gracefully stop the recorder
- NEW: Lua hook support
- FIX: kill now removes card and its containing directory if available

2015-09-15 version 0.3.0
- FIX: ocat lowercases device/username (reported by tiptronic)
- NEW: XML support in storage and ocat --format xml
- FIX: display (lat,lon) in table if no address available
- FIX: nasty memory leak in locations from storage
- FIX: LAST now carries isotst
- FIX: ocat --last now supports CSV output (with fields)
- NEW: demo data in etc/ with description
- NEW: index.html has links to -12h, -7d, and -30d for convenience
- NEW: add API q= to query geo cache for particular lat,lon
- FIX: close two memory leaks
- NEW: add systemd unit file

2015-09-15 version 0.2.9
- FIX: added API description and diagram to documentation
- NEW: kill has been surfaced into the API (disabled by compile flag by default)
- FIX: kill now also deletes LAST file and its parent directories if empty
- NEW: ocat --load-ghash can load revgeo db
- NEW: ocat --dump-ghash dumps content of revgeo db
- FIX: main index now shows users/devices already in storage

2015-09-14 version 0.2.8
- FIX: undo ocat -v change

2015-09-14 version 0.2.7

- FIX: ocat -v correctly displays configured JSON_INDENT
- FIX: spec file now builds packages on OBS

2015-09-14 version 0.2.6

- FIX: source of doc root renamed to docroot

2015-09-14 version 0.2.5

- FIX: renamed wdocs to htdocs
- FIX: updated spec file and renamed defaults
- FIX: log with which clientID user is connecting to Hosted
	to aid in trouble-shooting

2015-09-13 version 0.2.4

- FIX: incorrect install of wdocs/ (thanks to @rk295)
- FIX: use correct hostname for --hosted mode
- FIX: live map had ugly HTML on hover-over point

2015-09-11 version 0.2.3

- NEW: --hosted mode for recorder

2015-09-11 version 0.2.2

- first public release
2016-02-25 18:38:45 +01:00
Jan-Piet Mens
a73bc22ade fix user/pass from config file 2016-02-25 18:38:03 +01:00
Jan-Piet Mens
8a2fe34826 libconfig again 2016-02-25 18:21:48 +01:00
Jan-Piet Mens
19bd0db38f 2016-02-25 version 0.5.2
- UPD: defaults file now contains most config settings
- UPD: ocat -v explicitly shows yes/no for MQTT/HTTP
- NEW: hooks in httpmode
- REM: r-only mode removed
- FIX: squashed a number of memory leaks
- NEW: encryption in responses of httpmode
- UPD: API supports GPX output
- NEW: friends (locations, cards) in http mode
- UPD: LMDB is no longer optional during build
- UPD: remove Hosted mode (#86)
- NEW: HTTP mode
- UPD: remove support for /msg
- UPD: startup log message includes version
2016-02-25 18:17:40 +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
a4ab3599d2 ocat -v explicitly shows yes/no for MQTT/HTTP 2016-02-25 11:28:55 +01:00
Jan-Piet Mens
bc06f6917b clarification 2016-02-24 20:07:39 +01:00
Jan-Piet Mens
79489d2159 changed diag 2016-02-24 19:54:54 +01:00
Jan-Piet Mens
422ce3e937 fix diag 2016-02-24 19:06:03 +01:00
Jan-Piet Mens
a50ba6b63f add http to diag 2016-02-24 19:04:41 +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
feef6635de RONLY (r:true) mode ripped out 2016-02-24 14:41:37 +01:00
Jan-Piet Mens
2022ff6ed0 log failed parsing of http.json 2016-02-24 14:28:37 +01:00
Jan-Piet Mens
bec170e39e document http.json 2016-02-24 14:28:29 +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
0d94ea65a5 fix CSV, XML output 2016-02-24 07:53:31 +01:00
Jan-Piet Mens
63581077be add support for GPX in API 2016-02-24 07:52:46 +01:00
Jan-Piet Mens
0bf8cbaf1e protect against missing tst in JSON 2016-02-24 07:52:19 +01:00
Jan-Piet Mens
2ac53a87f9 add to array (mem) 2016-02-23 20:39:31 +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
8cf1622861 add packages to build 2016-02-23 17:31:21 +01:00
Jan-Piet Mens
b41d152cd1 valgrind is happier 2016-02-23 17:31:00 +01:00
Jan-Piet Mens
49538f0b60 add revgeo_free() 2016-02-23 17:30:48 +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
3130693a4d typo in here! script 2016-02-23 13:59:15 +01:00
Jan-Piet Mens
cb7cdbaa30 support FRIENDS in http mode 2016-02-23 12:05:46 +01:00
Jan-Piet Mens
115302feb6 fix pairs size 2016-02-23 11:26:33 +01:00
Jan-Piet Mens
d1568c3267 fix mqtt loop 2016-02-23 09:01:54 +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
e5b5cd56fa deprecate r:true 2016-02-22 15:31:39 +01:00
Jan-Piet Mens
3791e49c05 LMDB is no longer optional 2016-02-22 13:09:57 +01:00
Jan-Piet Mens
e92e66679e add MQTT to config.mk.in 2016-02-22 11:58:24 +01:00
Jan-Piet Mens
71ec52449e remove Hosted mode
closes #86
2016-02-22 11:32:34 +01:00
Jan-Piet Mens
929cddcaac compile on Raspian with http only
closes #85
2016-02-21 18:45:09 +01:00
Jan-Piet Mens
100154a97d calloc 2016-02-21 18:45:02 +01:00
Jan-Piet Mens
487a4e825e nginx proxy snippet for httppub mode 2016-02-19 16:57:03 +01:00