Skip to content

Commit

Permalink
Merge pull request nightscout#7512 from gestrich/bugfix/remote-carb-c…
Browse files Browse the repository at this point in the history
…reated-date

Allow Remote Carb Entries in Past or Future
  • Loading branch information
bewest committed Aug 14, 2022
2 parents a5c67b5 + 755bdc9 commit df85fd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/server/loop.js
Expand Up @@ -81,6 +81,9 @@ function init (env, ctx) {
if (data.otp !== undefined && data.otp.length > 0) {
payload["otp"] = ""+data.otp
}
if (data.created_at !== undefined) {
payload['start-time'] = data.created_at;
}
alert = "Remote Carbs Entry: "+payload["carbs-entry"]+" grams\n";
alert += "Absorption Time: "+payload["absorption-time"]+" hours";
} else {
Expand Down

0 comments on commit df85fd2

Please sign in to comment.