Patch of xDripPlugin and Eversens plugin to disable Sensor battery level in Action tab
- xDrip disabled because of an issue in xDrip today (Phone battery level sent and not Sensor battery level) - Eversens disabled because I'm not sure of data sent (String, Int ?) to avoid error or crash
This commit is contained in:
parent
961ee4ccf4
commit
b5c77522ab
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ class EversensePlugin @Inject constructor(
|
||||||
if (bundle.containsKey("glucoseTimestamp")) aapsLogger.debug(LTag.BGSOURCE, "glucoseTimestamp: " + dateUtil.dateAndTimeString(bundle.getLong("glucoseTimestamp")))
|
if (bundle.containsKey("glucoseTimestamp")) aapsLogger.debug(LTag.BGSOURCE, "glucoseTimestamp: " + dateUtil.dateAndTimeString(bundle.getLong("glucoseTimestamp")))
|
||||||
if (bundle.containsKey("batteryLevel")) {
|
if (bundle.containsKey("batteryLevel")) {
|
||||||
aapsLogger.debug(LTag.BGSOURCE, "batteryLevel: " + bundle.getString("batteryLevel"))
|
aapsLogger.debug(LTag.BGSOURCE, "batteryLevel: " + bundle.getString("batteryLevel"))
|
||||||
sensorBatteryLevel = bundle.getString("batteryLevel").toInt() // TODO: Philoul: Line to check I don't have eversens so I don't know what kind of information is sent...
|
//sensorBatteryLevel = bundle.getString("batteryLevel").toInt() // TODO: Philoul: Line to check I don't have eversens so I don't know what kind of information is sent...
|
||||||
}
|
}
|
||||||
if (bundle.containsKey("signalStrength")) aapsLogger.debug(LTag.BGSOURCE, "signalStrength: " + bundle.getString("signalStrength"))
|
if (bundle.containsKey("signalStrength")) aapsLogger.debug(LTag.BGSOURCE, "signalStrength: " + bundle.getString("signalStrength"))
|
||||||
if (bundle.containsKey("transmitterVersionNumber")) aapsLogger.debug(LTag.BGSOURCE, "transmitterVersionNumber: " + bundle.getString("transmitterVersionNumber"))
|
if (bundle.containsKey("transmitterVersionNumber")) aapsLogger.debug(LTag.BGSOURCE, "transmitterVersionNumber: " + bundle.getString("transmitterVersionNumber"))
|
||||||
|
|
|
@ -46,7 +46,7 @@ class XdripPlugin @Inject constructor(
|
||||||
bgReading.direction = bundle.getString(Intents.EXTRA_BG_SLOPE_NAME)
|
bgReading.direction = bundle.getString(Intents.EXTRA_BG_SLOPE_NAME)
|
||||||
bgReading.date = bundle.getLong(Intents.EXTRA_TIMESTAMP)
|
bgReading.date = bundle.getLong(Intents.EXTRA_TIMESTAMP)
|
||||||
bgReading.raw = bundle.getDouble(Intents.EXTRA_RAW)
|
bgReading.raw = bundle.getDouble(Intents.EXTRA_RAW)
|
||||||
if (bundle.containsKey(Intents.EXTRA_SENSOR_BATTERY)) sensorBatteryLevel = bundle.getInt(Intents.EXTRA_SENSOR_BATTERY)
|
//if (bundle.containsKey(Intents.EXTRA_SENSOR_BATTERY)) sensorBatteryLevel = bundle.getInt(Intents.EXTRA_SENSOR_BATTERY)
|
||||||
val source = bundle.getString(Intents.XDRIP_DATA_SOURCE_DESCRIPTION, "no Source specified")
|
val source = bundle.getString(Intents.XDRIP_DATA_SOURCE_DESCRIPTION, "no Source specified")
|
||||||
setSource(source)
|
setSource(source)
|
||||||
MainApp.getDbHelper().createIfNotExists(bgReading, "XDRIP")
|
MainApp.getDbHelper().createIfNotExists(bgReading, "XDRIP")
|
||||||
|
|
Loading…
Reference in a new issue