forked from Blendman974/faceclaw
Add a prototype nightscout "missed bolus" detector
This commit is contained in:
1 parent
f6201d8e41
commit
00c36602d6
13 files changed
+997
-61
No files matched your search
@@ -1,11 +1,15 @@
|
||||
import { type AppDefinition } from "../app-definition";
|
||||
import { createNightscoutAppWindow, startNightscoutTrayIcon, NIGHTSCOUT_SURFACE_ID, NIGHTSCOUT_WINDOW_ID } from "./nightscout-app";
|
||||
import { startMissedBolusMonitor } from "./missed-bolus-monitor";
|
||||
|
||||
const nightscoutApp: AppDefinition = {
|
||||
appId: "nightscout",
|
||||
title: "Nightscout",
|
||||
icon: "nightscout",
|
||||
boot: () => startNightscoutTrayIcon(),
|
||||
boot: (ctx) => {
|
||||
startNightscoutTrayIcon();
|
||||
startMissedBolusMonitor(ctx);
|
||||
},
|
||||
launch: (ctx) => ctx.launchInProcessApp(NIGHTSCOUT_WINDOW_ID, NIGHTSCOUT_SURFACE_ID, createNightscoutAppWindow),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user