2019-07-28 14:16:27 +02:00
|
|
|
/// for use in OSLog
|
|
|
|
enum ConstantsLog {
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// for use in OSLog
|
|
|
|
static let subSystem = "xDrip"
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2020-01-18 00:02:58 +01:00
|
|
|
/// for use in NSLog
|
|
|
|
static let tracePrefix = "xDrip-NSLog"
|
|
|
|
|
2024-01-03 16:13:30 +01:00
|
|
|
/// debuglogging
|
|
|
|
static let debuglogging = "xdripdebuglogging"
|
|
|
|
|
|
|
|
/// timestamp format for nslog
|
|
|
|
static let dateFormatNSLog = "y-MM-dd HH:mm:ss.SSSS"
|
|
|
|
|
|
|
|
// MARK: - Categories
|
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// for use in OSLog
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryBlueToothTransmitter = "BlueToothTransmitter "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// for use in cgm transmitter miaomiao
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryCGMMiaoMiao = "CGMMiaoMiao "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-29 10:42:48 +02:00
|
|
|
/// for use in cgm transmitter bubble
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryCGMBubble = "CGMBubble "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// for use in cgm xdripg4
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryCGMxDripG4 = "CGMxDripG4 "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// for use in firstview
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryRootView = "RootView "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// calibration
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryCalibration = "Calibration "
|
2020-01-18 00:02:58 +01:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// G5
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryCGMG5 = "CGMG5 "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2024-02-13 22:32:04 +01:00
|
|
|
/// G7
|
|
|
|
static let categoryCGMG7 = "CGMG7 "
|
|
|
|
|
2020-01-07 23:13:18 +01:00
|
|
|
/// watlaa
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryWatlaa = "Watlaa"
|
2020-01-07 23:13:18 +01:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// GNSEntry
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryCGMGNSEntry = "CGMGNSEntry "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// Blucon
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryBlucon = "Blucon "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2020-08-30 09:45:31 +02:00
|
|
|
/// Libre2
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryCGMLibre2 = "Libre2 "
|
2020-08-30 09:45:31 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// core data manager
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryCoreDataManager = "CoreDataManager "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// application data bgreadings
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataBgReadings = "ApplicationDataBgReadings "
|
2021-12-27 01:44:12 +01:00
|
|
|
|
|
|
|
/// application data Treatments
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataTreatments = "ApplicationDataTreatments "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// application data calibrations
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataCalibrations = "ApplicationDataCalibrations "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// application data sensors
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataSensors = "ApplicationDataSensors "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// application data alerttypes
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataAlertTypes = "ApplicationDataAlertTypes "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// application data alertentries
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataAlertEntries = "ApplicationDataAlertEntries "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
|
|
|
/// application data for M5Stack
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataM5Stacks = "ApplicationDataM5Stacks "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2020-01-09 18:09:11 +01:00
|
|
|
/// application data for M5Stack
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataWatlaa = "ApplicationDataWatlaa"
|
2020-01-09 18:09:11 +01:00
|
|
|
|
2020-02-08 00:18:23 +01:00
|
|
|
/// application data for BLEPeripheral
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataBLEPeripheral =
|
|
|
|
"ApplicationDataBLEPeripheral"
|
2020-02-08 00:18:23 +01:00
|
|
|
|
|
|
|
/// application data for DexcomG5
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataDexcomG5 = "ApplicationDataDexcomG5"
|
2020-02-08 00:18:23 +01:00
|
|
|
|
2019-09-23 23:00:15 +02:00
|
|
|
/// application for for M5StackName
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryApplicationDataM5StackNames = "ApplicationDataM5StackNames "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// nightscout uploader
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryNightScoutUploadManager = "NightScoutUploadManager "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// nightscout follow
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryNightScoutFollowManager = "NightScoutFollowManager "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2023-10-24 19:20:50 +02:00
|
|
|
/// nightscout follow
|
2024-01-03 16:13:30 +01:00
|
|
|
static let categoryLibreLinkUpFollowManager = "LibreLinkUpFollowManager "
|
2023-10-24 19:20:50 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// alertmanager
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryAlertManager = "AlertManager "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// playsound
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryPlaySound = "PlaySound "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// healthkit manager
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryHealthKitManager = "HealthKitManager "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// SettingsViewHealthKitSettingsViewModel
|
2019-11-28 17:18:06 +01:00
|
|
|
static let categorySettingsViewHealthKitSettingsViewModel = "SettingsViewHealthKitSettingsViewModel"
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-07-28 14:16:27 +02:00
|
|
|
/// dexcom share upload manager
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryDexcomShareUploadManager = "DexcomShareUploadManager "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-08-02 23:03:27 +02:00
|
|
|
/// droplet 1
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryCGMDroplet1 = "CGMDroplet1 "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-11-01 14:07:15 +01:00
|
|
|
/// bluereader
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryCGMBlueReader = "CGMBlueReader "
|
2019-11-01 14:07:15 +01:00
|
|
|
|
2021-02-18 22:53:21 +01:00
|
|
|
/// atom
|
|
|
|
static let categoryCGMAtom = "categoryCGMAtom "
|
|
|
|
|
2019-08-10 12:13:40 +02:00
|
|
|
/// LibreOOPClient
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryLibreOOPClient = "LibreOOPClient "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2020-05-26 14:08:06 +02:00
|
|
|
/// libreDataParser
|
|
|
|
static let categoryLibreDataParser = "LibreDataParser "
|
|
|
|
|
2019-09-12 08:37:35 +02:00
|
|
|
/// for use in M5Stack
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryM5StackBluetoothTransmitter = "M5StackBluetoothTransmitter "
|
2019-09-23 23:00:15 +02:00
|
|
|
|
2019-11-26 21:47:58 +01:00
|
|
|
/// BluetoothPeripheralManager logging
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryBluetoothPeripheralManager = "BluetoothPeripheralManager "
|
2019-09-12 08:37:35 +02:00
|
|
|
|
2019-10-25 18:08:35 +02:00
|
|
|
/// StatusChartsManager logging
|
2020-01-18 00:02:58 +01:00
|
|
|
static let categoryGlucoseChartManager = "GlucoseChartManager "
|
2020-01-24 21:13:34 +01:00
|
|
|
|
2023-10-24 19:20:50 +02:00
|
|
|
/// SettingsViewCalendarEventsSettingsViewModel logging
|
|
|
|
static let categorySettingsViewCalendarEventsSettingsViewModel = "SettingsViewCalendarEventsSettingsViewModel"
|
2020-01-24 21:13:34 +01:00
|
|
|
|
2024-02-11 12:54:13 +01:00
|
|
|
/// CalendarManager logging
|
|
|
|
static let categoryCalendarManager = "CalendarManager "
|
|
|
|
|
2020-01-24 21:13:34 +01:00
|
|
|
/// WatchManager logging
|
2024-02-11 12:54:13 +01:00
|
|
|
static let categoryWatchManager = "WatchManager "
|
2020-01-24 21:13:34 +01:00
|
|
|
|
2020-03-25 23:19:52 +01:00
|
|
|
/// bluetoothPeripheralViewController
|
2020-05-02 22:54:03 +02:00
|
|
|
static let categoryBluetoothPeripheralViewController = "blePeripheralViewController "
|
2020-03-25 23:19:52 +01:00
|
|
|
|
2020-05-26 14:08:06 +02:00
|
|
|
/// nightscout view model
|
2020-05-02 22:54:03 +02:00
|
|
|
static let categoryNightScoutSettingsViewModel = "nightScoutSettingsViewModel "
|
2020-04-09 23:53:37 +02:00
|
|
|
|
2020-05-26 14:08:06 +02:00
|
|
|
/// trace
|
2020-05-02 22:54:03 +02:00
|
|
|
static let categoryTraceSettingsViewModel = "TraceSettingsViewModel"
|
2020-08-30 09:45:31 +02:00
|
|
|
|
2020-10-04 21:21:41 +02:00
|
|
|
/// housekeeping
|
|
|
|
static let categoryHouseKeeper = "HouseKeeper "
|
|
|
|
|
2020-10-10 22:01:47 +02:00
|
|
|
/// soonzeParameter accessor
|
|
|
|
static let categoryApplicationDataSnoozeParameter = "ApplicationDataSnoozeParameter"
|
|
|
|
|
2020-12-07 23:28:28 +01:00
|
|
|
/// libre NFC
|
|
|
|
static let categoryLibreNFC = "categoryLibreNFC"
|
|
|
|
|
2021-01-10 10:33:25 +01:00
|
|
|
/// for use in cgm transmitter bubble
|
|
|
|
static let categoryLibreSensorType = "categoryLibreSensorType "
|
|
|
|
|
2021-01-19 22:00:40 +01:00
|
|
|
/// for use in Libre2BLEUtilities
|
|
|
|
static let categoryLibre2BLEUtilities = "Libre2BLEUtilities "
|
|
|
|
|
2021-03-27 00:07:50 +01:00
|
|
|
/// for use in Libre2BLEUtilities
|
2024-02-05 19:34:48 +01:00
|
|
|
static let categoryAppDelegate = "AppDelegate "
|
2022-05-09 00:31:51 +02:00
|
|
|
|
|
|
|
/// for use in DataExporter
|
2022-05-19 22:27:21 +02:00
|
|
|
static let categoryDataExporter = "DataExporter "
|
2021-03-27 00:07:50 +01:00
|
|
|
|
2022-05-19 22:27:21 +02:00
|
|
|
// for use in LoopManager
|
2024-02-05 19:34:48 +01:00
|
|
|
static let categoryLoopManager = "LoopManager "
|
2022-05-19 22:27:21 +02:00
|
|
|
|
2023-07-23 21:20:07 +02:00
|
|
|
/// for use in Bg Readings view
|
|
|
|
static let categoryBgReadingsView = "BgReadingsView "
|
|
|
|
|
2023-11-13 13:14:20 +01:00
|
|
|
/// SettingsViewCalendarEventsSettingsViewModel logging
|
|
|
|
static let categorySettingsViewDataSourceSettingsViewModel = "SettingsViewDataSourceSettingsViewModel"
|
|
|
|
|
2024-01-03 16:13:30 +01:00
|
|
|
/// SettingsViewNotificationsSettingsViewModel logging
|
|
|
|
static let categorySettingsViewNotificationsSettingsViewModel =
|
|
|
|
"NotificationsViewModel "
|
|
|
|
|
|
|
|
/// for use in LiveActivityManager
|
|
|
|
static let categoryLiveActivityManager = "LiveActivityManager "
|
|
|
|
|
Libre3 and/or Dexcom G7 and/or OmniPod as heartbeat
- Libre 3 or Dexcom G7 as heartbeat
- Libre 3 as heartbeat: avoids the need for audioPlayer that keeps the app alive in the background. When Libre 3 sends data, xDrip4iOS will wake up and fetch a reading from LibreView
- Dexcom G7 as heartbeat: only useful in combination with Loop. Loop must read the Dexcom G7 readings and upload to NightScout. xDrip4iOS will wake up when G7 sends data and will fetch the latest reading from NightScout. This occurs with a delay (Thread.sleep) of 1 second, to give time to loop to upload the reading to NightScout. Sometimes xDrip4iOS is still to early to fetch the reading. In that case, it may help to delete the heartbeat and recreate it.
- OmniPod as heartbeat: for OmniPod users, this is a useful additional heartbeat. OmniPod has the interesting 'feature' to disconnect and reconnect every few minutes. Which allows to call the heartbeat function.
- M5Stack as heartbeat: this is implemented as part of the M5Stack transmitter, it does not appear in the list of heartbeat devices. M5Stack will wake up xDrip4iOS if it didn't receive a reading from xDrip4iOS for more than 5 minutes. This allows xDrip4iOS to download the latest reading and send it to the M5Stack. Needs the latest release of M5stack or M5Stick-C software : https://github.com/JohanDegraeve/M5_NightscoutMon or https://github.com/JohanDegraeve/M5_StickC_xdrip_iOS
- the change required also to re-enable alarms, notifications, badge counter, ... when user has chosen followerBackgroundKeepAliveType disabled
- To use Libre 3 has heartbeat:
- First connect to Libre 3 with official Libre 3 app
- when connected, go to the iOS settings and read and note the name of the Libre (it's not something with ABBOTT in it, it's more like a random string)
- force close the Libre 3 app
- in xDrip4iOS, go to the bluetooth section
- add a new transmitter of type HeartBeat
- select Libre 3
- as transmitter id, fill in the name you read in the iOS settings, just 4 or 5 characters is enough. It's case insensitive.
- click the scan button. (you will not be asked to do NFC scan)
- wait till connected
- now reopen the official Libre 3 app
- To use Dexcom G7 as heartbeat:
- make sure you connected at least once to the Dexcom G7 with the official Dexcom app and/or Loop.
- Not necessary to force close other apps (like Official Dexcom G7 app and Loop)
- go to the iOS settings and read and note the name of the Dexcom G7. It's case insensitive.
- in xDrip4iOS, go to the bluetooth section
- add a new transmitter of type HeartBeat
- select Dexcom G7
- as transmitter id, fill in the name you read in the iOS settings.
- click the scan button. (you will not be asked to do NFC scan)
- wait till connected
- To use OmniPod as heartbeat:
- Force close any other app that connects to the OmniPod (that should only be Loop)
- - in xDrip4iOS, go to the bluetooth section
- add a new transmitter of type HeartBeat
- select OmniPod
- click the scan button
- wait till connected
- you can now reopen Loop
2024-01-29 23:05:08 +01:00
|
|
|
/// for use in Libre3HeartBeatTransmitter
|
|
|
|
static let categoryHeartBeatLibre3 = "HeartBeatLibre3 "
|
|
|
|
|
|
|
|
/// for use in DexcomG7HeartBeatTransmitter
|
|
|
|
static let categoryHeartBeatG7 = "HeartBeatG7 "
|
|
|
|
|
|
|
|
/// for use in LibreViewFollowManager
|
|
|
|
static let categoryLoopFollowManager = "LoopFollowManager "
|
|
|
|
|
|
|
|
/// for use in Omni¨PodHeartBeatTransmitter
|
|
|
|
static let categoryHeartBeatOmnipod = "HeartBeatOmnipod "
|
2019-07-28 14:16:27 +02:00
|
|
|
}
|
|
|
|
|