yangineer / fitbit-hr-monitor

A simple Fitbit HR Monitor using the Companion to comunicate with a external service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fitbit-hr-monitor

A simple Fitbit HR Monitor using the Companion to comunicate with a external service.

Getting Started

Prerequisites

  • NodeJS: v8.0.0 or later
  • Fitbit Studio: v3.0.0 or later
  • Fitbit Dev Account: A Fitbit Developer Account to install the application into a device.
  • Fitbit Ionic: A Fitbit Ionic Device to compile the application.
  • A Internet Connection to provide the communication from device to server.

Installing

Server App

Run the dependencies install

npm i

Go to the index.js file and set the application port on app.listen(PORT, () => {}) function. (default is 3000).

After that, run the application with the commnand bellow:

npm run dev

Fitbit Ionic

Copy the content of the fitbit-app path and paste into a blank project using the Fitbit Studio. After that, go to the file companion/server.js and past the external service host instead of HOST constant value. The host should be using a HTTPS protocol. I recommend that you use the tool ngrok to generate a external HTTPS host from your local server app.

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A simple Fitbit HR Monitor using the Companion to comunicate with a external service.

License:MIT License


Languages

Language:JavaScript 96.2%Language:CSS 3.8%