Temperature from FIT/GPX in the profile chart, splits and summary
CI / check (push) Successful in 24s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-16 14:59:55 +01:00
1 parent e3f08f2267
commit ebd4852e98
5 files changed
+27 -12

No files matched your search

+2 -1
View File
@@ -231,7 +231,7 @@ module Maptool
end
private_class_method :process_point
# Heart rate/cadence/speed/power live in a device-specific <extensions> block
# Heart rate/cadence/speed/power/temperature live in a device-specific <extensions> block
# (usually Garmin's own TrackPointExtension) — matched by local element
# name only (`Element#name` already strips the namespace prefix), so
# this doesn't care which extension schema a given file actually
@@ -259,6 +259,7 @@ module Maptool
when "cad" then values[:cadence_rpm] = child.text&.strip&.to_i
when "speed" then values[:speed_mps] = child.text&.strip&.to_f
when "power", "PowerInWatts" then values[:power_w] = child.text&.strip&.to_i
when "atemp", "temp" then values[:temperature_c] = child.text&.strip&.to_f
end
collect_extension_values(child, values)
end