xdripswift/xdrip/Constants/ConstantsNightScout.swift

18 lines
811 B
Swift
Raw Normal View History

2019-09-12 22:53:28 +02:00
enum ConstantsNightScout {
/// maximum number of days to upload
static let maxDaysToUpload = 7
/// - default nightscout url
/// - used in settings, when setting first time nightscout url
static let defaultNightScoutUrl = "https://yoursitename.herokuapp.com"
/// 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
/// 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
}