background.ts
Android foreground service task and notification permission helpers for continuous heat monitoring
Android foreground service task and notification permission helpers for continuous heat monitoring
iOS background fetch task and HealthKit background delivery for continuous heat monitoring
Normalizes date inputs to the UTC hour key used throughout the weather cache
TypeScript ambient declarations for the global logging interface
Converts dates to and from local-timezone day keys and computes day differences
Configures the global logging system with per-level file rotation and SQLite debug persistence
Builds local-time request windows for NDFD time-series API calls
Manages the active monitoring session lifecycle across iOS and Android
Temperature unit conversion and display formatting utilities
Sends the current core body temperature to a paired Apple Watch
Physics-based solar radiation computation and unit conversion utilities for WBGT inputs
Sends core body temperature and history to a paired WearOS watch