Miscellaneous datatypes

class pygarmin.datatype.Lap

Bases: DataType

is_valid_avg_heart_rate()

Return whether the cadence is valid.

A avg_heart_rate value of 0 indicates that this parameter is not supported or unknown.

is_valid_max_heart_rate()

Return whether the cadence is valid.

A max_heart_rate value of 0 indicates that this parameter is not supported or unknown.

is_valid_avg_cadence()

Return whether the average cadence is valid.

A cadence value of 0xFF indicates that this parameter is not supported or unknown.

class pygarmin.datatype.D906

Bases: Lap

class pygarmin.datatype.D907

Bases: DataType

Undocumented datatype.

class pygarmin.datatype.D908

Bases: DataType

Undocumented datatype.

class pygarmin.datatype.D909

Bases: DataType

Undocumented datatype.

class pygarmin.datatype.D910

Bases: DataType

Undocumented datatype.

class pygarmin.datatype.Step(custom_name=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', target_custom_zone_low=0, target_custom_zone_high=0, duration_value=0, intensity=0, duration_type=0, target_type=0, target_value=0, unused=0)

Bases: DataType

class pygarmin.datatype.Run

Bases: DataType

class pygarmin.datatype.VirtualPartner

Bases: DataType

class pygarmin.datatype.Workout(num_valid_steps=0, steps=[], name=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', sport_type=0)

Bases: DataType

class pygarmin.datatype.D1000

Bases: Run

class pygarmin.datatype.D1001

Bases: Lap

class pygarmin.datatype.D1002(num_valid_steps=0, steps=[], name=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', sport_type=0)

Bases: Workout

class pygarmin.datatype.WorkoutOccurrence

Bases: DataType

class pygarmin.datatype.D1003

Bases: WorkoutOccurrence

class pygarmin.datatype.HeartRateZone(low_heart_rate=0, high_heart_rate=0, unused=0)

Bases: DataType

class pygarmin.datatype.SpeedZone(low_speed=0, high_speed=0, name=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')

Bases: DataType

class pygarmin.datatype.Activity(heart_rate_zones=[[93, 111, 0], [111, 130, 0], [130, 148, 0], [148, 167, 0], [167, 185, 0]], speed_zones=[[0.6705600023269653, 1.3410999774932861, b'Snail\x00\x00\x00\xb4\xd6!\x00i\xa0\x10\x04'], [1.3410999774932861, 1.6763999462127686, b'Turtle\x00\x00\xa8\x00"\x00B\x00\x00\x00'], [1.6763999462127686, 2.4384000301361084, b'Squirrel\x00\x00\x00\x00\xb4\xd6!\x00'], [2.4384000301361084, 3.829900026321411, b'Elephant\x00\x00\x00\x00\xf8\x00!\x00'], [3.829900026321411, 4.0, b'Rabbit\x00\x04G\x9a\x10\x04\x14\x00\x00\x00'], [4.0, 5.0, b'Greyhound\x00\x00\x00?g\x10\x04'], [5.0, 6.0, b'Horse\x00!\x00\xf8\x00\x00\x000\xd7!\x00'], [6.0, 7.0, b'Lion\x00\xd7!\x00\x0c\x00\x00\x00\xf8\x00\x00\x00'], [7.0, 8.0, b'Antelope\x00/A\x00\xff\x00\x00\x00'], [8.0, 9.0, b'Cheetah\x00runnB\x00\x00\x00']], gear_weight=0.0, max_heart_rate=0, unused1=0, unused2=0)

Bases: DataType

class pygarmin.datatype.FitnessUserProfile

Bases: DataType

class pygarmin.datatype.D1004

Bases: FitnessUserProfile

class pygarmin.datatype.WorkoutLimits

Bases: DataType

class pygarmin.datatype.D1005

Bases: WorkoutLimits

class pygarmin.datatype.Course

Bases: DataType

class pygarmin.datatype.D1006

Bases: Course

class pygarmin.datatype.CourseLap

Bases: DataType

is_valid_avg_heart_rate()

Return whether the cadence is valid.

A avg_heart_rate value of 0 indicates that this parameter is not supported or unknown.

is_valid_max_heart_rate()

Return whether the cadence is valid.

A max_heart_rate value of 0 indicates that this parameter is not supported or unknown.

is_valid_avg_cadence()

Return whether the average cadence is valid.

A cadence value of 0xFF indicates that this parameter is not supported or unknown.

class pygarmin.datatype.D1007

Bases: CourseLap

class pygarmin.datatype.D1008(num_valid_steps=0, steps=[], name=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', sport_type=0)

Bases: Workout

class pygarmin.datatype.D1009

Bases: Run

get_track_index()

Return the track_index.

The value of the track_index member must be 0xFFFF if there is no associated track.

is_virtual_partner_run()

Return whether the virtual partner bit is set.

has_workout()

Return whether the workout bit is set.

is_quick_workout()

Return whether the quick workout bit is set.

has_course()

Return whether the course bit is set.

is_interval_workout()

Return whether the interval workout bit is set.

is_auto_multisport()

Return whether the auto MultiSport bit is set.

If the auto MultiSport bit is set in the program_type member, and if the last lap in the run is a rest lap, then that last lap’s time represents the time during which the user was transitioning to the next sport.

get_multisport()

Return the multisport value.

class pygarmin.datatype.D1010

Bases: Run

class pygarmin.datatype.D1011

Bases: Lap

class pygarmin.datatype.CoursePoint

Bases: DataType

class pygarmin.datatype.D1012

Bases: CoursePoint

class pygarmin.datatype.CourseLimits

Bases: DataType

class pygarmin.datatype.D1013

Bases: CourseLimits

class pygarmin.datatype.D1015

Bases: D1011

Undocumented datatype.