Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time

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