An open API service indexing awesome lists of open source software.

https://github.com/nce/tourenbuchctl

A go application managing my personal outdoor activity log book
https://github.com/nce/tourenbuchctl

gnuplot go gpx latex oauth strava-api

Last synced: 3 months ago
JSON representation

A go application managing my personal outdoor activity log book

Awesome Lists containing this project

README

          

# :books: tourenbuchctl
![GitHub branch check runs](https://img.shields.io/github/check-runs/nce/tourenbuchctl/main)
![GitHub Release](https://img.shields.io/github/v/release/nce/tourenbuchctl)

This is a tool for working with my `tourenbuch`.

`Tourenbuch` is a digital & printed log book of my personal outdoor sports activities.
Each activity consists of gpx tracks, map, stats, plotted elevation graphs and an
overall summaray/description.

This CLI helps me to interact with it. Until i release more information about
my (private) Tourenbuch, it's probably not useful for anyone.

See the example of an activity page below:





# :grey_question: How does this work
I'm using two local folders:
* `textdir` (← a (private) git repository containing my written/text elements)
* `assetdir` (← a cloud synced folder containing my images/gpx/asset elements)

tbc.

# :mountain_bicyclist: Usage

### New Single Day activity
```sh
tourenbuchctl new mtb -d -t ""
tourenbuchctl new skitour --max-elevation <1234> -d -t ""

```

### New Multiday activity
```sh
tourenbuchctl new mtb transalp-2013/ -d -t '' -m -c "" -y -r
```

# :hammer: Tech Details

## Strava
Activity stats like distance or climbed elevation get queried from strava and
parsed in the Tourenbuch.

# Dev

## Prerequisites
### Swagger
Go-swagger is incompatible with 3.x api defintion of strava...
And strava declared their current 3.x api incompatible with swaggerv3. I played
around with different `2.x` releases, which in fact generated a different codebase.
I [struggled with](#13) `swagger-codegen-cli-v3:3.0.58` on the `ActivitiesApiUpdateActivityByIdOpts`,
switching to `2.4.43` solved the problem, though generated a wrong `model_lat_long.go`, which i
had [to patch](https://github.com/nce/tourenbuchctl/blob/e2147617af8eaaae55847c9ee69f8fa6b2eb1e41/pkg/stravaapi/model_lat_lng.go#L12-L16).

Refer to the [Makefile](Makefile) for the current swagger build.