Skip to content

ITK13201/smart-watch-iot-server

Repository files navigation

Smart Watch IoT Server

This is an application that acquires your heart rate with a smartwatch, and recommends and plays back the appropriate BPM according to your heart rate.

The colored servers in the figure below are constructed. The URLs of each repository are as follows.

system_chart

Install

  • docker
  • docker-compose

Setup

1. Clone

git clone git@github.com:ITK13201/smart-watch-iot-server.git
cd smart-watch-iot-server

2. Init environments

./scripts/environment/init.sh

3. Obtain the Fitbit token

  1. create a new application at https://dev.fitbit.com/apps/new and set up OAuth 2.0 authentication.
  2. refer to https://dev.fitbit.com/build/reference/web-api/developer-guide/authorization/ to obtain an access token.
  3. Add the obtained access token (which should be returned in json format) to the ./docker/backend/conf/fitbit.tok.

4. Build

docker-compose build

Usage

Start container

docker-compose up -d

Stop container

docker-compose down

Logging

docker-compose logs -f

Migrate

docker-compose exec app python manage.py migrate

Create superuser

docker-compose exec app python manage.py createsuperuser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks