Skip to content

Commit

Permalink
Update thermometer user guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Apr 13, 2024
1 parent 1719072 commit 11485e4
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class ThermometerSettingsFragment : AndromedaPreferenceFragment() {
}

onClick(preference(R.string.pref_thermometer_user_guide_button)){
UserGuideUtils.showGuide(this, R.raw.calibrating_thermometer)
UserGuideUtils.showGuide(this, R.raw.guide_settings_thermometer)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ object Guides {
)
}

val sensors = UserGuideCategory(
context.getString(R.string.sensors),
val settings = UserGuideCategory(
context.getString(R.string.settings),
listOfNotNull(
if (Sensors.hasBarometer(context)) UserGuide(
context.getString(R.string.barometer),
Expand All @@ -59,7 +59,7 @@ object Guides {
UserGuide(
context.getString(R.string.tool_thermometer_title),
null,
R.raw.calibrating_thermometer
R.raw.guide_settings_thermometer
),
)
)
Expand All @@ -77,6 +77,6 @@ object Guides {
)
)

return general + toolGuides + sensors
return general + toolGuides + settings
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
You can update the thermometer calibration from the thermometer settings (Trail Sense Settings > Sensors > Thermometer).
Thermometer settings can be found in Trail Sense Settings > Sensors > Thermometer.

## Source

On most phones, you should use this historic temperature source as it will be more accurate.

- **Historic** temperature is estimated from 30 years of historical data. It's usually accurate, but not during extreme weather. You can calibrate it if it's wrong for your location.
- **Sensor** temperature is read from the phone's built-in thermometer. It's often inaccurate because it's affected by the phone's CPU and battery. You can calibrate it to improve its accuracy. If you power off your phone for a while, you will get a more accurate reading from the sensor.

## Smoothing
To reduce noise in temperature readings, you can increase the smoothing setting. If using the historic temperature source, this is normally not needed.

If the Weather Monitor (see the Weather tool) is enabled, you will see a chart of the temperature history as recorded by your device. The colored line represents the calibrated temperature while the gray line represents the raw temperature. When you adjust the settings, the chart will update to show the new calibrated temperature. The goal is to have the colored line smoothly follow the gray line.

### Updating recorded temperatures

If you change the temperature source to "Historic", you can choose to update all previously recorded temperatures. This will replace the old temperatures with the estimated temperature from the historic data. This is useful if you previously recorded temperatures with the sensor and then switched to historic temperatures.
Expand Down
91 changes: 48 additions & 43 deletions site/guides.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,53 @@
const guides = [
'tool_astronomy',
'tool_augmented_reality',
'tool_battery',
'tool_beacons',
'tool_bubble_level',
'tool_cliff_height',
'tool_climate',
'tool_clinometer',
'tool_clock',
'tool_clouds',
'tool_convert',
'tool_diagnostics',
'tool_flashlight',
'tool_light_meter',
'tool_lightning_strike_distance',
'tool_metal_detector',
'tool_navigation',
'tool_notes',
'tool_packing_lists',
'tool_paths',
'tool_pedometer',
'tool_photo_maps',
'tool_qr_code_scanner',
'tool_recommended_apps',
'tool_ruler',
'tool_sensors',
'tool_solar_panel_aligner',
'tool_tools',
'tool_temperature_estimation',
'tool_tides',
'tool_triangulate_location',
'tool_water_boil_timer',
'tool_weather',
'tool_whistle',
'tool_white_noise',
'settings_barometer',
"tool_astronomy",
"tool_augmented_reality",
"tool_battery",
"tool_beacons",
"tool_bubble_level",
"tool_cliff_height",
"tool_climate",
"tool_clinometer",
"tool_clock",
"tool_clouds",
"tool_convert",
"tool_diagnostics",
"tool_flashlight",
"tool_light_meter",
"tool_lightning_strike_distance",
"tool_metal_detector",
"tool_navigation",
"tool_notes",
"tool_packing_lists",
"tool_paths",
"tool_pedometer",
"tool_photo_maps",
"tool_qr_code_scanner",
"tool_recommended_apps",
"tool_ruler",
"tool_sensors",
"tool_solar_panel_aligner",
"tool_tools",
"tool_temperature_estimation",
"tool_tides",
"tool_triangulate_location",
"tool_water_boil_timer",
"tool_weather",
"tool_whistle",
"tool_white_noise",
"settings_barometer",
"settings_thermometer",
];

// Populate the guide list
const guideList = document.querySelector('#guide-list');
const guideList = document.querySelector("#guide-list");
for (const guide of guides) {
const guideItem = document.createElement('a');
guideItem.innerText = guide.split('_').slice(1).map(w => w[0].toUpperCase() + w.slice(1)).join(' ');
guideItem.classList.add('guide-list-item');
guideItem.href = `guide?id=${guide}`;
guideList.appendChild(guideItem);
}
const guideItem = document.createElement("a");
guideItem.innerText = guide
.split("_")
.slice(1)
.map((w) => w[0].toUpperCase() + w.slice(1))
.join(" ");
guideItem.classList.add("guide-list-item");
guideItem.href = `guide?id=${guide}`;
guideList.appendChild(guideItem);
}

0 comments on commit 11485e4

Please sign in to comment.