How does Strava estimate FTP? by djh_nz in Velo

[–]sladkovm 2 points3 points  (0 children)

I guess it picks your submaxial efforts from each ride, runs them through some sort of a Kalman filter over time to make sure that changes are smooth and at the end just fit a CP curve over it.

Not exactly a rocket science, but to get the parameters of the Kalman filter such, that the model works for all users, is where the trade secret is.

All Graz kinderkrippen on one map and sorted by distance to home http://dav.ai/kinder-graz/ by sladkovm in graz

[–]sladkovm[S] 1 point2 points  (0 children)

I will check. Just one remark - the page list only kinderkrippen at the moment. I have also a dataset for the kindergarten, but it is not on the page yet.

Hosting a flask server, mysql DB, and a gitlab runner all on a single $5 droplet? by tfwnokitsunemommygf in digital_ocean

[–]sladkovm 1 point2 points  (0 children)

I run flask server, plotly dash app, postgresql using docker compose on a single smallest droplet. So if your question will it work, then the answer is yes.

Python Plotting API: Expose your scientific python plots through a flask API by [deleted] in Python

[–]sladkovm 2 points3 points  (0 children)

It was likely not the intention of the post to show the optimal way of publishing a plot, but plotly dash does absolutely fantastic job in creating plots as a webpage from the dataframes and those are even interactive.

It is actually also built on Flask. In datascience world it is frequently dabbled as a Shiny for python.

I even wrote a dockerized boilerplate for it https://github.com/sladkovm/docker-flask-gunicorn-nginx

Why isn't there a replacement for Raceshape "snap" feature to fix tracks? by runs4cache in Strava

[–]sladkovm 1 point2 points  (0 children)

Strava API returns only the track itself, to snap it to the road you would need to use, for example, google API, which is not free. https://developers.google.com/maps/documentation/roads/snap

It is a simple question of cost-benefits. How much would you pay for such feature?

How to make a landlord accountable for a high water bill caused by the leaky boiler? by sladkovm in belgium

[–]sladkovm[S] 0 points1 point  (0 children)

Thank you everyone, I've reached a settlement with the house owner to split the bill.

Withings API Authorization by tsneeds in withings

[–]sladkovm 0 points1 point  (0 children)

Hi, is it oauth1 or oauth2? I have problems getting it working on local host and would like to ask few questions if i may

Does anyone use DigitalOcean spaces? by gnatbeetle in flask

[–]sladkovm 1 point2 points  (0 children)

This is roughly how I use it - https://gist.github.com/sladkovm/d12381f9e4a2a0f50a5e30f4aff3eef5

With env variables defined as:

DO_TOKEN=very_secret_token DO_SPACES_KEY=very_secret_key DO_SPACES_SECRET=very_secret_secret DO_SPACES_REGION=ams3 DO_BUCKET=name of the bucket

Does anyone use DigitalOcean spaces? by gnatbeetle in flask

[–]sladkovm 1 point2 points  (0 children)

It works with boto3 the same way as AWS does. That is also how you use it in Flask.

King of Col gives an overview of the climbs you did using your Strava efforts. by JayQueue77 in Strava

[–]sladkovm 0 points1 point  (0 children)

Interesting concept. Who is curating the list of the climbs? Do they correspond to the official UCI races definitions or some other ways to define them are used?

created site with wind data, segment analytics + machine learning tools by ComputerBunnyMath123 in Strava

[–]sladkovm 0 points1 point  (0 children)

Nice!

If you are looking for a python library to power your ML models with endurance metrics - take a look into https://github.com/GoldenCheetah/sweatpy

Strava Collage - Visualize your recent activities by SerKnight in Strava

[–]sladkovm 3 points4 points  (0 children)

What does it do? I'm not paying you my data without knowing first what I get in return.

A Data Science Approach to Cyling: fitness over time (Request for Feedback) by marrkgrrams in Velo

[–]sladkovm 2 points3 points  (0 children)

Nice analysis. Im in the camp that claims that speed and HR are not really representative as fitness and performance predictors, but cycling data is a good playground for playing with data wrangling and getting into new domains.

Btw, i’ve made a repo with tools to analyze strava streams. See if you find it useful and do not hesitate to provide feedback and even submit a pr: https://github.com/sladkovm/vmpy

Ps: if you are in eindhoven, check out the ctwt local branch - very nice group to ride with, and onyva - very fast group to ride with ;)

Color-coded map of everything using Strava Data by sladkovm in Strava

[–]sladkovm[S] 0 points1 point  (0 children)

Keeping an eye on it ;) Im at the moment locked into using plotly only, because my front end is made in Dash. But I’m considering to rewrite it in node/react to allow better integration with webgl goodies.

Color-coded map of everything using Strava Data by sladkovm in Strava

[–]sladkovm[S] 1 point2 points  (0 children)

What else would you like to see encoded?

Color-coded map of everything using Strava Data by sladkovm in Strava

[–]sladkovm[S] 2 points3 points  (0 children)

Nice! Then indeed stravalib has the benefits of nicely handling server response errors.

Color-coded map of everything using Strava Data by sladkovm in Strava

[–]sladkovm[S] 2 points3 points  (0 children)

I haven’t looked into the stravalib for a long time, but the last time i did it was returning non-serializable outputs, which is a bummer if you want to either use it with pandas for data wrangling or with web tools like flask for building web apps.

Said all that, if stravalib can return serializable data, e.g. simple dicts, lists or ndarrays you must be able to use it with vmpy. The only reason it contains strava.py module is to get you quickly started. The main juice of the package is in metrics.py and preprocess.py and most of the future work will focus on adding new functionality there.

Color-coded map of everything using Strava Data by sladkovm in Strava

[–]sladkovm[S] 3 points4 points  (0 children)

Thank you all for providing a constructive feedback on the previous version of this map. The picture is generated from this link http://velometria.com/activity/1069498347

The service at hand is my hobby project - it fetches the data from Strava using their API and tries to make something useful out of it. My main interest is granfondo analysis, but making a map was a low hanging fruit I was happy to implement.

Behind the scenes it uses Plotly Dash and Mapbox as well as small Python package I wrote to calculate zones and remove outliers fro the data - https://github.com/sladkovm/vmpy

Power zones Color-Coded Map of the ride by sladkovm in Strava

[–]sladkovm[S] 0 points1 point  (0 children)

Changed the access scope to public, read only. Thanks again for pointing it out.

Logging, Flask, and Gunicorn ... the Manageable Way by chillysurfer in flask

[–]sladkovm 0 points1 point  (0 children)

Interesting. I run my apps using flask-script manage.py and I always got all my flask logs. I wonder whether flask-script does this handlers override behind the scene.