Coder Social home page Coder Social logo

jglynn / segmund Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 93 KB

A crummy app that aggregates segment data from Strava to support enduro style events.

Home Page: https://segmund.mybluemix.net/

License: Apache License 2.0

Dockerfile 0.67% Python 26.87% JavaScript 57.70% HTML 11.45% CSS 2.45% Shell 0.86%
cloudant ibm-cloud strava

segmund's People

Contributors

jakepeyser avatar jglynn avatar jsloyer avatar kevin-ortega avatar opiethehokie avatar preetisawant avatar ptitzler avatar rocconnick avatar rvennam avatar rvennam987 avatar rxu1 avatar ryanjbaxter avatar zzdrt avatar

Stargazers

 avatar

Watchers

 avatar  avatar

segmund's Issues

Persist Segment Results

Strava API limitations will result in small window we'll have access to the data -- consider persisting the results instead.

Current rate limit:
Rate Limits (?) | 100 requests every 15 minutes, 1000 daily

Need to determine interval/event to fetch data from Strava. Could start off as manual and then evolve to a scheduled job.

Silence stravalib warnings

eg.
Unable to set attribute average_grade_adjusted_speed on entity <Split split=3 distance=707.60 m elapsed_time=0:08:02

Quiet down Stravalib, we don't care bout those attributes.

Strava Lib

Replace strava.py with common strava lib (even though most look old and unmanaged)
Improve refresh token usage

Filter rider results

Only include riders results who have completed The HOP segment
Only include rides posted for the given date

Use system token

Use the segmund system token instead of user john token for requests to Strava API that are not made on behalf of a user

Establish datamodel

Inspiration? segment-challenge-dml

Following that model and tweaking for our own use -- it could look something like the following (assuming we want to design something simple that also works for challenges other than the HOP)

  • Challenges (ie. The Overall HOP Challenge)
  • Stages (ie. 6/4 HOP)
  • Stage_Segments (ie. Segments for Given stage: Bren Hill, etc. plus a Mystery Segment)
  • Stage_Segment_Efforts (ie. User Segment Effort data)

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.