Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class LocalStatsWidget : GlanceAppWidget, KoinComponent
Link copied to clipboard
class LocalStatsWidgetStateProvider(nodeRepository: NodeRepository, connectionStateProvider: ConnectionStateProvider)
Link copied to clipboard
data class LocalStatsWidgetUiState(val connectionState: ConnectionState = ConnectionState.Disconnected, val isConnecting: Boolean = false, val showContent: Boolean = false, val nodeShortName: String? = null, val nodeColors: Pair<Int, Int>? = null, val batteryLevel: Int = 0, val hasBattery: Boolean = false, val channelUtilization: Float = 0.0f, val channelUtilizationProgress: Float = 0.0f, val airUtilization: Float = 0.0f, val airUtilizationProgress: Float = 0.0f, val hasStats: Boolean = false, val numPacketsTx: Int = 0, val numPacketsRx: Int = 0, val numTxRelay: Int = 0, val numTxRelayCanceled: Int = 0, val noiseFloor: Int? = null, val numPacketsRxBad: Int = 0, val numTxDropped: Int = 0, val heapFreeBytes: Int = 0, val heapTotalBytes: Int = 0, val totalNodes: Int = 0, val onlineNodes: Int = 0, val uptimeSecs: Long = 0, val updateTimeMillis: Long = 0)
Link copied to clipboard

Picks the node a NodeTrackerWidget instance tracks. The launcher opens it when the widget is placed or reconfigured, and the widget opens it when its node has gone.

Link copied to clipboard
data class NodeTrackerInputs(val nodes: Map<Int, Node> = emptyMap(), val ourNode: Node? = null, val connectionState: ConnectionState = ConnectionState.Disconnected, val units: MeasurementSystem = MeasurementSystem.METRIC)

Everything a tracker needs besides its own node number, shared by every instance.

Link copied to clipboard
class NodeTrackerWidget : GlanceAppWidget, KoinComponent

Tracks one node the user picked: battery, signal, last heard, hops away and distance from our radio.

Link copied to clipboard
class NodeTrackerWidgetDataSource(nodeRepository: NodeRepository, connectionStateProvider: ConnectionStateProvider, localeUnitsProvider: LocaleUnitsProvider, scope: ApplicationCoroutineScope)
Link copied to clipboard
sealed interface NodeTrackerWidgetState

What one Node Tracker instance renders.

Link copied to clipboard
Link copied to clipboard

Configures one TelemetryWidget: the node, and the readings to hide. The launcher opens it when the widget is placed or reconfigured, and the widget opens it when its node has gone. A new widget starts on our own node when it reports telemetry, with every reading shown.

Link copied to clipboard

The Telemetry widget's page button: shows the next four readings, wrapping to the first, without opening the app.

Link copied to clipboard
class TelemetryWidget : GlanceAppWidget, KoinComponent

One node's environment, air quality and power readings as tiles (meshtastic/design#179). It renders only what the app has stored, and sends nothing over the mesh.

Link copied to clipboard
class TelemetryWidgetDataSource(nodeRepository: NodeRepository, meshLogRepository: MeshLogRepository, localeUnitsProvider: LocaleUnitsProvider, scope: ApplicationCoroutineScope)