Look at "sgv" key instead of "type", and convert it to int
Look at "sgv" key instead of "type", and convert it to int

Some uploaders evidently don't include the "type" key. Some also provide
the sgv value as a string.

Here's an example:
{
  "date": 1444818400000,
  "device": "Medtronic_CGM",
  "direction": "Flat",
  "dateString": "",
  "sgv": "172"
}

mddub/nightscout-osx-menubar,mddub/nightscout-osx-menubar