Repository navigation
Conversation
… next-dev, dev and main The patches refuse a remote bolus or carb command when insulin or carbs were added that the sender had not seen, and accept those commands for up to 12 minutes. They conflict with remote_window, which changes the same window, and apply with every other customization in either order.
Member
Author
|
Tests:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the remote command guard from LoopKit/LoopWorkspace#594 as a customization for next-dev, dev and main. Loop accepts remote bolus and carb commands for up to 12 minutes and refuses a command when insulin or carbs were added that the sender had not seen, and the sender gets the reason. The 12 minutes need LoopFollow with loopandlearn/LoopFollow#842; other senders keep 5 minutes and only the send-time rule.
nextdev_remote_guard.patch is the PR source without tests and string catalog entries, with a few hunks moved so it applies together with remote_carb_edit in any order. dev_remote_guard.patch is a port for dev and main. It conflicts with remote_window on purpose, since both change the acceptance window in the same NightscoutService files, and it applies before or after every other customization.
Tested on real phones with a simulated pump on next-dev and dev, with LoopFollow #842 sending the commands.
The selector entry is in loopandlearn/lnl-scripts#118.