- Github repo: Automation
- Free software: MIT license
- Documentation: https://wardautomation.readthedocs.io.
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.
The following features were used for this project. I have attached the links to the specific devices
- RPI Zero https://za.rs-online.com/web/p/raspberry-pi/1812039/
- Relay Module https://za.rs-online.com/web/p/power-motor-robotics-development-tools/1845099//
- Light Bulb Any light bulb
- Axial fan https://za.rs-online.com/web/p/axial-fans/6688808/
- DC motor https://za.rs-online.com/web/p/dc-motors/2389715/
Read the installation process from the Documentation link above.
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!
To test the API use the following command.
$ python3 Automation.py
To test the react web app use the following command.
$ npm startVideo Demonstration https://uctcloud-my.sharepoint.com/:v:/g/personal/dchcas001_myuct_ac_za/EaVf2bP-15pAoqdlKCTMAiUBHkA-79wKIWnbDDZdl7czfg?e=DtdMRl
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.