jshively37 / python-peloton-tracker Goto Github PK
View Code? Open in Web Editor NEWPython code that interacts with the Peloton API.
License: MIT License
Python code that interacts with the Peloton API.
License: MIT License
We need to have a diagram that details the MVP workflow
Peloton starts at page 0 not page 1.
We would like to add an endpoint that will return specific information about the ride itself.
Endpoint: https://api.onepeloton.com/api/ride/{{ ride_id }}/details
ride_id is found in workout payload under ride['id'] (retrieve workout specs on local postman instance will give us the ride_id)
Goal would be return all ride information and then we can query on specific keys.
Some keys that could be useful:
difficulty: ride['difficulty_estimate']
ride description: ride['description']
ride title: ride['title']
instructor: ride['instructor']['name']
averages: ride['averages'] : dict containing average information.
This will be used in future to compare our output to a specific ride.
We would like branch protection to be turned on to protect main branch.
We need the ability to retrieve all workouts that the user has performed.
We would like to graph the total effort of workouts based on time.
Ignore anything less than 10 minutes because they are cool down, warm up, or abandoned rides.
Try block in create_session is issuing a post statement (duplicate code). This can be handled by calling the make_request function.
We want a github action that will ensure code is passing linting standards.
After working with the API it is going to be easier to refactor the code to use request session vs the traditional method.
We should create this as a class structure for ease.
We can pass the method to request using the Requests object: https://requests.readthedocs.io/en/latest/user/advanced/?highlight=requests.session#prepared-requests
This will eliminate duplicate code in the python client.py file.
Parse workout data looking for specific workout type and return the activity from that workout:
miles
calories
time
total output
Add error handling and investigate the json() sprawl that exists in the make_request and functions that call make_request.
We would like the ability to take the data returned from the API and graph total output over time for cycling workouts.
This should be grouped by time:
20 minute
30 minute
45 minute
etc.
Peloton only shows 20 items per page. We need the ability to retrieve all workouts.
We need the ability to pass a time range. This will be used to filter the peloton workout data that is returned from the API.
We would like the ability to find all of our cycling personal bests.
The field is in all workouts under data[workout][is_total_work_personal_record]. If this is true then query the workout to return the specific ride information.
def_workout_details is actually Peloton specific ride information such as instructor and music.
This should get changed to get_peloton_ride_details.
We need to protect the main branch.
We would like to have a Docker file that builds all the dependancies for local development/execution.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.