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.
- (This repository) AWS server (https://github.com/ITK13201/smart-watch-iot-server)
- Raspberry Pi IoT Server (https://github.com/ITK13201/smart-watch-iot-client)
- Raspberry Pi Discord Server (https://github.com/ITK13201/smart-watch-iot-interactive-server)
- docker
- docker-compose
git clone [email protected]:ITK13201/smart-watch-iot-server.git
cd smart-watch-iot-server
./scripts/environment/init.sh
- create a new application at https://dev.fitbit.com/apps/new and set up OAuth 2.0 authentication.
- refer to https://dev.fitbit.com/build/reference/web-api/developer-guide/authorization/ to obtain an access token.
- Add the obtained access token (which should be returned in json format) to the
./docker/backend/conf/fitbit.tok
.
docker-compose build
docker-compose up -d
docker-compose down
docker-compose logs -f
docker-compose exec app python manage.py migrate
docker-compose exec app python manage.py createsuperuser