-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node Environmental updates #771
Conversation
garthvh
commented
Jul 10, 2024
•
edited
Loading
edited
- Move weather kit widget that is only on the iOS 16 node map into a view so it can be reused
- Add the legend to the IAQ Display variants
Conflicts: Meshtastic/Views/Settings/AppSettings.swift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few nits
@@ -25,7 +25,7 @@ struct IAQScale: View { | |||
.background(.thinMaterial, in: RoundedRectangle(cornerRadius: 20, style: .continuous)) | |||
// .overlay( | |||
// RoundedRectangle(cornerRadius: 20) | |||
// .stroke(.secondary, lineWidth: 5) | |||
// .stroke(.secondary, lineWidth: 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: delete commented code
if UserDefaults.environmentEnableWeatherKit || (node.telemetryConfig?.environmentMeasurementEnabled ?? false) { | ||
Section("Environment") { | ||
LocalWeatherConditions(location: node.latestPosition?.nodeLocation) | ||
// NodeWeatherForecastView(location: node.latestPosition?.nodeLocation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: commented code
@@ -23,6 +26,30 @@ struct AppSettings: View { | |||
} | |||
} | |||
} | |||
let connectedNode = getNodeInfo(id: bleManager.connectedPeripheral?.num ?? -1, context: context) | |||
Section(header: Text("environment")) { | |||
if true { //connectedNode?.hasEnvironmentMetrics ?? false { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: redundant if statement with commented code
Conflicts: Meshtastic.xcodeproj/project.pbxproj Meshtastic/Views/Nodes/Helpers/NodeDetail.swift