Skip to content

Add property activity_notes #21

@ltaulell

Description

@ltaulell

Hi, it's a feature request.

I'm using google Fit, in manual mode. As sport is not detected, activity_type contains 'Other', but my manual input is stored in Activity.Notes, from a picklist.

I propose this very little patch, to extract Notes from tcx file:

(in tcxparser.py, after activity_type)

    @property
    def activity_notes(self):
        return [x.text for x in self.root.xpath('//ns:Notes', namespaces={'ns': namespace})]

can be used same way as activity_type. Manual Fit tcx file as example (inline xml, not my clever idea, see attached zip file):

(sorry for the edit, I really should'nt post past 10PM)

Fit_extracts.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions