Giter Site home page Giter Site logo

alessandroaime / stravasufferscore Goto Github PK

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

Strava Suffer Score app for Suunto watches and reverse engineering of the Strava algorithm.

Home Page: https://bit.do/stravasufferscore

License: MIT License

suunto strava movescount

stravasufferscore's Introduction

Strava Suffer Score

License: MIT

Decoding the Algorithm

Few months ago I purchased a Suunto Ambit3 Peak after four years, and thousands of kilometres, with my faithful Polar RC3. The fact anyone can build small apps for this device is one of the main reasons that made me opt for it instead of its competitors.

Being a big fan of Strava I had the idea of "reverse engineering" the Strava Suffer Score algorithm to make it an app for all the Suunto users out there.

At the end these are the results:

  • Z1: 25 point/hour
  • Z2: 60 point/hour
  • Z3: 115 point/hour
  • Z4: 250 point/hour
  • Z5: 300 point/hour

Making of the Suunto App

Here’s the final code from the Movescount App Zone editor:

RESULT = SCORE;
if(SUUNTO_HR >= SUUNTO_USER_REST_HR && SUUNTO_HR <= 60*SUUNTO_USER_MAX_HR/100) {
  SCORE = SCORE + 25/3600;
} else if(SUUNTO_HR > 60*SUUNTO_USER_MAX_HR/100 && SUUNTO_HR <= 70*SUUNTO_USER_MAX_HR/100) {
  SCORE = SCORE + 60/3600;
} else if(SUUNTO_HR > 70*SUUNTO_USER_MAX_HR/100 && SUUNTO_HR <= 80*SUUNTO_USER_MAX_HR/100) {
  SCORE = SCORE + 115/3600;
} else if(SUUNTO_HR > 80*SUUNTO_USER_MAX_HR/100 && SUUNTO_HR < 90*SUUNTO_USER_MAX_HR/100) {
  SCORE = SCORE + 250/3600;
} else {
  SCORE = SCORE + 300/3600;
}

A list of case would have been better, unfortunately the available syntax is really limited.

Movescount doesn't let you edit the content of your app when this has been downloaded by more then one user, so the executable code won't look as "clean" as the one above.

stravasufferscore's People

Contributors

alessandroaime avatar

Stargazers

 avatar

Watchers

 avatar

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.