freezingsaddles / freezing-sync

Freezing Saddles activity retrieval and processing
Apache License 2.0
1 stars 1 forks source link

Freezing Saddles Sync

This component is part of the Freezing Saddles project. Its purpose is to

  1. receive workflow messages published from freezing-nq and perform Strava API calls to retrieve activities/streams/etc.
  2. Perform periodic (cron-like) double checks to make sure that we haven't missed any activity updates/deletes.
  3. Perform periodic updates for non-Strava data (e.g. weather data).

Deploying With Docker

See freezing-compose for guide to deploying this in production along with the related containers.

This component is designed to run as a container and should be configured with environment variables for:

Running Locally

If you are running this component locally for development/debugging, you may set these values in a configuration file, and specify the path to this file with the APP_SETTINGS environment variable. For example:

APP_SETTINGS=local.cfg freezing-sync

You can run individual sync commands too:

APP_SETTINGS=local.cfg python -m freezing.sync.cli.sync_weather --debug --limit 1

There are a few additional settings you may need (i.e. not to be default) when not running in Docker:

Legal

This software is a an Apache 2.0 Licensed, community-driven effort, and as such the contributions are owned by the individual contributors:

Copyright 2018 Hans Lillelid
Copyright 2020 Richard Bullington-McGuire
Copyright 2020 Merlin Hughes