mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
parser/nightscout: add rate field for temp basals for autotune compatibility (fixes #7)
This commit is contained in:
@@ -14,6 +14,7 @@ class NightscoutEntry:
|
||||
"reason": reason,
|
||||
"duration": float(duration_mins) if duration_mins else None,
|
||||
"absolute": float(value),
|
||||
"rate": float(value),
|
||||
"created_at": created_at,
|
||||
"carbs": None,
|
||||
"insulin": None,
|
||||
|
||||
@@ -15,6 +15,7 @@ class TestNightscoutEntry(unittest.TestCase):
|
||||
"reason": "",
|
||||
"duration": 30,
|
||||
"absolute": 1.05,
|
||||
"rate": 1.05,
|
||||
"created_at": "2021-03-16 00:25:21-04:00",
|
||||
"carbs": None,
|
||||
"insulin": None,
|
||||
@@ -33,6 +34,7 @@ class TestNightscoutEntry(unittest.TestCase):
|
||||
"reason": "Correction",
|
||||
"duration": 5,
|
||||
"absolute": 0.95,
|
||||
"rate": 0.95,
|
||||
"created_at": "2021-03-16 12:25:21-04:00",
|
||||
"carbs": None,
|
||||
"insulin": None,
|
||||
|
||||
Reference in New Issue
Block a user