2019-09-12 22:53:28 +02:00
|
|
|
enum ConstantsNightScout {
|
|
|
|
|
|
|
|
/// maximum number of days to upload
|
|
|
|
static let maxDaysToUpload = 7
|
2020-04-09 23:53:37 +02:00
|
|
|
|
|
|
|
/// - default nightscout url
|
|
|
|
/// - used in settings, when setting first time nightscout url
|
|
|
|
static let defaultNightScoutUrl = "https://yoursitename.herokuapp.com"
|
|
|
|
|
2020-12-19 10:37:05 +01:00
|
|
|
|
|
|
|
/// if the time between the last and last but one reading is less than minimiumTimeBetweenTwoReadingsInMinutes, then the last reading will not be uploaded - except if there's been a disconnect in between these two readings
|
|
|
|
static let minimiumTimeBetweenTwoReadingsInMinutes = 4.75
|
|
|
|
|
2021-03-04 23:00:50 +01:00
|
|
|
/// there's al imit of 102400 bytes to upload to NightScout, this corresponds on average to 400 readings. Setting a lower maximum value to avoid to bypass this limit.
|
|
|
|
static let maxReadingsToUpload = 300
|
|
|
|
|
2019-09-12 22:53:28 +02:00
|
|
|
}
|