Display Real-Time CGM Glucose Readings on Your Watch Face — 100% Local, Zero Cloud
English | 简体中文
Lightweight smartwatches such as the HUAWEI WATCH GT 5 Pro (Lite Wearable / HarmonyOS) do not allow third-party .hwt watch faces or background apps to pull live external CGM data directly over the network.
dialPlate solves this cleanly on-device without any cloud server: it captures real-time continuous glucose monitoring (CGM) readings on your Android phone, writes a single rolling, alarm-free event into the system calendar (e.g., 6.4→ +0.2), and lets your watch's native "Next Schedule" complication mirror the glucose value within seconds.
- 100% Local Zero-Cloud Closed Loop: Works completely offline — no personal server, VPS, or third-party cloud relay required.
- 4-in-1 Local Data Ingestion:
- CGM Notification Listener: Prefix-wildcard matching (
com.ottai.*,com.microtech.aidexx*), parses text &RemoteViews, supportsmmol/L,mg/dL, EN/ZH trend words, auto-inferred slope arrows, custom regex, and one-tap log sharing. - Juggluco Native Broadcast (
glucodata.Minute): Receives 1-minute BLE streams covering FreeStyle Libre 1/2/3, Sibionics GS1/GS3, Dexcom G7/ONE+, and AiDEX X/LinX. - xDrip+ / AAPS Local Broadcast (
BgEstimate): Receivescom.eveningoutpost.dexdrip.BgEstimate(mg/dLstrictly converted). - Embedded Loopback Nightscout Server: Built-in
http://127.0.0.1:17580(/api/v1/entries,entries/current.json,status.json) with automatic port-conflict detection and one-tap switch to17590.
- CGM Notification Listener: Prefix-wildcard matching (
- Decoupled Watch Span vs Disconnect Alert:
- Watch Display Span (
2–60 min, default 6 min for 5-min CGMs): Keeps a +1 min overlap over sensor cadence so watch sync jitter never flickers blank while matching the true data timestamp on the watch card. - Disconnect Alert Threshold (
5–180 min, default 15 min): Independent heartbeat tracking (lastSeenAtMs) prevents false disconnect alerts during steady glucose readings. - 1-Min Write Throttling: Automatically throttles calendar updates (
90s) for 1-minute streams without affecting disconnect detection.
- Watch Display Span (
- Split Keep-Alive & Multi-Brand Support: Low-importance silent keep-alive channel (hidable in one tap), auto-detection for 8 Android / HarmonyOS 4.x brands, and instant Auto / 中文 / English UI switching.
flowchart LR
CGM["CGM Official App (e.g. Ottai / AiDEX X)"] --> N["Notification Listener (Prefix Rules)"]
JG["Juggluco (tk.glucodata)"] --> JM["Broadcast (glucodata.Minute)"]
XD["xDrip+ / AAPS"] --> B["Broadcast (BgEstimate)"]
NSApp["Local Uploader"] --> NS["Loopback Nightscout (127.0.0.1:17580/17590)"]
N --> Pipe["GlucosePipeline (Dedupe, Slope Arrow, Throttle)"]
JM --> Pipe
B --> Pipe
NS --> Pipe
Pipe --> Cal["CalendarSyncManager (Cadence+1m Event, No Alarm)"]
Pipe --> Mon["StaleMonitorState (lastSeenAtMs -> 1-shot Alert)"]
Cal --> SysCal["Android System Calendar"]
SysCal --> Health["Huawei Health App"]
Health --> Watch["GT 5 Pro Watch Face (Next Schedule)"]
| CGM Brand / Hub | Android Package ID | Cadence | Official Notification Has Live Value? | Recommended Channel | Support Tier |
|---|---|---|---|---|---|
| Ottai (China) | com.ottai.tag (Pro: .professional) |
5 min | ✅ Verified (4.9 mmol/L →) |
Direct Notification | Tier A |
| Juggluco | tk.glucodata |
1 min | ✅ Native stream hub | glucodata.Minute Broadcast |
Tier A |
| xDrip+ / AAPS | com.eveningoutpost.dexdrip |
5 min | ✅ Native hub | BgEstimate Broadcast |
Tier A |
| Ottai Global / Syai X1 | com.ottai.seas / com.syai.tag |
5 min | 🟡 Needs sample | Direct Notification (com.ottai.* / com.syai.*) |
Tier B |
| MicroTech AiDEX X / LinX | com.microtech.aidexx* |
1 min (~2.3m) | 🟡 RemoteViews (no arrow) |
Direct Notification (auto-inferred arrow) or Juggluco | Tier B |
| Sibionics GS1 / GS3 | com.sisensing.* |
5 min (GS1 raw 1m) | ❌ Alerts only | Juggluco (glucodata.Minute) |
Tier C |
| FreeStyle Libre 1/2/3 | com.freestylelibre.app.* |
1 min (BLE) | ❌ NFC / alerts only | Juggluco (glucodata.Minute) |
Tier C |
| Dexcom G6/G7/ONE/ONE+/Stelo | com.dexcom.* |
5 min | ❌ Quick Glance only | xDrip+ / Juggluco Broadcast | Tier C |
| Yuwell Anytime | com.yuwell.cgm / .oversea |
3 min | ❌ Alerts only | Local Nightscout / Cloud uploader | Tier D |
| Sinocare iCan i3/i6 | com.sino.care / com.sinocare.* |
3 min | ❌ Alerts / voice only | Local Nightscout / Patched xDrip | Tier D |
| Medtrum EasySense / TouchCare | com.medtrum.* |
2 min | 🟡 Unverified | Local Nightscout / Needs sample | Tier D |
| Ottai Share / LibreLinkUp | com.ottai.share / org.nativescript.LibreLinkUp |
Cloud | — | Follower apps only (not local sensors) | N/A |
Tip
For Tier B apps, turn on Notification Access in dialPlate and use Share in the Captured Notification Log to contribute sanitized notification samples via a CGM Adapter Request issue!
dialPlate runs natively on Android 8.0+ (API 26–35) and HarmonyOS 4.x / EMUI with automatic brand detection and tailored background settings shortcuts:
| Platform / Brand | Status | Recommended Background / Keep-Alive Settings |
|---|---|---|
| Xiaomi / Redmi / POCO (HyperOS / MIUI) | ✅ Verified | Set CGM app, Huawei Health, and dialPlate to Battery Saver No restrictions, enable Autostart, and lock in Recents. |
| Huawei (HarmonyOS 4.x / EMUI) | ✅ Supported | Settings → Apps → App launch → Manage manually (enable Auto-launch, Secondary launch, Run in background). |
| Honor (MagicOS) | ✅ Supported | Settings → Apps → App launch → Manual (enable all 3 background toggles) and lock in Recents. |
| OPPO / OnePlus / Realme (ColorOS) | ✅ Supported | App Info → Battery usage → Enable Allow background activity & Allow auto-launch, then lock in Recents. |
| vivo / iQOO (OriginOS / Funtouch OS) | ✅ Supported | i Manager → allow Autostart & High background power consumption, and lock in Recents. |
| Samsung (One UI) | ✅ Supported | App Info → Battery → Unrestricted, and add to Never auto sleeping apps. |
| Meizu (Flyme) | ✅ Supported | Phone Manager → Permissions → Keep running in background & Autostart, and lock in Recents. |
| Google Pixel / Generic Android | ✅ Supported | App Info → App battery usage → Unrestricted; keep Huawei Health Calendar Sync enabled. |
| HarmonyOS NEXT (5/6) | Sandbox blocks cross-app notification reading (@SystemApi). Requires cloud Nightscout relay → signed CalendarKit app. |
|
| iPhone (iOS) | iOS sandbox forbids reading other apps' notifications. Use cloud Nightscout relay → iOS Shortcuts / Sugarmate (EventKit). |
The formatted calendar event title omits redundant timestamps because the watch's Next Schedule card renders the active time window (HH:mm-HH:mm) underneath automatically:
| Condition | Default Threshold | Watch Face Title | Meaning |
|---|---|---|---|
| Normal range | 3.9 – 10.0 mmol/L |
6.4→ +0.2 |
Glucose 6.4, steady, +0.2 from prior reading |
| High glucose | > 10.0 mmol/L |
▲11.2↑ +0.5 |
High prefix ▲, rising ↑, +0.5 change |
| Low glucose | < 3.9 mmol/L |
▼3.6↓ -0.4 |
Low prefix ▼, falling ↓, -0.4 change |
| First reading / >30m gap | — | 6.4→ |
Delta omitted when no recent prior reading exists |
| Past Watch Span (e.g. 6 min) | cadence + 1 min |
(Disappears) | Prevents stale readings if BLE drops; alerts after 15 min |
Note
Setting Watch Span equal to sensor cadence (e.g. 5 min for a 5-min sensor) causes periodic blank flickers because Huawei Health takes 5–30 seconds to push calendar edits over Bluetooth. A +1 min buffer (6 min) eliminates flicker while keeping the card's time window aligned with fresh readings.
- Download & Install APK:
- Download the signed
dialPlate-vX.Y.Z-release.apkdirectly from GitHub Releases (no GitHub login required; future releases upgrade in place without losing settings). - (Optional) Bleeding-edge test builds (
dialPlate-debug-apk) are also archived in GitHub Actions. Switching between a Debug APK and a signed Release APK requires uninstalling the old build once.
- Download the signed
- Pick Your CGM Preset:
- Choose your sensor preset (e.g., Ottai M8/M9 · 5 min or Juggluco · 1 min) to auto-fill Watch Span, Disconnect Threshold, and Package Rules.
- If using Juggluco: in Juggluco
Settings → Glucodata broadcast, tick dialPlate; if port17580conflicts with Juggluco's web server, tap Switch to 17590.
- Grant Permissions & Hide Silent Notification:
- Grant Notification Access (for notification sources), Calendar Read/Write, Post Notifications, and Ignore Battery Optimization.
- Tap Hide to turn off only
Silent Keep-Alivewhile keepingCGM Disconnect Alertenabled.
- Configure Huawei Health & Watch Face:
- In Huawei Health:
Devices → Your Watch → Device settings → Apps → Calendar→ enable Sync calendar events to watch. - On GT 5 Pro: Long-press a modular watch face → customize a slot → select Calendar → Next Schedule.
- Coexistence Tip: Ottai Health also declares system calendar permissions; prefer dialPlate's dedicated local sub-calendar (Glucose Monitor) to avoid conflicts if Ottai writes events.
- In Huawei Health:
- Verify in One Tap:
- Tap Test Write
6.4→ +0.2and verify it appears on your watch face.
- Tap Test Write
- Requirements: JDK 17, Android SDK (
compileSdk = 35,minSdk = 26), Gradle8.10.2. - Run Unit Tests & Build Debug APK:
gradle testDebugUnitTest assembleDebug --stacktrace
- Every push to
mainand every pull request automatically runs tests and uploads the Debug APK via build-apk.yml. - Pushing a version tag (
v*) triggers release.yml to run unit tests, build and verify the signed Release APK, generateSHA256SUMS.txt, and publish the GitHub Release automatically.
Warning
dialPlate is an unofficial, open-source display bridge intended strictly for convenience and trend awareness. Smartwatch synchronization, OEM battery management, and Bluetooth relays can introduce delays or dropouts. Never make insulin dosing or urgent hypoglycemia/hyperglycemia treatment decisions based solely on smartwatch readings — always verify with your official CGM app or a blood glucose meter.
- Contributions are welcome! See CONTRIBUTING.md for guidelines on submitting new CGM notification samples, OEM guides, and pull requests.
- Licensed under the MIT License.