Vitality - Shows points during an exercise
· v0.1
About
This data field is for a very specific use. What it does is simply is simply showing 0-10 points depending on the conditions presented below:
10 points when:
* Average Heart Rate is over 134BPM and Elapsed Time is over 32 minutes.
* Average Heart Rate is over 116BPM and Elapsed Time is over 62 minutes.
* Steps count is over 12,500
5 points when:
* Steps count is between 10050 and 12550 steps.
* Average Heart Rate is over 116BPM and Elapsed Time is over 32 minutes.
3 points when:
* Steps count is between 7050 and 10050 steps.
Otherwise the data field shows zero.
The reason for 134BPM is the following equation: (220 - 30) * 0.7 + 1. That is 70% of the maximum heart rate (and just in case plus 1) for a 30 years old person.
The reason for 116BPM is the following equation: (220 - 30) * 0.6 + 1. That is 60% of the maximum heart rate (and just in case plus 1) for a 30 years old person.
Step counts come from points given by Vitality programme plus 50 steps (just to make sure that it is a bit over the 7,000/10,000/12,500 limit).
DISCLAIMER: This data field is generally called a vitality data field. This has no official connection what so ever to Vitality Health. Even though the previous rules mimick their points system, this data field is delivered on 'as-is' basis and has no guarantee or linkage to how they give points. I simply made this data field to make it easier to see how many points you could potentially be earning. This is just a real-time data field and the vitality result will not be stored anywhere.
DEVELOPERS: The code for this data field is available at BitBucket: https://bitbucket.org/ohtonen/vitalitydatafield/