Integrations
You can automatically sync trails to wanderer at regular intervals using the third-party integration feature. Currently, we support two providers: strava and komoot.
It is important to note that synchronization only works from the provider to wanderer and not the other way around. Additionally, if a trail has already been synced to wanderer, subsequent changes made in the provider will not be transferred unless the trail is deleted in wanderer.
Prerequisites
wanderer encrypts the credentials required to log in to either provider. To enable this encryption, you must create an encryption key and provide it via the POCKETBASE_ENCRYPTION_KEY
environment variable to the wanderer-db
container. To generate a new encryption key, run the following command:
openssl rand -hex 16# Example output: ce7f0ddb97100c42e6409a8537c11e23
Once you have set the encryption key, restart the wanderer-db
container and navigate to /settings/integrations
.
strava Integration
Creating an App in strava
Before integrating strava with wanderer, you need to create an API application in strava. Visit strava’s API settings and follow the steps to create a new API application. Your setup should resemble the following:
Setting Up the Integration
- Copy the Client ID and Client Secret.
- Go to the integrations page in wanderer’s settings.
- Click the settings button for the strava integration.
- Enter your Client ID and Client Secret.
- Choose whether you want to sync routes, activities, or both.
- Save the settings and toggle the integration on.
- You will be redirected to strava’s authorization page. Keep all checkboxes selected and click Authorize.
- You will then be redirected back to wanderer. The strava integration is now active.
komoot Integration
The komoot integration requires only your komoot username and password:
- Open the komoot settings from the integrations menu.
- Enter your komoot credentials.
- Save the settings.
- Toggle the integration on. It will become active immediately.
Your planned and completed trails will now sync with wanderer.
Sync Interval
By default, trails are synced every night at 02:00 AM. You can modify this schedule using the POCKETBASE_CRON_SYNC_SCHEDULE
environment variable.