LDPS is a comprehensive health monitoring system that connects patients with caretakers to prevent lonely deaths and provide timely emergency assistance.
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.
📋 Prerequisites
- Node.js (v18 or newer)
- Expo CLI
- Android Studio (for Android development) or Xcode (for iOS development)
- Firebase account
- Twilio account (for emergency calls/SMS)
🔧 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
-
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 -
Set up Firebase:
- Create a Firebase project
- Enable Authentication, Realtime Database, and Firestore
- Add Android/iOS apps to your project
-
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

