dexcom-share-api
Version:
Lightweight JS wrapper for the unofficial Dexcom share API. Useful if you need access to realtime glucose levels.
33 lines (32 loc) • 634 B
TypeScript
export declare type DexcomServer = "eu" | "us";
export interface ConfigurationProps {
username: string;
password: string;
server: DexcomServer;
}
export interface LatestGlucoseProps {
minutes: number;
maxCount: number;
}
export interface DexcomEntry {
WT: string;
ST: string;
DT: string;
Value: number;
Trend: string;
}
export declare enum Trend {
DoubleUp = 0,
SingleUp = 1,
FortyFiveUp = 2,
Flat = 3,
FortyFiveDown = 4,
SingleDown = 5,
DoubleDown = 6
}
export interface GlucoseEntry {
mgdl: number;
mmol: number;
trend: Trend;
timestamp: number;
}