StephenBlackWasAlreadyTaken / NightWatch

A native android Nightscout client with alerts and google wear integration
GNU General Public License v3.0
92 stars 167 forks source link

Nightwatch can't handle Tomato uploads #117

Open FreThor opened 5 years ago

FreThor commented 5 years ago

Example of Tomato/miaomiao upload to Nightscout (mongodb entries):

{ "_id" : ObjectId("5caf081490f604eb5e9571db"), "date" : 1554974740245.0, "sgv" : 133.280118, "delta" : -0.26000090315938, "sysTime" : 1554974740377.0, "device" : "Tomato" } compared to Spike/miaomiao (which works fine) { "_id" : ObjectId("5c9c718a90f604eb5e44ef21"), "rssi" : 100, "direction" : "SingleDown", "sgv" : 135, "sysTime" : "2019-03-28T07:02:32.000+0000", "dateString" : "2019-03-28T07:02:32.000+0000", "date" : 1553756552179.0, "unfiltered" : 152235, "noise" : 3, "filtered" : 152235, "device" : "MIAOMIAO", "type" : "sgv" }

sysTime format is completely different from Spike, and sgv is using decimals

liamzebedee commented 4 years ago

I've fixed Tomato with Nightscout which may be useful for those who come across it. https://github.com/nightscout/cgm-remote-monitor/pull/5712