99 Commits
Author SHA1 Message Date
mbirth dab11521ec Fix missing tracker_id on import. 2018-10-09 01:48:00 +02:00
mbirth 3e78595917 Tidy up Gpx creation into own class. Make download work properly. 2018-10-09 01:21:14 +02:00
mbirth bf3c2a7d5a Throw exceptions on SQLite problems. 2018-10-09 00:24:10 +02:00
mbirth c0da94a4a9 Don't change map view when toggling markers. 2018-10-09 00:23:38 +02:00
mbirth 38588ae27d More date stuff fixes. 2018-10-09 00:22:51 +02:00
mbirth 1195938bd2 New "Export GPX" button which exports current view as GPX. 2018-10-08 02:06:51 +02:00
mbirth f2e7d8bfba Better date handling - should work in all timezones now. Also possible
to specify exact time to retrieve in URL.
2018-10-07 23:51:28 +02:00
mbirth 3e65e5ac5a Added SQL to convert existing datestrings to unixtime. 2018-10-07 02:21:11 +02:00
mbirth 5acbfedea1 Set default dt to unix timestamp instead of datestring. For more compact
storage.
2018-10-07 02:14:57 +02:00
mbirth e0adb411c7 Switched to offical FontAwesome5 (NPM-)package. 2018-10-05 22:28:50 +02:00
mbirth 6b81b63771 Switched from Bower to Yarn. 2018-10-03 21:49:20 +02:00
mbirth 652dbe8202 Added lots of new tile sources. Set Thunderforest API key in
ownmap.coffee and recompile.
2018-10-03 20:38:22 +02:00
mbirth b3df214cc2 Add day navigation map buttons. 2018-08-12 23:45:41 +02:00
mbirth 20713d79c9 DB Query returns Location objects. 2018-08-12 22:16:47 +02:00
mbirth 22598acfc9 Cleanup. 2018-08-12 21:58:43 +02:00
mbirth 6de9944236 Optimise record taking, prepare for other record types. 2018-08-12 17:46:43 +02:00
mbirth e0d7a45e37 Bugfix. 2018-08-12 15:55:52 +02:00
mbirth b7480fc03b Updated dependencies. 2018-08-12 14:50:04 +02:00
mbirth fad87cfdab Only report back people with location updates in the last 24 hours.
Also: small bugfix.
2018-06-23 16:47:56 +02:00
mbirth 4f76f94e11 Add MapSurfer layer. 2018-06-10 15:34:30 +02:00
mbirth 868323f2f6 Fix bug with wrong filter when no cookie is set. 2018-06-09 15:43:13 +02:00
mbirth c79d2cb79c Method to change map layer opacity. Might be implemented as a slider
some day.
2018-06-09 15:06:28 +02:00
mbirth c0381a1abc Prepare for time-based queries. 2018-06-09 15:05:38 +02:00
mbirth 5e163f3a2f Fix "Today" button for timezone differences. 2018-06-04 00:44:51 +02:00
mbirth 79c2cec956 Integrated reset_zoom as a map button. 2018-06-04 00:05:05 +02:00
mbirth e6ad834645 VSCode settings. 2018-06-04 00:04:30 +02:00
mbirth 6260fa09fa Add Leaflet.EasyButton and add show_markers toggle to map. 2018-06-03 23:35:14 +02:00
mbirth 6309dd7bfa Update CoffeeScript to 2.3.1. 2018-06-03 22:51:56 +02:00
mbirth 8db766dc9c Restore filter functionality in UI. 2018-06-03 20:45:57 +02:00
mbirth 476f532544 Use "gold" instead of "orange" for rainbow colour. 2018-06-03 19:21:06 +02:00
mbirth c3a794bee1 Rainbow colours for polyline. 2018-06-03 19:12:35 +02:00
mbirth fea51175dc Add tid filtering to MarkerMgr. Not yet implemented in UI code. 2018-06-03 19:05:05 +02:00
mbirth ed255663ec Add support for storing topic (sent by iOS app). 2018-06-03 17:08:55 +02:00
mbirth 86257709bc Fixed ShowHideMarkers persistency via Cookie. 2018-06-03 16:54:26 +02:00
mbirth 328005ac4a Brought back Show/Hide markers functionality. 2018-06-03 16:43:56 +02:00
mbirth 5b7d0eb12f Use getMarkers() instead of Array object directly. 2018-06-03 01:37:46 +02:00
mbirth 09188fa0e7 Move around a few lines. Remove showMarkers-toggle for later
reimplementation.
2018-06-03 00:54:20 +02:00
mbirth cd85618672 Moved marker/polyline code to MarkerMgr class. Use location_id instead
of epoch for operations.
2018-06-02 22:18:16 +02:00
mbirth aa5a9946b7 Fix removal of markers/polylines when switching days. 2018-05-26 00:42:45 +02:00
mbirth 0cced626bc Get tracker_id from RPC answer. 2018-05-25 00:50:09 +02:00
mbirth 64cad5adcb Enable foreign_keys for SQLite. Add unique location id to records. 2018-05-23 01:27:30 +02:00
mbirth 800e4d9b06 Start moving marker code to MarkerMgr class. 2018-05-23 00:52:29 +02:00
mbirth 00beaaa178 Adjust date range if e.g. dateFrom is after dateTo. 2018-05-20 22:31:18 +02:00
mbirth a8d2228e00 Add 2 more tile layers. 2018-05-18 00:34:17 +02:00
mbirth 4d857fc024 Moving around marker drawing code. 2018-05-11 18:35:09 +02:00
mbirth d7655cd767 Update FontAwesome to 5.0.13. 2018-05-11 18:34:32 +02:00
mbirth 617e502cf3 Fix issue with JavaScript and time zones. (Only occurred when UTC was on
a different date than local time.)
2018-05-09 01:37:32 +02:00
mbirth d14eb463f5 Rewrite fetching markers into Promise. Also renamed a few things. 2018-05-07 01:55:32 +02:00
mbirth f861b246a8 Sanitise date input (e.g. from GET variables). 2018-05-06 04:03:04 +02:00
mbirth 09e5ed9ce8 Update bootstrap and font-awesome version numbers. 2018-05-06 03:52:31 +02:00
mbirth b21ff45649 Get rid of momentjs for the silly calculations we do. 2018-05-06 03:51:52 +02:00
mbirth ddc1bd7c0a Remove bootstrap-datepicker and use HTML5 date input. 2018-05-03 15:03:09 +02:00
mbirth dccc2652d0 Fix file permissions. 2018-05-03 15:02:41 +02:00
mbirth e1c08d5f07 Fix missing coffeescript dependency. 2018-05-03 15:02:09 +02:00
mbirth 55b629b8e0 Prepare separate classes for RPC calls and Marker management. 2018-05-02 14:18:12 +02:00
mbirth fd2c287799 Add support for JSONP RPC calls. 2018-05-02 14:17:29 +02:00
mbirth 72d7a0742a Also use FontAwesome icons on mobile screens. 2018-04-30 01:07:06 +02:00
mbirth e13e13b80a Fix small bug with removing old hotlines. Cleanup. 2018-04-29 21:28:25 +02:00
mbirth c6ce8dde7d Fix bug with calling drawMap. 2018-04-29 21:19:19 +02:00
mbirth 634cc99e2c Replace unnecessary jQuery loops with native CoffeeScript ones. 2018-04-29 21:18:51 +02:00
mbirth d1c5522876 Added OpenTopoMap. More refinements to map layers. 2018-04-29 18:57:20 +02:00
mbirth 9e41f80696 Added layer selection to Leaflet and a few more tile providers. 2018-04-29 18:30:29 +02:00
mbirth 66aabd2441 Fix missing icons (Bootstrap 4 doesn't include Glyphicons anymore) by
using Font Awesome.
2018-04-29 17:53:12 +02:00
mbirth fba942cf85 Updated Leaflet + addons to latest versions. 2018-04-29 16:44:11 +02:00
mbirth 590aeda44e Updated js-cookie and momentjs to latest versions. 2018-04-29 16:41:30 +02:00
mbirth 4b065cc492 Upgrade jQuery and migrate Bootstrap 3 to 4. 2018-04-29 16:35:23 +02:00
mbirth df75b59737 Converted remaining methods from JavaScript to CoffeeScript. 2018-04-28 15:05:00 +02:00
mbirth 8b2845d4d2 Small note for import. 2018-04-27 12:35:04 +02:00
mbirth 03371303c2 Added a few notes about Location History format. 2018-04-27 10:59:07 +02:00
mbirth 302e9a80dc Add index for check before recording. 2018-04-27 10:40:21 +02:00
mbirth 3660bc1fb3 README fixes. 2018-04-27 02:02:28 +02:00
mbirth 81781cf16b Fix tools/README. 2018-04-27 01:57:59 +02:00
mbirth b3bc5e199c Add tool to import data from Google Location History. Optimise database. 2018-04-27 01:56:54 +02:00
mbirth b4eb9b42c7 Converted most JavaScript to CoffeeScript and tried to sort it a bit
during the process.
2018-04-26 03:17:53 +02:00
mbirth b51fc4a0c5 Convert UI JavaScript to CoffeeScript for better readability. 2018-04-26 01:12:41 +02:00
mbirth 9db8d26899 Cleanup JavaScript. 2018-04-26 00:39:33 +02:00
mbirth 580ded6a7c Cleanup. Get dateFrom/dateTo from URL via JavaScript. 2018-04-25 23:00:50 +02:00
mbirth 4a6fddfa78 Move RPC stuff to own class. 2018-04-25 23:00:16 +02:00
mbirth 725f40b6a4 Namespaces! Yay! 2018-04-25 21:01:17 +02:00
mbirth 41c9e8f435 Remove gitattributes. Windows users need to make sure core.autocrlf is
set in their global git config.
2018-04-25 14:14:43 +02:00
mbirth 95172db3c7 Fix license in bower.json. Automate bower install with composer.
Clarify in README.
2018-04-25 14:08:59 +02:00
mbirth bf238d6933 Update README. 2018-04-25 03:06:47 +02:00
mbirth dad14624f2 Fix uninitialised variables warnings. 2018-04-25 03:02:54 +02:00
mbirth 5544c01b5e Spring cleaning. Separate JS from HTML from PHP and use Mustache to keep
logic out of the view.
2018-04-25 02:57:31 +02:00
mbirth c998445e04 Return list of buddies' last locations for "Friends" view in Owntracks. 2018-04-25 01:14:14 +02:00
mbirth 7115472f24 Tweaks to README. 2018-04-25 00:48:34 +02:00
mbirth 8d12db2118 Preserve log directory. 2018-04-25 00:43:24 +02:00
mbirth a3d515329d Remove logfile from git. 2018-04-25 00:41:28 +02:00
mbirth b43ff469e0 Code cleanup. 2018-04-25 00:40:58 +02:00
mbirth 6f925cd325 Use images for README from repo. 2018-04-24 23:57:21 +02:00
mbirth 783f56880c Merge branch 'feature/use-bower-instead-of-static-files' 2018-04-24 23:56:47 +02:00
mbirth 40f0343b29 Use bower for dependencies. Also add proper LICENSE file. 2018-04-23 22:08:42 +02:00
mbirth 3857c9deba Cleanup code. Also return error message for Owntracks app to display. 2018-04-23 02:15:15 +02:00
mbirth 4202303c42 Fix recording with optional fields. 2018-04-22 19:39:22 +02:00
mbirth 58c0cc449f Only implement db-specific methods in classes, move everything else to
abstract. Also more minor optimisations.
2018-04-22 19:18:13 +02:00
mbirth 897fd29e80 Add SQLite3 support. 2018-04-22 18:15:48 +02:00
mbirth 4b08266a2b Fix duplicate use of execute. 2018-04-22 18:15:13 +02:00
mbirth 29e1de46c9 Moved shared vars to abstract. Fix 2 typos. 2018-04-22 18:01:26 +02:00
mbirth 333256d4c7 Separated SQL stuff from main code. 2018-04-22 17:48:25 +02:00