Just a study using flask for raspberry temperature monitoring
The idea is to use this project to study Flask and related technologies.
This is a summary of the project goals:
Basic structure
- Get the current temperature
- Create an object with the current temperature
- Get a list of previous temperatures
Deployment
- Adds deploy with docker
Database
- Adds a real database, PostgreSQL or similar
Enhance the list endpoint
- Accept a date range as parameter
- Adapt a list of previous temperatures with a default range to prevent querying all database
Add info about quantity of processes
- Adds 'quantity of processes at that moment' when temperature is measured
Add cached default endpoints
- Last hour
- Last 24 hours
- Last week
- Last month
- Average values for each one
Coding
python3 -m venv api_env
source api_env/bin/activate
pip install -r req.txt
python wsgi.py
Deploy
make measure
👤 Vinicius Kammradt
Give a ⭐️ if this project helped you!