You could see the demo video here:
There are two parts to this project:
- Display
- Flask server that control the content for the html above.
- If you are runing the flast server on a raspberry pi, please see instruction below for chromedriver installation, see this link.
- Run the command prompt with admin privilege and install the Python package Poetry as follow:
pip install poetry
- Restart the command prompt and cd to the repo directory
- Install the required libraries by invoking poetry
poetry install
Environment variables for Flask
cp .env.copy .env
Start up script
chmod +x start_clock.sh
This step verifies the code style of the project and makes sure that common inconsistencies are avoided. You can easily check for common bugs and also improve the readability of the code.
poetry run flake8
Autoformatting:
poetry run black {directory or folder}
Testing verifies the functional requirements of the application. Pytest is used but this is configurable by the developer in case a different framework is needed.
poetry run pytest
Start the flask server with the following command:
./start_clock.sh
Countdown clock credit to this project.