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).
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.
I added a term interface to quickly run the script and have the result. To use it, simply lauch :
python parser.py
Under the hood is compatible python3.7.
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--
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
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 !
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
python shtrapy
Will produce the term graphs
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).
This project is licensed under the MIT License - see the LICENSE.md file for details
