Skip to main content

"Rule based tracker of gear and component wear primarily for Strava"

Project description

strava-gear

Rule based tracker of gear and component wear primarily for Strava

PyPI Python Version badge PyPI Version badge License badge Chat at Gitter

Simple, yet powerful, local and open-source gear tracker for Strava. Uses strava-offline to keep a local database of activities and then reads rules such as when a chain was replaced or that a certain hashtag means a different set of wheels was used, and computes the wear (distance ridden and time used) of all components.

Compared to Strava My Gear:

  • unlimited number of components
  • tracks wear of components swapped from one bike to another, or taken off temporarily
  • hashtags for temporary component changes (race wheels, bikepacking bags, …)
  • easy and reversible editing of maintenance history (it's just YAML, and you can put it under version control)

Example

aliases:
  # optional, uses bike names from Strava by default
  city: "b123456"
  gravel: "b234567"
  road: "b345678"

components:
  # frames
  "Specialized Tarmac":                  # name same as id
  agang_sin_city: "Agang Sin City 2010"  # name specified
  specialized_diverge:                   # name specified as a property
    name: "Specialized Diverge Comp Carbon 2015"
    kms: 2000    # usage not tracked in the data (2nd hand components)
    hours: 100

  # tyres
  g_one_1: "Schwalbe G-One 35-622"
  g_one_2: "Schwalbe G-One 35-622"

rules:
- since: 2010-01-01
  city:
    frame: agang_sin_city
    cranks: alfine_cranks
    derailleur_rear: deore_rd
  '#graveldiverge':
    tyre_front: g_one_1

# since optional, defaults to epoch
# since default to epoch

Donations (♥ = €)

If you like this tool and wish to support its development and maintenance, please consider a small donation or recurrent support through GitHub Sponsors.

By donating, you'll also support the development of my other projects. You might like these:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strava-gear-0.1.0a1.tar.gz (13.5 kB view hashes)

Uploaded Source

Built Distribution

strava_gear-0.1.0a1-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page