mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Add soil temperature and soil moisture environmental metrics to app (#2419)
Co-authored-by: DaneEvans <dane@goneepic.com>
This commit is contained in:
parent
8a0ad26d4e
commit
fbd62cbf10
10 changed files with 158 additions and 14 deletions
|
|
@ -762,6 +762,20 @@ private fun EnvironmentMetrics(
|
|||
value = dewPoint.toTempString(isFahrenheit)
|
||||
)
|
||||
}
|
||||
if (hasSoilTemperature()) {
|
||||
InfoCard(
|
||||
icon = ImageVector.vectorResource(R.drawable.soil_temperature),
|
||||
text = stringResource(R.string.soil_temperature),
|
||||
value = soilTemperature.toTempString(isFahrenheit)
|
||||
)
|
||||
}
|
||||
if (hasSoilMoisture()) {
|
||||
InfoCard(
|
||||
icon = ImageVector.vectorResource(R.drawable.soil_moisture),
|
||||
text = stringResource(R.string.soil_moisture),
|
||||
value = "%d%%".format(soilMoisture)
|
||||
)
|
||||
}
|
||||
if (hasBarometricPressure()) {
|
||||
InfoCard(
|
||||
icon = Icons.Default.Speed,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue