tetrabiodistributed / project-tetra-display

Dockerfile and python code for the raspberry pi display for use in Project Tetra.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ventilator Splitter Display

License: MIT testing badge

A system to take pressure and flow data from sensors on a ventilator splitter, calculate descriptive parameters based on these data like PEEP or Tidal Volume, and display them for medical professionals to monitor. This is for use against COVID-19.

To set up the display program for tests, first install the dependencies. You can skip the chromedriver steps if you don't plan on testing.

Linux

curl -sSL https://get.docker.com | sh
sudo apt install libatlas-base-dev python3-numpy
sudo ./chromedriverinstall.sh
./setup.sh

macOS

brew install chromedriver docker
./setup.sh

To run tests, activate the virtual environment and then run the test script.

. venv/bin/activate
./runtests.sh
deactivate

To run the display, run these commands.

docker build -t zmq_proxy:latest .
docker run --rm -p 8000:8000 zmq_proxy:latest

Then open http://localhost:8000 in a browser (Safari and Chrome both work well, Firefox does not). With this, you'll see a webpage which every second updates a table with the current state of the descriptors for each patient (if this is run off of hardware, the data will be random numbers). The display ought to look like this.

display showing inspiratory pressure, tidal volume, PEEP, and PIP for 4 patients

About

Dockerfile and python code for the raspberry pi display for use in Project Tetra.

License:MIT License


Languages

Language:Python 89.7%Language:Gherkin 2.7%Language:HTML 2.0%Language:CSS 1.4%Language:Go 1.3%Language:Shell 1.2%Language:JavaScript 1.0%Language:Dockerfile 0.8%