Coder Social home page Coder Social logo

sdk-exercise's Introduction

sdk-exercise

SDK example application which demonstrates the usage of the Exercise API added in Fitbit OS 3.0.

This app is also intended to be used as an example for building multi-screen applications, and is built using the excellent Ionic Views framework by gaperton.

There are 3 main screens (/app/views) in the application:

  • Select - The initial view which lets the user begin the exercise by pressing a button. It also initiates the Geolocation API as this can take a few moments to establish a location fix.

  • Exercise - This view automatically starts the exercise once the GPS location is established. Every second the activity stats are updated on screen, and the user can cycle through different stats by tapping the screen. The user may pause and resume the exercise, or pause then finish.

  • End - This final screen is displayed once the exercise has finished, and displays summary information about the completed session.

Screenshot

screenshot screenshot screenshot screenshot screenshot

sdk-exercise's People

Contributors

orviwan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdk-exercise's Issues

Improve heart rate reading to prevent crashes

In HRM subview body and heart rate sensors are used. The exercise object itself provides in stats (exercise.stats.heartRate.current) the current heart rate, so this data can be directly read from the exercise without explicitly starting of heart rate sensor.
In my more complex apps I had app crashes on Versa 2, because I started the sensors and the exercises. On simulator it is displayed that the heart rate sensors are running anyway, when an exercise is started.
A fix could be to pass the exercise to heart rate subview in order to read the needed data there.

Maps for custom exercises

Hi

Is is it possible that the summary for a gps-enabled custom exercise displays a map? I tested the skateboard app and there's no map on the summary, and I read on the forums that the Alpine Skiing app also doesn't show a map either. Is there any constraint on this? If it's possible, how can we achieve this?
I'm researching for a surf tracking app. Ideally, only the waves ridden would be plotted on the map.

Thanks in advance
Filipe

Custom exercise issue!

Hi!
I know this was reported YEARS ago, but the Exercise SDK still can't handle custom activities!
I'm currently developing an app for rock climbing, but the activity always shows as aerobics. Why is there still no fix after almost 5 years?
Please fix this issue for all SDK's!

Regards,
Miquest

Speed in end screen is always 0

The speed values in the end screen (end.js) is always 0, because an unknown value is used:

  • currently: exercise.stats.speedAvg
  • should be: exercise.stats.speed.average

Custom exercise name

When I use the Skateboard Exercise App everything works fine. The name oft the exercise is shown correctly and the map is shown correctly. As soon as I change to SUP or stand up paddling no app will be shown in the users exercise dashboard. A workaround is to put Cycling or run as exerciseType. But this will give a false name as output. As skateboarding is not defined as exerciseType here I was wondering if it could be possible to fix this issue. It worked in January but after an update it stopped working and I have a lot of confused users.

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.