Table of Contents
#Example Profiles
These are only examples, make sure you update all fields to fit your needs
##Simple profile
{
"dia": 3,
"carbs_hr": 20,
"carbratio": 30,
"sens": 100,
"basal": 0.125,
"target_low": 100,
"target_high": 120
}
##Profile can also use time periods for any field, for example:
{
"carbratio": [
{
"time": "00:00",
"value": 30
},
{
"time": "06:00",
"value": 25
},
{
"time": "14:00",
"value": 28
}
],
"basal": [
{
"time": "00:00",
"value": 0.175
},
{
"time": "02:30",
"value": 0.125
},
{
"time": "05:00",
"value": 0.075
},
{
"time": "08:00",
"value": 0.100
},
{
"time": "14:00",
"value": 0.125
},
{
"time": "20:00",
"value": 0.175
},
{
"time": "22:00",
"value": 0.200
}
]
}
##Starting 0.9.0 profile data will be converted following way
source (result from api call) - only [0] used now
[ { XXX, startDate: xxx }, { YYY, startDate: yyy } ]
converted data
[
{
defaultProfile: "Default"
, store: {
"Default" : { XXX }
}
, startDate: xxx
}
, {
defaultProfile: "Default"
, store: {
"Default" : { YYY }
}
, startDate: yyy
}
]
example of one new profile
{
defaultProfile: "2-Weekend"
, store: {
"1-Weekday" : { AAA }
"2-Weekend" : { BBB }
"3-Exercise" : { CCC }
}
, startDate: xxx
}
for basals currently used profile will be determined by last treatment record of format
{
eventType: "Profile Change"
, profile: "2-Weekend"
}
for boluscalc profile used for calculation will be specified by key profile