2024-03-15 17:28:54 -04:00
# Dawarich
2022-04-06 14:46:10 -04:00
2024-05-05 06:19:15 -04:00
[Discord ](https://discord.gg/pHsBjpt5J8 ) | [Support the project ](https://ko-fi.com/freika )
2024-03-28 10:11:59 -04:00
Dawarich is a self-hosted web application to replace Google Timeline (aka Google Location History). It allows you to import your location history from Google Maps Timeline and Owntracks, view it on a map and see some statistics, such as the number of countries and cities visited, and distance traveled.
2022-04-06 14:46:10 -04:00
2024-04-05 16:20:12 -04:00
You can find changelog [here ](CHANGELOG.md ).
2024-03-24 15:33:49 -04:00
## Usage
2024-03-28 10:11:59 -04:00
To track your location, install the [Owntracks app ](https://owntracks.org/booklet/guide/apps/ ) on your phone and configure it to send location updates to your Dawarich instance. Currently, the app only supports [HTTP mode ](https://owntracks.org/booklet/tech/http/ ). The url to send the location updates to is `http://<your-dawarich-instance>/api/v1/points` .
2024-03-24 15:33:49 -04:00
To import your Google Maps Timeline data, download your location history from [Google Takeout ](https://takeout.google.com/ ) and upload it to Dawarich.
2024-05-18 06:51:25 -04:00
- [How to import Google Location History to Dawarich ](https://github.com/Freika/dawarich/wiki/How-to-import-your-Google-Takeout-data )
2024-03-15 18:27:31 -04:00
## Features
2022-04-06 14:46:10 -04:00
2024-04-05 16:20:12 -04:00
### Location Tracking
You can track your location using the Owntracks app.
2024-03-15 18:27:31 -04:00
### Location history
2022-04-06 14:46:10 -04:00
2024-03-15 18:27:31 -04:00
You can view your location history on a map.
2022-04-06 14:46:10 -04:00
2024-03-28 10:11:59 -04:00
### Statistics
You can see the number of countries and cities visited, the distance traveled, and the time spent in each country, splitted by years and months.
### Import
You can import your Google Maps Timeline data into Dawarich as well as Owntracks data.
2022-04-06 14:46:10 -04:00
## How to start the app locally
2024-03-24 15:33:49 -04:00
`docker-compose up` to start the app. The app will be available at `http://localhost:3000` .
2022-04-06 14:46:10 -04:00
Press `Ctrl+C` to stop the app.
2024-03-24 15:33:49 -04:00
## How to deploy the app
2023-05-28 06:52:13 -04:00
2024-03-24 15:33:49 -04:00
Copy the contents of the `docker-compose.yml` file to your server and run `docker-compose up` .
2024-03-15 18:27:31 -04:00
2024-03-23 15:40:05 -04:00
## Environment variables
2024-04-05 16:20:12 -04:00
```
2024-05-05 06:03:25 -04:00
MIN_MINUTES_SPENT_IN_CITY — minimum minutes between two points to consider them as visited the same city, e.g. `60`
2024-04-05 16:20:12 -04:00
MAP_CENTER — default map center, e.g. `55.7558,37.6176`
TIME_ZONE — time zone, e.g. `Europe/Berlin`
APPLICATION_HOST — host of the application, e.g. `localhost` or `dawarich.example.com`
```
2024-03-24 16:07:32 -04:00
## Screenshots



2024-04-07 19:14:18 -04:00
## Star History
As you could probably guess, I like statistics.
< a href = "https://star-history.com/#Freika/dawarich&Date" >
< picture >
< source media = "(prefers-color-scheme: dark)" srcset = "https://api.star-history.com/svg?repos=Freika/dawarich&type=Date&theme=dark" / >
< source media = "(prefers-color-scheme: light)" srcset = "https://api.star-history.com/svg?repos=Freika/dawarich&type=Date" / >
< img alt = "Star History Chart" src = "https://api.star-history.com/svg?repos=Freika/dawarich&type=Date" / >
< / picture >
< / a >