Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show BWP as alternative to COB+IOB #61

Open
funkstille opened this issue Apr 20, 2021 · 0 comments
Open

Show BWP as alternative to COB+IOB #61

funkstille opened this issue Apr 20, 2021 · 0 comments

Comments

@funkstille
Copy link

ENHANCEMENT REQUEST:
I love the BWP feature of nightscout and would love to see that during the night instead of COB+IOB.
I added that feature once in my code, but just removed COB+IOB for it, since it would not fit all to the small screen.

And since I am not a typical developer and used to GitHub I was not able to push that into you repo ;)

Maybe you could just build something like IOB+COB or BWP or None

I just added BWP here

Available
strcat(NSurl,"/api/v2/properties/iob,cob,delta,loop,basal,bwp");
JsonObject bwp = JSONdoc["bwp"];
ns->bwp = bwp["bwp"]; // 0
strncpy(ns->bwp_display, bwp["display"] | "N/A", 16); // 0
strncpy(ns->bwp_displayLine, bwp["displayLine"] | "BWP: N/A", 16); // "BWP: 0U"
// Serial.println("BWP OK");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant