Skip to content
/ Shtrapy Public

Self-hosted, Strava-like features-less in python

License

Notifications You must be signed in to change notification settings

ThmsP/Shtrapy

Repository files navigation

STRAPY ⚠️ Wildly unstable 🚧

For cycling geek and self privacy lovers. This project is less usefull than the original -by far- but it should be useful to monitor the gpx tracks and stats of a few cyclists (there is no authentification).

Demo here

Update 21/01/2019

New arch for the project :

shtrapy.py -handler.py -graph.py

and they use commons tools in ... tools.py

I need to rewrite the wbs.py with the same approch.

Update 18/01/2019

I added a term interface to quickly run the script and have the result. To use it, simply lauch :

python parser.py

termgraph result

Under the hood is compatible python3.7.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. --In construction--

Prerequisites

Strapy is based on the following libraries :

Python :


gpxpy : https://github.com/tkrajina/gpxpy
mplleaflet : https://github.com/jwass/mplleaflet
pandas : https://github.com/pandas-dev/pandas
matplotlib : https://github.com/matplotlib/matplotlib
pygal (for now) : https://github.com/Kozea/pygal
termgraph : https://github.com/mkaz/termgraph

Html/CSS :

skeleton : https://github.com/dhg/Skeleton

Installing

Install the prerequisites. (pip install for all ...). You don't need Skeleton, a version is included in the repo.

Download this repo :

git clone https://github.com/ThmsP/strapy.git

There is a Pipfile.Lock included, to use it, install pipenv and run this command :

pipenv --python 3.7
pipenv install
pipenv shell 

And here you go, you can run parser.py !

Running the code

Use some of your gps or get them from Strava.

### Bulk export from Strava

Log in to Strava
Select "Settings" from the main drop-down menu at top right of the screen
Select "Download all your activities" from lower right of screen
Wait for an email to be sent
Click the link in email to download zipped folder containing activities
Unzip files

Please put your files in this arborescence, where name is hard coded in parser.py (to be improved).

Data/GPX_name

Running

New way (21/01/2019)

python shtrapy

Will produce the term graphs

Old way

python wbs.py test

test is mandatory but will evolve. And then go to :

http://localhost:8080/1

A page is generated for each users defined in parser.py (to be improved).

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Self-hosted, Strava-like features-less in python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •