-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where do we use df_samples? #9
Comments
The samples are what is used for everything really... The entire PMC (calculating stress scores) and performance dashboard are based off of that data. It may be better for us to just work some logic into the code that is mindful of the strava api limitations. Could you pull the latest commit and run a truncate all with your debug log enabled? I would like to see where you are getting errors from the strava side, and then can work in some rest timers to avoid hitting the API limits should they be needed. I'm using the stravalib library which should have some rate-limit detection built in: https://pythonhosted.org/stravalib/_modules/stravalib/exc.html#RateLimitExceeded I've also just worked in some caching for Peloton and Stryd as to not overload their APIs, so maybe we could do something similar for strava as well Here's an example of one workout on the performance dashboard: |
I fully agree with this. I did log all the API calls yesterday while debugging. After hitting 99 API calls, most of them due to getting the streams (streams = get_strava_client().get_activity_streams(self.id, types=types)), Unfortunately I cant remember seeing anything special in debug as nor in the console (sorry cant reproduce the issue atm as I cant build the app since the latest commits, I raised another issue). No particular exception raised/displayed. I logged into the Strava portal to realize that I reached the API call rate limit. I'll think of ways we can get the API to run as per the limitations and keeping track of the status of the import. |
I want to import all my strava data into the tool (1500+ activities since 2007) so I'm trying to import a csv extract from http://flink.run
In the datapull.refresh_database function, I replace the strava API call:
By this snippet:
Now the problem is downstream, the df_samples make an API call to get the streams of activity. I'm still not clear of what these df_samples are used for. Can someone post a screenshot of where they are used in the UI?
I'm trying to think of ways I can import archive data without blowing up the API calls rate limit (100 per 15min). What am I loosing if I don't have any df_samples in the tool? What are they used for in terms of KPIs?
I believe the strength of any charting tool resides in the ability to draw models on past data.
The text was updated successfully, but these errors were encountered: