forked from nightscout/Trio
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import Profile Settings from Nightcsout (nightscout#238)
Import Basal settings, carb ratios, sensitivities and glucose targets from Nightscout manually when tapping "Import Settings from Nightcsout"in the iAPS Nightscout settings. co-author @dnzxy
- Loading branch information
Showing
14 changed files
with
350 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Foundation | ||
|
||
struct FetchedNightscoutProfileStore: JSON { | ||
let _id: String | ||
let defaultProfile: String | ||
let startDate: String | ||
let mills: Decimal | ||
let enteredBy: String | ||
let store: [String: ScheduledNightscoutProfile] | ||
let created_at: String | ||
} | ||
|
||
struct FetchedNightscoutProfile: JSON { | ||
let dia: Decimal | ||
let carbs_hr: Int | ||
let delay: Decimal | ||
let timezone: String | ||
let target_low: [NightscoutTimevalue] | ||
let target_high: [NightscoutTimevalue] | ||
let sens: [NightscoutTimevalue] | ||
let basal: [NightscoutTimevalue] | ||
let carbratio: [NightscoutTimevalue] | ||
let units: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Foundation | ||
|
||
struct FetchedNightscoutProfileStore: JSON { | ||
let _id: String | ||
let defaultProfile: String | ||
let startDate: String | ||
let mills: Decimal | ||
let enteredBy: String | ||
let store: [String: ScheduledNightscoutProfile] | ||
let created_at: String | ||
} | ||
|
||
struct FetchedNightscoutProfile: JSON { | ||
let dia: Decimal | ||
let carbs_hr: Int | ||
let delay: Decimal | ||
let timezone: String | ||
let target_low: [NightscoutTimevalue] | ||
let target_high: [NightscoutTimevalue] | ||
let sens: [NightscoutTimevalue] | ||
let basal: [NightscoutTimevalue] | ||
let carbratio: [NightscoutTimevalue] | ||
let units: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.