Commit graph

321 commits

Author SHA1 Message Date
Eugene Burmakin
f4027551e6 Update StrongMigrations start_after 2025-01-22 15:06:35 +01:00
Eugene Burmakin
be779fe333 Merge remote-tracking branch 'origin/dev' into chore/database-user-constraints 2025-01-22 15:03:55 +01:00
Eugene Burmakin
b43810b1fb Import Google Records JSON in batches 2025-01-21 19:14:36 +01:00
Aleksei Besogonov
3fe48f6685 Add support for Nominatim
This adds support for Nominatim-based reverse geocoding, along with
Photon and Geofi. To use it, set the environment variables:

NOMINATIM_API_HOST - the host name of the OSM Nominatim server
NOMINATIM_API_USE_HTTPS - use the HTTPS to connect
NOMINATIM_API_KEY - the API key
2025-01-20 23:16:51 -08:00
Evgenii Burmakin
620579d162
Merge branch 'master' into feature/api/points 2025-01-20 20:35:08 +01:00
Eugene Burmakin
112f13587c Add swagger docs for POST /api/v1/points 2025-01-20 20:17:27 +01:00
Eugene Burmakin
41bb2e07fb Add user endpoint 2025-01-20 15:17:56 +01:00
Eugene Burmakin
f85fd9e4d0 Implement polylines redraw on point drag 2025-01-19 12:59:12 +01:00
Eugene Burmakin
11677b14ae Introduce self-hosted mode 2025-01-15 21:52:59 +01:00
Eugene Burmakin
c13ebe8d3c Split docker files 2025-01-09 15:04:05 +01:00
Eugene Burmakin
abff239d97 Run rails server instead of foreman 2025-01-08 15:11:31 +01:00
Eugene Burmakin
1476816418 Update production environment 2025-01-07 16:04:03 +01:00
Eugene Burmakin
e2f1b2a26c Merge remote-tracking branch 'origin/master' into feature/production_env 2025-01-07 16:02:12 +01:00
Eugene Burmakin
e904d396c8 Make sure cache jobs are run only on server start 2025-01-07 15:02:35 +01:00
Eugene Burmakin
974f45a4c9 Remove REVERSE_GEOCODING_ENABLED env var 2025-01-07 13:41:09 +01:00
Eugene Burmakin
688440710f Remove APPLICATION_HOST env var. 2025-01-07 13:28:51 +01:00
Eugene Burmakin
ae6dc5ac8a Remove Photon API env vars and use DawarichSettings for reverse geocoding settings 2025-01-07 13:12:14 +01:00
Eugene Burmakin
10afb3fbc2 Fix Photon API for patreon supporters 2025-01-05 21:40:59 +01:00
Eugene Burmakin
cd31fb4cf0 Add database constraints for users table 2024-12-26 21:34:10 +01:00
Eugene Burmakin
d9bade8fe5 Fix specs for watcher and change z-index for markers and polylines 2024-12-25 13:05:42 +01:00
Eugene Burmakin
0dfdeac5c5 Move cache cleaning to a job 2024-12-24 17:01:26 +01:00
Eugene Burmakin
462df9e796 Make postgres config optional && add health check header && add photon api key 2024-12-24 16:51:26 +01:00
Eugene Burmakin
d640af4036 Add cache cleaning and preheating 2024-12-24 16:51:26 +01:00
Eugene Burmakin
d01e4f3b9e Update tests for stats requests 2024-12-20 15:43:06 +01:00
Eugene Burmakin
6c18fbe41f Add buttons to update stats for a year or a month 2024-12-20 15:26:25 +01:00
Evgenii Burmakin
68129f9eae
Merge pull request #516 from duckfullstop/bug-bind-ipv6
Bind to both IPv6 and IPv4 interfaces by default
2024-12-19 12:37:17 +01:00
Eugene Burmakin
de09d9b9d7 Remove old framework defaults 2024-12-17 12:57:06 +01:00
Eugene Burmakin
5f93bf8522 Update to Rails 8.0.1 2024-12-17 12:56:21 +01:00
Eugene Burmakin
fc97a0bdf2 Update framework defaults to 7.2 2024-12-17 12:22:16 +01:00
Eugene Burmakin
03aadb9544 Update files to Rails 7.2 2024-12-17 12:15:02 +01:00
Evgenii Burmakin
81b5f69a30
Merge pull request #529 from Freika/feature/map-page-update
Map page update
2024-12-16 16:09:55 +01:00
Evgenii Burmakin
0dc2493272
Merge pull request #540 from sheyabernstein/dev-log-level
Add support for changing log level in development
2024-12-16 14:32:31 +01:00
Sven Anders
4ece5cb4a5 Add a "Delete Notifications" button 2024-12-15 17:28:59 +01:00
Sheya Bernstein
0e384d99c1 Add support for changing log level in development 2024-12-13 11:20:10 +00:00
Eugene Burmakin
e7c393a776 Show visited cities on map page 2024-12-11 22:00:33 +01:00
Eugene Burmakin
a4db806d29 Add togglable panel for months and years navigation 2024-12-11 20:34:49 +01:00
Eugene Burmakin
9bca8cfeaa Merge remote-tracking branch 'origin/master' into fix/reverse-geocoded-points 2024-12-10 20:15:42 +01:00
duck.
9a2267abf4
Bind to both IPv6 and IPv4 interfaces by default
As discussed in https://github.com/Freika/dawarich/issues/498 - not tested as there appears to be no scaffolding to test this functionality?
2024-12-10 16:10:21 +00:00
Eugene Burmakin
3b115a85b1 Add missing tests and process reverse geocoding in batches 2024-12-06 17:32:45 +01:00
Eugene Burmakin
b7e4a017b8 Calculate only necessary stats 2024-12-06 16:52:36 +01:00
Eugene Burmakin
c8e910343c Fix test fixtures and add telemetry sending job 2024-12-05 17:37:50 +01:00
Eugene Burmakin
f095a7504c Merge remote-tracking branch 'origin/master' into feature/telemetry 2024-12-05 17:12:48 +01:00
Eugene Burmakin
f10f78999d Add basic telemetry 2024-12-05 17:12:35 +01:00
Eugene Burmakin
95706bc5b5 Update app version to 0.19.1 2024-12-05 11:10:00 +01:00
Eugene Burmakin
0236e81f74 Fix Prometheus exporter for Sidekiq 2024-12-04 15:00:28 +01:00
Eugene Burmakin
9eea936782 Introduce reverse_geocoded_at to points 2024-12-02 14:44:22 +01:00
Alex Barcelo
e23d4ba382
avoid unnecessary initialization for certain scenarios 2024-12-02 11:35:08 +01:00
Eugene Burmakin
5c09e5b0f9 Move trip to partial 2024-11-28 16:11:04 +01:00
Eugene Burmakin
2cfc485f12 Add Trix editor to trips 2024-11-28 12:00:54 +01:00
Eugene Burmakin
198bf3128a Add trips model and scaffold controller 2024-11-27 20:14:17 +01:00
Eugene Burmakin
7b160bfe2d Add specs for swagger 2024-11-26 20:18:08 +01:00
Eugene Burmakin
428e927432 Show individual photo markers on the map 2024-11-26 16:36:02 +01:00
Eugene Burmakin
130630b997 Move Immich API request to a separate service & add photos api controller 2024-11-26 14:46:26 +01:00
Eugene Burmakin
946377ef63 Add production environment configuration 2024-11-25 16:02:39 +01:00
Eugene Burmakin
6093f4cb33 Return sidekiq_rate_limiting 2024-11-24 15:28:09 +01:00
Eugene Burmakin
2b2583e275 Remove sidekiq_rate_limiting 2024-11-24 15:25:00 +01:00
Eugene Burmakin
559dbbfefa Use sidekiq_rate_limiter for rate limiting requests to photon.komoot.io 2024-11-24 15:21:02 +01:00
Eugene Burmakin
79bf74add4 Move APP_VERSION to a constant 2024-11-24 14:56:20 +01:00
Eugene Burmakin
55e24f3adb Change default number of Puma workers to 2 2024-11-20 22:00:24 +01:00
Eugene Burmakin
6b4da57f3d Don't start Prometheus Exporter unless PROMETHEUS_EXPORTER_ENABLED is set to true 2024-11-20 21:07:43 +01:00
Eugene Burmakin
342f025bf2 Add port 9394 to docker-compose.yml for Prometheus exporter 2024-11-20 21:05:02 +01:00
Eugene Burmakin
55a575f87a Update sidekiq configuration to include Prometheus instrumentation 2024-11-20 20:50:21 +01:00
Eugene Burmakin
d0e0158ef9 Update puma.rb to include prometheus exporter for single mode 2024-11-20 20:47:30 +01:00
Eugene Burmakin
cf5b414ae4 Use single condition in the prometheus initializer file 2024-11-20 17:16:26 +01:00
Eugene Burmakin
da19196660 Start Prometheus exporter along with the Rails server 2024-11-20 13:25:58 +01:00
Eugene Burmakin
055faac14f Add prometheus_exporter gem and instrumentation to the project 2024-11-20 12:02:31 +01:00
Eugene Burmakin
94e60c4974 Merge remote-tracking branch 'origin/master' into feature/user-management 2024-11-11 14:53:02 +01:00
Eugene Burmakin
51b521dc2a Fix ActionCable not respecting REDIS_URL env var 2024-11-10 22:00:52 +01:00
Eugene Burmakin
b97b30c88a Add separate page for user management 2024-11-08 17:56:14 +01:00
Eugene Burmakin
3e5ddb7183 Fix importing geojson from GPSLogger for Android 2024-11-08 14:22:23 +01:00
Eugene Burmakin
4a3f7d5e65 Implement live points count update for imports 2024-11-04 13:06:04 +01:00
Eugene Burmakin
9c99a835de Implement live map updates with WebSockets 2024-11-03 16:48:43 +01:00
Eugene Burmakin
14b7397840 Add raw implementation of notifications interactive channel 2024-11-03 14:37:01 +01:00
Eugene Burmakin
34c12a9536 Add GET /api/v1/countries/borders endpoint to get countries for scratch map feature 2024-11-01 20:49:59 +01:00
Eugene Burmakin
04551d6fbd Enable serving static files from the public directory in development mode. 2024-11-01 19:10:20 +01:00
Eugene Burmakin
bc28babf15 Use local countries.geojson 2024-11-01 14:05:16 +01:00
Eugene Burmakin
d3f6d0da7b Rework the app version checking to be performed in the background and update docker compose file to use different directories for gems cache 2024-10-29 11:53:44 +01:00
Eugene Burmakin
d218ed8151 Fix stats distances and rework stas calculating service 2024-10-24 16:59:15 +02:00
Eugene Burmakin
60d2ee1cec Use fixed time for start_at and end_at in suggest_spec.rb 2024-10-19 23:03:35 +02:00
Evgenii Burmakin
5accd16deb
Merge pull request #280 from saschazepter/fix/use-openssl-urandom
Fix missing urandom by using OpenSSL's random_bytes
2024-10-19 22:57:28 +02:00
Eugene Burmakin
750bb4976c Add use_https option to geocoder initializer 2024-10-19 18:39:01 +02:00
Christen Lofland
3bf47ba18d Add use_https option to photon call to fix Issue #333 2024-10-17 17:32:16 -05:00
Eugene Burmakin
b79bb9951c Add test for Import::WatcherJob 2024-10-03 15:27:30 +02:00
Eugene Burmakin
200bc980e5 Add cronjob to run Import::WatcherJob every 1 hour 2024-10-03 15:12:19 +02:00
Eugene Burmakin
df430851ce Add optional order query parameter to GET /api/v1/points 2024-10-02 21:29:56 +02:00
Eugene Burmakin
6aaab424fe Add monkey patch for Geocoder::Lookup::Photon to support http protocol 2024-10-01 22:05:35 +02:00
Sascha Zepter
5de7bd65a3
Fix missing urandom by using OpenSSL's random_bytes 2024-09-24 22:40:34 +02:00
Joey Eamigh
6f658562f6
add support for alternate postgres ports and db names in docker 2024-09-17 18:53:10 -04:00
Eugene Burmakin
d5cbae620e Update immich data importing service 2024-09-08 16:52:35 +02:00
Eugene Burmakin
63336f2126 Update readme 2024-09-08 15:09:21 +02:00
Eugene Burmakin
0ac3b025ed Merge remote-tracking branch 'origin/master' into feature/miles 2024-09-06 21:26:26 +02:00
Eugene Burmakin
98520b0287 Add health check endpoint 2024-09-05 21:16:40 +02:00
Eugene Burmakin
5d14b406bd Add DISTANCE_UNIT environment variable 2024-08-28 23:54:00 +02:00
Eugene Burmakin
df588d1e07 Move map settings to the map itself 2024-08-28 20:24:35 +02:00
Eugene Burmakin
7d7005063b Add places page 2024-08-25 20:19:02 +02:00
Eugene Burmakin
f9750133df Merge remote-tracking branch 'origin/master' into visit_detection 2024-08-25 19:31:19 +02:00
Eugene Burmakin
3336ac9864 Add counter cache for imports 2024-08-22 22:40:27 +02:00
Eugene Burmakin
7ed7f9795b Add stats API endpoint and serializer 2024-08-20 20:14:17 +02:00
Eugene Burmakin
39bc6aa58a Implement support for custom Photon API host 2024-08-14 18:06:37 +02:00
Eugene Burmakin
52ee90ac9c Replace google places api with photon api by komoot 2024-08-13 18:25:48 +02:00
Eugene Burmakin
382f937f29 Add lots of logic 2024-08-12 22:18:11 +02:00
Eugene Burmakin
5394e9dd52 Add visits detection 2024-08-05 21:23:08 +02:00
Eugene Burmakin
04a2150959 Add a bunch of small changes and fixes, see CHANGELOG.md for details 2024-07-31 19:35:35 +02:00
Eugene Burmakin
8bb966b546 Update visits specs 2024-07-27 12:35:47 +02:00
Eugene Burmakin
ffe0334ebc Add visits page 2024-07-24 20:25:16 +02:00
Eugene Burmakin
151e5cf042 Add areas 2024-07-21 20:09:42 +02:00
Eugene Burmakin
4371d28ef7 Allow users to delete points from the map 2024-07-21 16:45:29 +02:00
Eugene Burmakin
9c2d2b8c02 Handle Sidekiq access for non-admin users 2024-07-19 20:57:14 +02:00
Eugene Burmakin
b1f7b98c11 Add admin flag to users 2024-07-16 22:26:16 +02:00
Eugene Burmakin
646e5e729d Add REVERSE_GEOCODING_ENABLED env var to README 2024-07-13 10:39:30 +02:00
Eugene Burmakin
f080b4c6ce Add tests for background jobs stuff 2024-07-12 21:59:03 +02:00
Eugene Burmakin
b648c18f9d Scaffold background jobs settings 2024-07-09 20:28:59 +02:00
Eugene Burmakin
54446f1c3c Update logging settings 2024-07-09 20:09:43 +02:00
Eugene Burmakin
dd6430e185 Merge branch 'remove_map_center' 2024-07-08 23:22:00 +02:00
Eugene Burmakin
d3ea150130 Set default value for APPLICATION_HOSTS environment variable to string 2024-07-08 23:02:11 +02:00
Eugene Burmakin
e1648c5cb0 Rework Google Phone Takeout import to support location-history.json another file format 2024-07-08 18:05:02 +02:00
Eugene Burmakin
ba265e3c26 Make notifications look nice 2024-07-04 23:00:07 +02:00
Eugene Burmakin
bb2beb519b Add notifications 2024-07-04 22:20:12 +02:00
Eugene Burmakin
5b8ab3161b Remove MAP_CENTER env var 2024-06-30 13:16:19 +02:00
Eugene Burmakin
21cc53b78a Remove unused files 2024-06-30 12:40:11 +02:00
Eugene Burmakin
2c9a88aba4 Disable registration and implement user creation in the settings page 2024-06-30 12:31:21 +02:00
Eugene Burmakin
d9aea95401 Add new settings page to allow user change route rendering options 2024-06-20 23:57:00 +02:00
Eugene Burmakin
747418c854 Implement GPX imports 2024-06-19 21:16:06 +02:00
Eugene Burmakin
3f68ce5e37 Implement Exporting points to a file 2024-06-12 20:29:38 +02:00
Eugene Burmakin
045999b292 Add migration to remove points without coordinates 2024-06-10 22:48:05 +02:00
Eugene Burmakin
6ed9a27040 Update Records.json importing script 2024-06-10 22:48:05 +02:00
Eugene Burmakin
94ae8a3c9f Add favicon and allow setting concurrency via BACKGROUND_PROCESSING_CONCURRENCY 2024-06-07 19:22:39 +02:00
Eugene Burmakin
4962d48910 Added new buttons to map page and removed "Your data" page 2024-05-30 23:36:12 +02:00
Eugene Burmakin
e2cc9a9992 Increase the concurrency of the Sidekiq workers to 10 and add the user_id to the records parsed from the Google Maps Timeline Export. 2024-05-25 22:27:18 +02:00
Eugene Burmakin
21f663a090 Add a heatmap layer to the map to show the density of points 2024-05-25 22:14:55 +02:00
Eugene Burmakin
b76f75a494 Add instructions to api key usagea and allow user generate new api key 2024-05-25 13:57:50 +02:00
Eugene Burmakin
df687db91f Add Owntracks API endpoint with api_key authentication 2024-05-25 12:57:39 +02:00
Eugene Burmakin
d25468207d Add a rake task to import large files from Google Takeout 2024-05-23 20:35:31 +02:00
Eugene Burmakin
814095a4a2 Implement bulk points deletion 2024-05-23 20:12:23 +02:00
Eugene Burmakin
e488dc9e4a Add swagger along with api/v1/points swagger doc 2024-05-18 13:35:48 +02:00
Eugene Burmakin
90f6c82dc1 Persist app theme in user settings 2024-05-18 12:13:29 +02:00
Eugene Burmakin
ce7b391316 Add a new release to the CHANGELOG.md file and rename env var 2024-05-05 12:03:25 +02:00
Eugene Burmakin
a333458756 Update docker-compose.yml to use latest docker image and add missing env var 2024-04-30 22:21:17 +02:00
Eugene Burmakin
ad78af59ac Rework calculation of cities visited 2024-04-26 18:59:58 +02:00
Eugene Burmakin
e00f614b9a Use shrine to upload files instead of ActiveStorage 2024-04-25 22:28:34 +02:00
Eugene Burmakin
d99e6d6f50 Set redis as default cache store 2024-04-21 18:12:07 +02:00
Eugene Burmakin
fe4110b0fd Add support for Overland 2024-04-06 19:09:38 +02:00
Eugene Burmakin
f6ae4aef8c Add changelog, version badge, and APPLICATION_HOST environment variable 2024-04-05 22:20:12 +02:00
Eugene Burmakin
f7b93ac8b5 Add callback to create API key for new users 2024-04-04 20:14:11 +02:00
Eugene Burmakin
2783cc5014 Allow user to download the exported data as a JSON file 2024-04-04 17:29:11 +02:00
Eugene Burmakin
5544bcd5ff Move point creation to a background job, add months navigation to the sidebar 2024-04-02 17:37:38 +02:00
Eugene Burmakin
705c7ca7a2 Fix broken update stats button and add sidekiq to docker-compose.yml 2024-03-24 20:09:10 +01:00
Eugene Burmakin
2953ca6499 Add a new page to show stats for a specific year 2024-03-24 19:46:55 +01:00
Eugene Burmakin
96a9900661 Add a button to create/update stats 2024-03-24 19:25:33 +01:00
Eugene Burmakin
29ac8c1136 Add nice charts to the stat cards 2024-03-24 18:55:35 +01:00
Eugene Burmakin
7292115a44 Move import processing to background job & allow to disable reverse geocoding 2024-03-24 18:05:39 +01:00
Eugene Burmakin
2e4390f194 Add very basic export feature 2024-03-23 21:46:18 +01:00
Eugene Burmakin
2e6d05aa40 Add nice statistics 2024-03-23 21:16:11 +01:00
Eugene Burmakin
d1454c21a9 Add StatCreatingJob to create stats asynchronously 2024-03-23 20:40:05 +01:00
Eugene Burmakin
e1193608ef Add basic stats 2024-03-23 20:29:55 +01:00
Eugene Burmakin
4af91748f0 Allow to set the default map center via an environment variable. 2024-03-21 23:54:19 +01:00
Eugene Burmakin
6f9d23017b Add indicies to points latitude longitude 2024-03-17 18:16:45 +01:00
Eugene Burmakin
1f3ee41bcb Implement calculation of cities and countries with the number of points and the last timestamp 2024-03-17 17:58:09 +01:00
Eugene Burmakin
07395d681e Implement leaflet map with points and polyline 2024-03-16 01:07:20 +01:00
Eugene Burmakin
ff57efab01 Add Dockerfile and update docker-compose.yml to use the new Dockerfile 2024-03-15 23:31:06 +01:00
Eugene Burmakin
3c74bc2937 Migrate from old template 2024-03-15 23:27:31 +01:00
Eugene Burmakin
f74415217c Rename to Dawarich 2024-03-15 22:28:54 +01:00
Eugene Burmakin
a81b6ef723 Update devise to 4.9.3 and links to work with Turbo 2024-03-15 22:24:23 +01:00
Eugene Burmakin
fb83c8280c Add a GitHub Actions workflow for Ruby on Rails 2024-03-09 23:52:46 +01:00
Eugene Burmakin
359795672b Add config/database.yml.github-actions 2024-03-09 23:50:00 +01:00
Eugene Burmakin
887b84bb65 Add flashes with StumulusJS 2024-01-03 12:13:00 +01:00
Eugene Burmakin
c4e00dcf8b Add import-maps and turbo with some devise views 2023-10-21 12:52:50 +02:00
Eugene Burmakin
682a388f0e Update to Rails 7.1.1 2023-10-21 12:43:31 +02:00
Eugene Burmakin
6f791401de Add strong_migrations gem 2023-02-03 15:42:56 +01:00
Eugene Burmakin
9bfc268109 Extract some useful code from January of 2023 app 2023-02-01 14:30:09 +01:00
Eugene Burmakin
0722e2d991 Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00