<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>services/ on SAFER Documentation</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/</link><description>Recent content in services/ on SAFER Documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://safer-capstone.pages.dev/developer-docs/api-reference/services/index.xml" rel="self" type="application/rss+xml"/><item><title>activityService.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/activityservice/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/activityservice/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module orchestrates the full activity sensing pipeline: starting and stopping the accelerometer, computing CPM from the live sensor buffer on a 1-minute tick, persisting each result to the CPM database, and exposing a 40-minute rolling average for downstream core temperature inference.&lt;/p&gt;</description></item><item><title>dailyWorkAreaService.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/dailyworkareaservice/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/dailyworkareaservice/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module takes a geographic work area circle and produces the set of weather cache cell coordinates that must be pre-fetched to fully cover that area. It is the bridge between the user-defined work area and the weather pre-caching pipeline.&lt;/p&gt;</description></item><item><title>dailyWorkAreaStore.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/dailyworkareastore/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/dailyworkareastore/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module manages the persistent record of user-defined work area circles and the daily prompt gate that determines whether the user has been asked to set their work area today. All data is stored in AsyncStorage under a single versioned key.&lt;/p&gt;</description></item><item><title>debugCoreTempDummy.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/debugcoretempdummy/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/debugcoretempdummy/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module provides a one-shot debug helper for verifying that the core temperature ONNX model loads, runs, and produces a result for a known set of hardcoded inputs. It is intended to be called from the Debug screen or a test harness and has no effect on application state.&lt;/p&gt;</description></item><item><title>debugWBGTDummy.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/debugwbgtdummy/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/debugwbgtdummy/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module provides a one-shot debug helper for verifying that the WBGT ONNX models load, run, and produce results for a known set of hardcoded meteorological inputs. It is intended to be called from the Debug screen or a test harness and has no effect on application state.&lt;/p&gt;</description></item><item><title>location.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/location/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/location/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module handles all device location concerns: requesting the appropriate permission scope, resolving the current GPS position, and geocoding a text address into coordinates via the Google Places API.&lt;/p&gt;</description></item><item><title>notifications.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/notifications/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/notifications/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module configures the global Expo notification handler and exposes functions for requesting notification permissions and sending immediate heatstroke risk alerts. Alert message content is determined by core temperature thresholds.&lt;/p&gt;</description></item><item><title>notificationService.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/notificationservice/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/notificationservice/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module configures the global Expo notification handler and exposes functions for requesting notification permissions and sending heatstroke risk alerts. Unlike &lt;code&gt;notifications.ts&lt;/code&gt;, alert content is determined by a normalized risk level value rather than a raw core temperature.&lt;/p&gt;</description></item><item><title>predictionHeatRisk.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/predictionheatrisk/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/predictionheatrisk/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module is the top-level prediction orchestrator. It gathers all required inputs from their respective services, selects the appropriate core temperature model variant, runs inference, persists the result to connected wearables, and returns a structured prediction payload.&lt;/p&gt;</description></item><item><title>predictionWGBT.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/predictionwgbt/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/predictionwgbt/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module produces a WBGT (Wet Bulb Globe Temperature) prediction for the user&amp;rsquo;s current GPS location by combining cached weather data with a computed solar radiation estimate and running the WBGT ONNX inference model.&lt;/p&gt;</description></item><item><title>profileStore.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/profilestore/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/profilestore/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module manages the user&amp;rsquo;s physiological profile, providing typed load and save operations backed by AsyncStorage. It is the single source of truth for profile data consumed by inference, the home screen, and the landing screen.&lt;/p&gt;</description></item><item><title>weatherCacheCells.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/weathercachecells/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/weathercachecells/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module implements the geographic cell grid that underpins the weather cache. It partitions the globe into a fixed-resolution grid of cells, assigns each cell a deterministic string key, and provides helpers for working with cell geometry and distance.&lt;/p&gt;</description></item><item><title>weatherService.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/weatherservice/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/weatherservice/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module is the central weather data layer. It provides a single cached-read entry point for getting a weather point for any coordinate and time, and a bulk pre-cache entry point for warming the cache across a set of work-area locations before they are needed.&lt;/p&gt;</description></item><item><title>wgbtModel.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/wgbtmodel/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/wgbtmodel/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module is an early standalone ONNX session wrapper for the Natural Wet Bulb model, predating the unified &lt;code&gt;inferenceWGBT.ts&lt;/code&gt; + &lt;code&gt;onnxAsset.ts&lt;/code&gt; architecture. It is no longer called by any active code path and is retained only as a historical reference.&lt;/p&gt;</description></item><item><title>workAreaAddressSearch.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/services/workareaaddresssearch/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/services/workareaaddresssearch/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module provides a two-step address resolution flow backed by the Google Places Autocomplete and Place Details APIs. It is used by &lt;code&gt;location.ts&lt;/code&gt; to convert a user-entered address string into geographic coordinates for work area setup.&lt;/p&gt;</description></item></channel></rss>