your glucose, broadcast
bgcast is an open-loop notification pump. A real pump runs an algorithm continuously and acts on its own. bgcast runs the algorithm continuously and, when action is warranted, notifies you — and you inject. The software is the controller; you are the actuator.
It pulls Freestyle Libre readings from LibreLinkUp into a database on this server, shows them in real time, and suggests correction doses based on parameters you set.
Insulin on board is modelled with an exponential curve parameterised by peak time and duration of action — the same shape used by Loop and AndroidAPS. Logged carbs are modelled too, absorbing over a time you set, so the suggestion is based on where your glucose is heading once the insulin already administered has finished working and the food you have logged has absorbed — not simply where it is now:
carb impact = COB × (ISF ÷ ICR) eventual BG = current BG − (IOB × ISF) + carb impact suggestion = (eventual BG − target) ÷ ISF
Because logged food raises the eventual BG, one suggestion covers both a meal and a correction; a meal matched by its bolus cancels out to nothing. A suggestion is suppressed entirely — with the reason shown — if glucose is low or predicted to go low, if data is stale, if a dose was taken too recently, or if glucose is rising faster than the insulin and logged carbs together explain, which usually means food that bgcast does not know about.
The eventual BG is only the endpoint. Because rapid insulin peaks and clears faster than food absorbs, a dose that lands on target at the end can still dip low in the middle. bgcast walks the whole curve forward: if the dose is projected to fall below your urgent-low line on the way, it is refused outright; if it only grazes the low band, the suggestion still stands but the projected dip is shown so you can split the dose or keep fast carbs to hand.
Informational tool only. bgcast is not a medical device, is not clinically validated, and never administers anything. Every figure it produces is a suggestion to check against your own judgement and your clinician's guidance. v0.0.0