summaryrefslogtreecommitdiff
path: root/dexcom_reader/readdata.py
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-01-10 15:03:42 -0500
committerAndrew Cady <d@jerkface.net>2019-01-10 15:03:42 -0500
commit4d44849cfc752cdc9872ab53409a43696edce36e (patch)
treeb03f74c7740f779a51d940fa652c7dc30149ee95 /dexcom_reader/readdata.py
parent247fb6b7fe3a70d1e9378f20ffaa19c8d4c3ea17 (diff)
add support for Dexcom G5 Mobile and make it defaultHEADmaster
Diffstat (limited to 'dexcom_reader/readdata.py')
-rw-r--r--dexcom_reader/readdata.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/dexcom_reader/readdata.py b/dexcom_reader/readdata.py
index 84033f0..ded95d3 100644
--- a/dexcom_reader/readdata.py
+++ b/dexcom_reader/readdata.py
@@ -362,6 +362,16 @@ class DexcomG5 (Dexcom):
362 'SENSOR_DATA': database_records.SensorRecord, 362 'SENSOR_DATA': database_records.SensorRecord,
363 } 363 }
364 364
365class DexcomG5Mobile (Dexcom):
366 PARSER_MAP = {
367 'USER_EVENT_DATA': database_records.EventRecord,
368 'METER_DATA': database_records.G5MeterRecord,
369 'CAL_SET': database_records.Calibration,
370 'INSERTION_TIME': database_records.G5InsertionRecord,
371 'EGV_DATA': database_records.G5MobileEGVRecord,
372 'SENSOR_DATA': database_records.SensorRecord,
373 }
374
365def GetDevice (port, G5=False): 375def GetDevice (port, G5=False):
366 if G5: 376 if G5:
367 return DexcomG5(port) 377 return DexcomG5(port)