Coder Social home page Coder Social logo

python-peloton-tracker's People

Contributors

jshively37 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

python-peloton-tracker's Issues

Retrieve Ride Specific Information

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.

Graph total effort

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.

GitHub Action

We want a github action that will ensure code is passing linting standards.

Refactor to use requests session

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.

Parse workout data

Parse workout data looking for specific workout type and return the activity from that workout:
miles
calories
time
total output

Clean up URI request

Add error handling and investigate the json() sprawl that exists in the make_request and functions that call make_request.

Graph workout progress

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.

filter workout data on time

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.

Find all cycling personal best

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.

Dockerfile

We would like to have a Docker file that builds all the dependancies for local development/execution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.