Skip to content

boezzz/heartbeat-smart-glass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Heartbeat Smart Glass

A Flutter application that integrates with Frame smart glasses to automatically capture photos when your heart rate exceeds a configurable threshold. Perfect for capturing those high-intensity moments during workouts, exciting events, or any situation where your heart rate spikes.

🚀 Features

Smart Heart Rate Monitoring

  • Bluetooth Heart Rate Strap Support: Compatible with popular heart rate monitors (Garmin, Polar, Wahoo, etc.)
  • Real-time Heart Rate Display: Live BPM monitoring with data quality indicators
  • Configurable Threshold: Set custom heart rate thresholds (60-200 BPM)
  • Auto-capture: Automatically takes photos when heart rate exceeds threshold
  • Data Quality Monitoring: Track connection stability and data accuracy

Frame Smart Glass Integration

  • Seamless Connection: Auto-connects to Frame smart glasses
  • Manual & Auto Capture: Double-tap gesture or automatic heart rate triggered capture
  • Live Preview: Real-time display on Frame glasses
  • Battery Monitoring: Track Frame device battery status

Photo Management

  • Instant Gallery: View captured photos with metadata
  • Detailed Metadata: Timestamp, exposure settings, and capture context
  • Easy Sharing: Share photos with metadata via system share sheet
  • JPEG Output: High-quality image storage and sharing

📱 Screenshots

Note: Add screenshots of the app interface, Frame glasses, and heart rate monitoring in action

🛠️ Setup & Installation

Prerequisites

  • Flutter SDK (3.0.6 or higher)
  • Frame smart glasses
  • Bluetooth heart rate monitor strap
  • Android/iOS device with Bluetooth LE support

Installation Steps

  1. Clone the repository

    git clone https://github.com/yourusername/heartbeat-smart-glass.git
    cd heartbeat-smart-glass
  2. Install Flutter dependencies

    cd flutter_app
    flutter pub get
  3. Configure Frame SDK

  4. Run the application

    flutter run

📋 Dependencies

The app uses the following key dependencies:

  • simple_frame_app: ^7.1.0 - Frame smart glass SDK
  • flutter_blue_plus: ^1.35.5 - Bluetooth Low Energy communication
  • frame_msg: ^2.0.0 - Frame messaging protocol
  • share_plus: ^11.0.0 - System sharing capabilities
  • logging: ^1.3.0 - Logging framework
  • image: ^4.5.4 - Image processing

🔧 Configuration

Heart Rate Monitor Setup

  1. Put your heart rate strap in pairing mode

    • Turn on your Bluetooth heart rate monitor
    • Ensure it's in pairing/discoverable mode
  2. Connect through the app

    • Open the app and tap the heart icon in the top-right
    • Or use the Settings drawer → Heart Rate Settings → Connect Heart Rate Strap
    • Select your device from the list
  3. Configure threshold

    • Go to Settings → Heart Rate Settings → Configure Threshold
    • Set your desired BPM threshold (default: 100 BPM)
    • Enable monitoring to activate auto-capture

Frame Glasses Setup

  1. Pair your Frame glasses with your phone via Bluetooth
  2. Launch the app - it will automatically detect and connect to Frame
  3. Follow on-screen instructions for initial setup

🎯 Usage

Basic Operation

  1. Start the app - it will automatically connect to Frame glasses
  2. Connect heart rate monitor using the heart icon or settings
  3. Enable monitoring to activate automatic photo capture
  4. Set your threshold based on your target heart rate zone

Capture Methods

  • Automatic: Photos are captured when heart rate exceeds threshold
  • Manual: Use the camera button in the app
  • Gesture: Double-tap on Frame glasses

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

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

🙏 Acknowledgments

  • Frame team for the smart glasses SDK
  • Simple_frame_app by CitizenOneX

Note: This app requires physical hardware (Frame smart glasses and Bluetooth heart rate monitor) to function fully. Demo mode may be available for development purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published