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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file strava-gear-0.1.0a1.tar.gz.

File metadata

  • Download URL: strava-gear-0.1.0a1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7

File hashes

Hashes for strava-gear-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 4284a3d76f815c133d9700210c0c7ec05562f5f6c114d950391cb1c86942208d
MD5 589b23e06703ca01f34b5cabfa696e6e
BLAKE2b-256 33030d8976257248ddd7e15a922675f02b6cedb64085a80a1f32d05ddfbde73c

See more details on using hashes here.

File details

Details for the file strava_gear-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: strava_gear-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7

File hashes

Hashes for strava_gear-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 734ffa51218d0016fd790b5d0c87960e72127ff40be23dfa811ca6456637c6af
MD5 b3a2a5dc768f2b1f3e571d2e68a429e5
BLAKE2b-256 bf8ef98310b78a75d48495c6fb84cae46267cd2acd139f88bad09ff57bb572e6

See more details on using hashes here.

Supported by

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