Skip to content

CassandraDacha/Automation

Repository files navigation

Patient Ward Automation System

Documentation Status Updates

Patient ward automation system. This automation system will allow patients to be able to control the temperature, lighting, TV settings and the door of the ward they are in using a user-friendly web application on their phone. The hardware used is a combination of Raspberry Pi ,a Relay Module, a light bulb, A motor to represent the door and a fan.

Features

The following features were used for this project. I have attached the links to the specific devices

Installation

Read the installation process from the Documentation link above.

Circuit Diagram

Once you have all these devices, you can connect them using the diagram above. After completing the connections, you need to download the requirements.txt file from the Automation folder and install the requirements using the following command.

$ pip3 install -r requirements.txt

Note that this command is dependant on the python version. The Python version used in this project was Python 3.8.5.

For the react web app download all the files to your computer In your terminal, cd into the directory you just created and install all dependencies by using the following command

$ npm install

To look at the code, just open up the project in your favorite code editor!

Testing

To test the API use the following command.

$ python3 Automation.py

To test the react web app use the following command.

$ npm start

Video Demonstration https://uctcloud-my.sharepoint.com/:v:/g/personal/dchcas001_myuct_ac_za/EaVf2bP-15pAoqdlKCTMAiUBHkA-79wKIWnbDDZdl7czfg?e=DtdMRl

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.