Source: factory.service/package.gekkoridge/ObjServiceLibreGlucose.py
LibreLinkUp API integration for Libre 2 CGM data.
Connects to the LibreLinkUp API to retrieve real-time
and historical glucose readings from FreeStyle Libre 2
continuous glucose monitors.
...
| Method | Signature | Description |
|---|---|---|
| authenticate | authenticate() -> bool |
Login to LibreLinkUp and obtain an auth token. |
| get_connections | get_connections() -> list[dict] |
Get all patient connections (with latest glucose). |
| get_graph | get_graph(patient_id: str) -> dict |
Get 12-hour glucose graph for a patient. |
| get_current_glucose | get_current_glucose(patient_id: str = '') -> dict |
Get the latest glucose reading. |
| get_graph_readings | get_graph_readings(patient_id: str = '') -> list[dict] |
Get 12-hour historical readings as flat dicts. |
| record_glucose | record_glucose(min_interval: int = 60) -> int |
Fetch current glucose for all connections and |
| record_graph | record_graph(patient_id: str = '') -> int |
Fetch 12h graph data and insert all readings |
| process | process(context: dict) -> dict |
Workflow entry point for LibreGlucose operations. |
| run_workflow_direct | run_workflow_direct(guid: str, selector: str) -> str |