Skip to content

Instantly share code, notes, and snippets.

@someoneAnyone
Last active August 28, 2015 12:45
Show Gist options
  • Save someoneAnyone/32beac17f90ebe8d0332 to your computer and use it in GitHub Desktop.
Save someoneAnyone/32beac17f90ebe8d0332 to your computer and use it in GitHub Desktop.
Model representation of Entries Endpoint for Nightscout. For a given type other properties not relevant would be nil.
[
{
"device": "xDrip",
"type": "sgv",
"dateString": "string",
"date": 0,
"sgv": {
"direction": "string",
"filtered": 0,
"unfiltered": 0,
"noise": 0,
"rssi": 0,
"sgv-mgdl": 0,
"sgv-mmol": 0,
"raw-sgv-mgdl": 0,
"raw-sgv-mmol": 0,
"delta": -1.1
},
"cal": {},
"mbg": {}
},
{
"device": "xDrip",
"type": "cal",
"dateString": "string",
"date": 0,
"sgv": {},
"cal": {
"slope": 0,
"scale": 0,
"intercept": 0
},
"mbg": {}
},
{
"device": "xDrip",
"type": "mbg",
"dateString": "string",
"date": 0,
"sgv": {},
"cal": {},
"mbg": {
"mbg": 0
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment