Skip to content

yeswanth49/safelink

Repository files navigation

safeLINK is a web-based application designed to assist during emergency situations by providing an accessible way for strangers or bystanders to retrieve someone’s emergency contact information. This system leverages QR codes and NFC technology to bridge communication gaps during critical moments, potentially saving lives.


Use Case: Emergency Situations

The primary goal of safeLINK is to offer an efficient solution for accessing emergency details in situations such as:

  • Medical Emergencies: When a person is unconscious or unable to communicate, bystanders can scan the QR code or use the NFC tag to access emergency contact details and alert family members.
  • Accidents: During road accidents or similar events, safeLINK enables immediate access to vital contact information, facilitating timely support and assistance.
  • Lost Children or Pets: safeLINK can be used to provide emergency contact details for children in case they are lost or separated from their guardians. Similarly, QR codes or NFC tags can be attached to pets to help locate their owners if they go missing.

Implementation in Vehicles

The system integrates seamlessly with vehicles to ensure emergency details are always accessible. The generated QR code can be printed as a sticker and attached in designated areas such as:

  • Vehicle number plates
  • Windshields
  • Helmets

This ensures that essential information is readily available in high-risk scenarios, such as road accidents.


How It Works

1. QR Code Generator

  • Users can create a QR code containing their emergency details through a user-friendly website.
  • The QR code points to a secure backend that stores and manages their information.

2. NFC Tag Writer

  • Users can write emergency details to NFC tags, allowing for quicker access with compatible devices.

3. Dynamic Updates

  • Users can update their emergency contact details anytime without re-generating the QR code or rewriting the NFC tag.

Advantages

  • Immediate Access to Critical Information: Strangers can help connect with family members or emergency contacts quickly.
  • Ease of Use: QR codes can be scanned with any smartphone, and NFC tags work seamlessly with compatible devices.
  • Dynamic and Customizable: Users can edit their information as needed without needing to recreate the QR code or NFC tag.
  • Vehicle Integration: Placing the QR code on vehicles ensures the information is visible and accessible in high-risk scenarios like road accidents.
  • Versatility: Applicable for children and pets, ensuring their guardians or owners can be reached if they are lost or separated.

Challenges and Limitations

  1. Privacy Concerns:
    • Sensitive data may be accessed or misused if not properly secured.
  2. Internet Dependency:
    • Accessing updated details via QR code requires an active internet connection.
  3. Device Compatibility:
    • NFC functionality is limited to newer devices, and some users may lack compatible hardware.
  4. QR Code Wear and Tear:
    • Stickers may become damaged or unreadable over time and need regular maintenance.

Getting Started

Prerequisites

  • Python 3.7 or higher
  • pip (Python package manager)

Installation

  1. Clone the repository:

    git clone https://github.com/yeswanth49/safelink.git
    cd safelink
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install the dependencies:

    pip install -r requirements.txt

Running the Application

  1. Start the Flask server:

    python app.py
  2. Open your browser and navigate to http://127.0.0.1:5000.

Usage

  1. Enter the required details (e.g., name, phone number, blood group).
  2. Click "Generate QR Code."
  3. Scan the QR code or use an NFC-compatible device to access emergency details.

Folder Structure

safelink/
├── static/         # Static files (CSS, JS, images)
├── templates/      # HTML templates
├── app.py          # Main Flask application
├── requirements.txt # Python dependencies
└── README.md       # Project documentation

Contributing

Contributions are welcome! If you have suggestions for new features or improvements, please open an issue or submit a pull request.


License

This project is licensed under the MIT License. See the LICENSE file for details.


Contact

For questions or feedback, feel free to reach out: