A Garmin Connect IQ application that monitors your body battery level and sends alerts when it drops below a configurable threshold.
Body Battery Alert is a background-enabled watch app that continuously monitors your Garmin device's body battery level and provides notifications when your energy levels are running low. This helps you make informed decisions about rest, activity, and energy management throughout your day.
- Continuous Monitoring: Runs in the background and checks body battery levels every 5 minutes
- Customizable Threshold: Set your preferred alert threshold (default: 20%)
- Smart Notifications: Only alerts when battery drops below threshold (prevents spam)
- Visual Display: Shows current body battery level with color-coded status
- Settings Menu: Toggle notifications on/off and adjust alert threshold
- Last Update Tracking: Displays when the battery level was last checked
- Compile the app for your target device (Instructions below)
- Attach your target device via USB to your computer (MTP mode).
- Transfer the built binary
body_battery_alert.prgfile toGARMIN/Apps/folder - Disconnect the device from USB
- Launch the app from your device's app menu
- Open the Body Battery Alert app on your device
- The app will start monitoring your body battery in the background
- Default alert threshold is set to 20%
- From the main app screen, press the menu button
- Select "Toggle Notifications" to enable/disable alerts
- Select "Set Alert Threshold" to customize when you receive notifications
- Green: Body battery is healthy (above threshold + 20%)
- Yellow: Body battery is getting low (within 20% of threshold)
- Red: Body battery is below your set threshold
- "LOW BATTERY!" message: Appears when below threshold
The app uses Garmin's SensorHistory API to access your device's body battery data. It runs as a background service that:
- Checks your body battery level every 5 minutes
- Compares the current level to your configured threshold
- Sends a notification if the battery drops below the threshold
- Stores the last known values for display in the app
- Background: Allows the app to run continuously in the background
- SensorHistory: Provides access to body battery data
The app registers for temporal events every 300 seconds (5 minutes) to check body battery levels without draining your device's battery.
This is a Garmin Connect IQ application written in Monkey C.
- Install the Connect IQ SDK (SDK 8.2.2) Tested
- Use Visual Studio Code with the Garmin Monkey C extension
- Build using "Monkey C: Build for Device" command
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit issues or pull requests.