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
- Create a virtual environment by running the code below
# virtualenv venv - Activate the virtual environment using the code below
# source venv/bin/activate - Open the first terminal window and run mosquitto server using the command below
# mosquitto -v - 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
# python safety_subscriber.py - 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
# python wearable_device.py - Go back to the second terminal (safety_subscriber terminal) and observe that all the published messages are being recieved