Skip to content

Commit

Permalink
New lines
Browse files Browse the repository at this point in the history
  • Loading branch information
garthvh committed Jul 17, 2024
1 parent 732bfbd commit d9ae3bf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
24 changes: 18 additions & 6 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@
},
"8" : {

},
"10% Airtime" : {

},
"25" : {

Expand Down Expand Up @@ -672,6 +675,9 @@
}
}
}
},
"Airtime" : {

},
"AirTm" : {

Expand Down Expand Up @@ -1406,6 +1412,9 @@
},
"Backup Database" : {

},
"Bad" : {

},
"Bandwidth" : {

Expand Down Expand Up @@ -8264,13 +8273,13 @@
"How long the screen remains on after the user button is pressed or messages are received." : {

},
"How often device metrics are sent out over the mesh. Default is 15 minutes." : {
"How often device metrics are sent out over the mesh. Default is 30 minutes." : {

},
"How often power metrics are sent out over the mesh. Default is 15 minutes." : {
"How often power metrics are sent out over the mesh. Default is 30 minutes." : {

},
"How often sensor metrics are sent out over the mesh. Default is 15 minutes." : {
"How often sensor metrics are sent out over the mesh. Default is 30 minutes." : {

},
"How often should we try to get a GPS position." : {
Expand Down Expand Up @@ -10843,9 +10852,6 @@
},
"Licensed Operator" : {

},
"Limit" : {

},
"Limit all periodic broadcast intervals especially telemetry and position. If you need to increase hops, do it on nodes at the edges, not the ones in the middle. MQTT is not advised when you are duty cycle restricted because the gateway node is then doing all the work." : {

Expand Down Expand Up @@ -15225,6 +15231,12 @@
}
}
}
},
"Network Status Orange" : {

},
"Network Status Red" : {

},
"network.config" : {
"localizations" : {
Expand Down
20 changes: 14 additions & 6 deletions Meshtastic/Views/Nodes/DeviceMetricsLog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct DeviceMetricsLog: View {
@State var exportString = ""

@State private var batteryChartColor: Color = .blue
@State private var airtimeChartColor: Color = .orange
@State private var airtimeChartColor: Color = .yellow
@State private var channelUtilizationChartColor: Color = .green
@ObservedObject var node: NodeInfoEntity

Expand Down Expand Up @@ -57,9 +57,17 @@ struct DeviceMetricsLog: View {
.accessibilityValue("X: \(point.time!), Y: \(point.channelUtilization)")
.foregroundStyle(channelUtilizationChartColor)

RuleMark(y: .value("Limit", 10))
RuleMark(y: .value("10% Airtime", 10))
.lineStyle(StrokeStyle(lineWidth: 1, dash: [5, 10]))
.foregroundStyle(airtimeChartColor)
.foregroundStyle(.yellow)

RuleMark(y: .value("Network Status Orange", 25))
.lineStyle(StrokeStyle(lineWidth: 1, dash: [5, 10]))
.foregroundStyle(.orange)

RuleMark(y: .value("Network Status Red", 50))
.lineStyle(StrokeStyle(lineWidth: 1, dash: [5, 10]))
.foregroundStyle(.red)

Plot {
PointMark(
Expand All @@ -79,9 +87,9 @@ struct DeviceMetricsLog: View {
.chartXAxis(.automatic)
.chartYScale(domain: 0...100)
.chartForegroundStyleScale([
"Battery Level": .blue,
"Channel Utilization": .green,
"Airtime": .orange
"Battery Level": batteryChartColor,
"Channel Utilization": channelUtilizationChartColor,
"Airtime": airtimeChartColor
])
.chartLegend(position: .automatic, alignment: .bottom)
}
Expand Down
2 changes: 1 addition & 1 deletion protobufs

0 comments on commit d9ae3bf

Please sign in to comment.