Add forecasts to the watchapp - #1306
Conversation
|
Forecast is cool 👏 . Combined view does not work out – everything is clashing. |
|
Sending forecast worked out pretty well. After a fresh install, the watch app loads a bit, but after that, the updates are coming in not any slower than before. Maybe before merging other Peps wanna try out the pr... to really exclude performance issues bc of performance issues i first tried to calc taylor polynomials but they where not worth the hustle. since when the graph is bottoming out they freakout. thats why I stuck to the live activity implementation, since this also has a tight data envelope. |
|
okay, I'll remove the combined view. looking forward to some test reports :) |
|
i'd still change the normal chart view behaviour to scale the y-axis range to the min and max value of the glucose+forecast values to that the forecast is better visible |
11ec965 to
d5be702
Compare
marv-out
left a comment
There was a problem hiding this comment.
Generally looking good code-wise. Haven't tested it yet. A few comments though that should be addressed before merging. And ideally a few people would test that before that gets in
|
|
||
| /* Begin PBXBuildFile section */ | ||
| 041D1E995A6AE92E9289DC49 /* TreatmentsDataFlow.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8D1A7CA8C10C4403D4BBFA7 /* TreatmentsDataFlow.swift */; }; | ||
| 09701ADF300546BE00D4F5C4 /* CombinedGlucoseChartview.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09701ADE300546BE00D4F5C4 /* CombinedGlucoseChartview.swift */; }; |
There was a problem hiding this comment.
pls clean the project file as you've removed the CombinedGlucoseChartView
| /* End PBXCopyFilesBuildPhase section */ | ||
|
|
||
| /* Begin PBXFileReference section */ | ||
| 09701ADE300546BE00D4F5C4 /* CombinedGlucoseChartview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CombinedGlucoseChartview.swift; sourceTree = "<group>"; }; |
| BDA25F222D26D62800035F34 /* BolusInputView.swift in Sources */, | ||
| BDFF7A882D25F97D0016C40C /* TrioMainWatchView.swift in Sources */, | ||
| BDA25F202D26D5FE00035F34 /* CarbsInputView.swift in Sources */, | ||
| 09701ADF300546BE00D4F5C4 /* CombinedGlucoseChartview.swift in Sources */, |
| DD8262CA2D289297009F6F62 /* BolusConfirmationView.swift */, | ||
| BDA25F212D26D62200035F34 /* BolusInputView.swift */, | ||
| BDA25F1F2D26D5FB00035F34 /* CarbsInputView.swift */, | ||
| 09701ADE300546BE00D4F5C4 /* CombinedGlucoseChartview.swift */, |
| BD11C001000000000000C001 /* CGMSensorDisplayState.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD11C000000000000000C001 /* CGMSensorDisplayState.swift */; }; | ||
| BD11C001000000000000C003 /* SensorLifecycleArcView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD11C000000000000000C003 /* SensorLifecycleArcView.swift */; }; | ||
| BD11C001000000000000C004 /* SensorStatusTagView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD11C000000000000000C004 /* SensorStatusTagView.swift */; }; | ||
| BD136FAE2F6AC55F002217F9 /* NSFetchedResultsControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD136FAD2F6AC555002217F9 /* NSFetchedResultsControllerDelegate.swift */; }; |
There was a problem hiding this comment.
i don't know why Xcode for me randomly moves definitions in the project file... seems like it did not change anything
|
Corrected it, sould I ask in the discord? |


this PR adds the ability to display the Forecast (model take by the forecasts for the live activity) on watch app
chart in chartview was adjusted to span the y-axis over the min and max value of currently selected time range(values of cone or forecast lines included)
Different view with either cone true and false



(bg color is not altered in this pr only on my branche)
settings:
