manhtai / stramate

A self-hosted data analyzer for your activities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StraMate

A self-hosted data analyzer for your Strava activities

Features

  • Activities heat map
  • Fitness & fatigue performance chart
  • Heart rate zones chart
  • Interactive 3D route map
  • Athlete RSS feed

More about performance chart: https://github.com/manhtai/stramate/wiki/Training-load:-Fitness-&-Fatigue

Notice

You should host it yourself, don't give your data to arbitrary people on the internet.

Demo

Heat

Training

Local setup

  1. Install NodeJS and Python Poetry first

  2. Create .env file in the project root

# Strava sync
STRAVA_CLIENT_ID=xxxxx
STRAVA_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# Activity map
MAPBOX_ACCESS_TOKEN=pk.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# Production mode
ENV=production

# Disable new registration
DISABLE_REGISTRATION=true
  1. Install dependencies and start server
poetry install
poetry run python manage.py tailwind install
poetry run python manage.py migrate
poetry run honcho start

Deployment

See deploy.sh for instruction on Ubuntu.

About

A self-hosted data analyzer for your activities


Languages

Language:Python 50.5%Language:HTML 42.6%Language:JavaScript 3.8%Language:CSS 2.5%Language:Shell 0.6%