Skip to content

ITK13201/smart-watch-iot-client

Repository files navigation

Smart Watch IoT Client

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

Setup

1. Install

pip install pipenv
pipenv install --dev

2. Create .env file from .env.example

  1. copy .env.example to .env
cp ./.env.example ./.env
  1. edit .env

3. (Optional) Create json file of ytmusicapi authorization

Refer to the official documentation of ytmusicapi and create an authentication file (ytm_auth_headers.json) for it.

Usage

Run

# development
pipenv run dev
# or
# production (run as daemon)
pipenv run start

Enter the virtual environment

pipenv shell

Tracking and Format "*.py" file

pipenv run watch

Format changed "*.py" file

pipenv run format

Download musics from YouTube Music

pipenv run flask job download_musics --url <YouTube Music URL>

register music informations to AWS Server

pipenv run flask job register_music_informations

Test Usage

Search musics from YouTube Music

pipenv run flask job search_music_by_name --name <Music Title>

Play music from music path

pipenv run flask job play_music --path <Music Path>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published