Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Women-s-Security-MQTT-System-/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 lines (16 sloc)
1.31 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Women's Safety Wearable Device Using MQTT. | |
## Introduction | |
This device is to be worn by women and triggered whenever they sense danger or safety concerns. Based on the trigger message sent, the relevant authority is notified and is provided with the necessary information to take actions. | |
This device has been implemented using MQTT Protocol which means - Message Queuing Telemetry Transport | |
## How to Run the Code | |
1. Create a virtual environment by running the code below </br> | |
# virtualenv venv </br> | |
2. Activate the virtual environment using the code below </br> | |
# source venv/bin/activate </br> | |
3. Open the first terminal window and run mosquitto server using the command below </br> | |
# mosquitto -v </br> | |
4. Open the second terminal window, activate the virtual environment and install the dependency in the requirements.txt file, and then run the safety subscriber code using the command below </br> | |
# python safety_subscriber.py </br> | |
5. Open the third terminal window, activate the virtual environment and install the dependency in the requirements.txt file, and then run the wearable device code using the commnand below </br> | |
# python wearable_device.py </br> | |
6. Go back to the second terminal (safety_subscriber terminal) and observe that all the published messages are being recieved |