pm5conv

package module
v0.0.0-...-5b22f16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

README

pm5conv

pm5conv converts binary data from Concept2 rowers with PM5 monitor to human readable text.

You can find releases on releases.gutmet.org or build it yourself.

build

You need to have Go installed. You can then build the executable with 'go build cmd/pm5conv.go'.

usage

Call pm5conv from the command line, with the path to your logbook directory as parameter. Example:

./pm5conv /media/alexander/myusbstick/Concept2/Logbook

or as Windows user with your USB stick as device 'F:', execute 'cmd' from the start menu, then:

cd C:\PATH\TO\PM5CONV
pm5conv F:\Concept2\Logbook

You will get JSON output to the command line. To save it to a file, redirect the output with '>', e.g.:

pm5conv F:\Concept2\Logbook > output.txt

final note

If you want to buy me a beer, just send inconspicuous envelopes.

Documentation

Index

Constants

View Source
const (
	FreeRow          WorkoutType = 0x01
	SingleDistance               = 0x03
	SingleTime                   = 0x05
	TimedInterval                = 0x06
	DistanceInterval             = 0x07
	VariableInterval             = 0x08
	SingleCalorie                = 0x0A
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Part

type Part struct {
	Duration             time.Duration
	Distance             uint16
	Heartrate            uint8
	RestHeartrate        uint8
	SPM                  uint8
	SplitType            uint8
	IntervalRestTime     time.Duration
	IntervalRestDistance uint16
}

type Workout

type Workout struct {
	Index             uint16
	Type              WorkoutType
	Date              time.Time
	UserID            uint16
	IntervalRestTime  time.Duration
	TotalDuration     time.Duration
	TotalDistance     uint16
	TotalRestDistance uint16

	PartDuration time.Duration
	PartDistance uint16
	PartCalories uint16
	Parts        []Part
	// contains filtered or unexported fields
}

func ConvWorkouts

func ConvWorkouts(dirname string) ([]*Workout, []error)

type WorkoutType

type WorkoutType uint8

func (WorkoutType) MarshalJSON

func (t WorkoutType) MarshalJSON() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL