LaBatata101 / oximeter-rest-api

REST Api for manipulating the sensor data received from the oximeter monitor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oximeter REST Api

Project made for my Microcontrollers class, the goal of this project is to collect the heartrate and oxygen saturation data using the ESP32 microcontroller and the MAX30100 sensor. The whole project is divided into 3 parts/repositories: the microcontroller firmware, the REST Api (this repository) for the data management and the Telegram bot for real time data visualization.

The API offers 5 routes to manipulate the data received from the sensor, you can check them by going to http://127.0.0.1:8000/docs#/ after running the project.

Dependencies

  • fastapi v0.78.0
  • SQLAlchemy v1.4.39
  • uvicorn v0.18.2
  • alembic v1.8.0
  • psycopg2-binary v2.9.3
  • PostgreSQL v14.3

Installing and running the project

Clone the project:

$ git clone https://github.com/LaBatata101/oximeter-rest-api
$ cd oximeter-rest-api/

Installing the dependencies using pip:

$ pip install -r requirements.txt

Or, using poetry:

$ poetry install

Running:

$ POSTGRES_USER=YOUR_DB_USER POSTGRES_PASSWORD=YOUR_DB_PASSWORD POSTGRES_SERVER=YOUR_DB_SERVER POSTGRES_DB=YOUR_DB_NAME uvicorn oximeter.main:app --reload

About

REST Api for manipulating the sensor data received from the oximeter monitor.

License:GNU General Public License v3.0


Languages

Language:Python 96.3%Language:Mako 3.3%Language:Procfile 0.4%