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.
- AWS server (https://github.com/ITK13201/smart-watch-iot-server)
- (This repository) 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)
pip install pipenv
pipenv install --dev
- copy .env.example to .env
cp ./.env.example ./.env
- edit .env
Refer to the official documentation of ytmusicapi and create an authentication file (ytm_auth_headers.json
) for it.
# development
pipenv run dev
# or
# production (run as daemon)
pipenv run start
pipenv shell
pipenv run watch
pipenv run format
pipenv run flask job download_musics --url <YouTube Music URL>
register music informations to AWS Server
pipenv run flask job register_music_informations
pipenv run flask job search_music_by_name --name <Music Title>
pipenv run flask job play_music --path <Music Path>