Skip to content

S-tej/HGS

Repository files navigation

🏥 Lonely Death Prevention System (LDPS)

React Native Expo Firebase Status

LDPS is a comprehensive health monitoring system that connects patients with caretakers to prevent lonely deaths and provide timely emergency assistance.

📱 Screenshots (Click to expand)
Dashboard Vitals Caretaker View

✨ Interactive Features

For Patients For Caretakers Setup Guide

🤔 What is LDPS?

LDPS connects to ESP32-based health monitors to track vital signs including:

  • ❤️ Heart rate and ECG
  • 🩸 Blood pressure
  • 🌡️ Body temperature
  • 💧 Oxygen saturation

When critical health events are detected, the system automatically alerts caretakers and emergency contacts through calls and SMS.

🏃‍♂️ Quick Start

📋 Prerequisites
🔧 Installation
# Clone the repository
git clone https://github.com/yourusername/LDPS.git
cd LDPS

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your configuration
⚙️ Configuration
  1. Set up your environment variables in .env:

    ESP_IP=http://your-esp32-ip-address
    FIREBASE_API_KEY=your_api_key
    FIREBASE_AUTH_DOMAIN=your_project_id.firebaseapp.com
    FIREBASE_PROJECT_ID=your_project_id
    FIREBASE_STORAGE_BUCKET=your_project_id.firebasestorage.app
    FIREBASE_MESSAGING_SENDER_ID=your_messaging_sender_id
    FIREBASE_APP_ID=your_app_id
    FIREBASE_MEASUREMENT_ID=your_measurement_id
    TWILIO_ACCOUNT_SID=your_twilio_sid
    TWILIO_AUTH_TOKEN=your_twilio_auth_token
    TWILIO_FLOW_SID=your_twilio_flow_sid
    TWILIO_PHONE_NUMBER=your_twilio_phone
    
  2. Set up Firebase:

    • Create a Firebase project
    • Enable Authentication, Realtime Database, and Firestore
    • Add Android/iOS apps to your project
  3. Set up Twilio:

    • Create a Twilio account
    • Get an account SID and auth token
    • Set up a Twilio Flow for emergency calls
▶️ Running the App
# Start the development server with Expo
npm start

# Run on Android
npm run android

# Run on iOS
npm run ios

# Build APK
npx eas build -p android --profile production

💻 For Developers

📁 Project Structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published