Skip to content
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

Closed
wants to merge 8 commits into from
Closed

Node Environmental updates #771

wants to merge 8 commits into from

Conversation

garthvh
Copy link
Member

@garthvh garthvh commented Jul 10, 2024

  • 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

Copy link
Contributor

@72A12F4E 72A12F4E left a 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)
Copy link
Contributor

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)
Copy link
Contributor

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 {
Copy link
Contributor

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

garthvh added 3 commits July 10, 2024 11:36
Conflicts:
	Meshtastic.xcodeproj/project.pbxproj
	Meshtastic/Views/Nodes/Helpers/NodeDetail.swift
@garthvh garthvh closed this Jul 12, 2024
@garthvh garthvh deleted the environmental-updates branch July 12, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants