Skip to content

Commit

Permalink
Include remote carb created date
Browse files Browse the repository at this point in the history
  • Loading branch information
gestrich committed Aug 14, 2022
1 parent cd5c983 commit 4172a67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/server/loop.js
Original file line number Diff line number Diff line change
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 4172a67

Please sign in to comment.