Hardware Reference
In-Depth Information
Prepare for lift off
We will be using the Flask framework (
http://Flask.pocoo.org/
) to deploy the web
server on Raspberry Pi. We made use of the Flask framework in
Project 4
,
Christmas Light
Sequencer
. Just in case you skipped through
Project 4
,
Christmas Light Sequencer
, a Python
package manager such as
pip
or
easy_install
is required to install the Flask framework:
sudo apt-get install python-pip
Ater the installaion of the Python package manager is complete, the Flask framework may
be installed as follows:
sudo pip install Flask
Engage thrusters
1.
We will modify this basic Flask framewor
k example (
http://runnable.com/
UhLMQLffO1YSAADK/handle-a-post-request-in-Flask-
for-python
)
to take input from a browser:
In the frontend of the web server, let's create textboxes in the
form_
submit.html
file where we can enter the blood pressure, oxygen
saturation levels, and pulse data. The landing page will look like the
one shown in the following figure (when opened in a browser):
The form used to record vital health parameters