Skip to content

Get current navigated track data into tasker variable #26

@algil

Description

@algil

Hi,
Question: - Can the Locus/Tasker plugin get the currently guided/navigated track from Locus into a tasker variable in e.g GPX format ?
I can see that the trackID is available in "Request Sensors and Stats"/guide_target_id, and there appears to be a Locus API for it as in https://github.com/asamm/locus-api/wiki/Work-with-known-track but I can't see an option in the plugin config to use this.

Currently I am using the tasker/Autoinput plugin (button pushing/screen-scraping) to export the current track to a file then reading it in tasker. I use this after Recalculate or Navigate-to actions. However this is vulnerable to changes in Locus, changes in Android, timing issues, and needs screen on etc, so is not ideal.

If it's not currently available in the Locus/tasker plugin could it be added ? My tasker/JS code currently expects gpx format so getTrackInFormat would be good. I'm not sure what the Locus track object structure is (getTrack) - can't see it documented anywhere, so not sure if suitable.

Thanks
Alan

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