Skip to content

Commit

Permalink
Make weather guide available on all devices
Browse files Browse the repository at this point in the history
Closes #2072
  • Loading branch information
kylecorry31 committed Nov 23, 2023
1 parent ea4fb60 commit 1576e7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ object Guides {

val weather = UserGuideCategory(
context.getString(R.string.weather), listOfNotNull(
if (Sensors.hasBarometer(context))
UserGuide(
context.getString(R.string.guide_weather_prediction_title),
null,
R.raw.weather
) else null,
UserGuide(
context.getString(R.string.guide_weather_prediction_title),
null,
R.raw.weather
),
if (Sensors.hasBarometer(context)) UserGuide(
context.getString(R.string.guide_barometer_calibration_title),
null,
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/raw/weather.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Weather prediction capabilities of Trail Sense
Trail Sense can give a rough prediction of the weather using your device's sensors. The prediction is a best guess, and may not be accurate.

On some devices, the Weather tool may not be available. This is due to the device not having a barometer sensor, which measures air pressure.

## Understanding pressure

As a general rule, air pressure drops as a storm approaches. But pressure also changes when you change elevation, so if you're hiking in the mountains, Trail Sense's forecasts might not be as accurate.
Expand Down

0 comments on commit 1576e7f

Please sign in to comment.