Skip to content

Commit

Permalink
chore(README.md): update README with additional information and examples
Browse files Browse the repository at this point in the history
feat(README.md): add examples of training plans for a half marathon and a marathon

feat(README.md): add example image of the last 2 weeks of a training plan

fix(plan.go): remove redundant call to printPaces() function
  • Loading branch information
jandroav committed Dec 10, 2023
1 parent c3c6f51 commit f39021e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# vtrain
Utilidad para generar planes de entrenamiento de media maratón y maratón siguiente los métodos de Jack Daniels (VDOT)
Utilidad para generar planes de entrenamiento de media maratón y maratón siguiente los métodos de [Jack Daniels](https://en.wikipedia.org/wiki/Jack_Daniels_(coach)) ([VDOT](https://planesmaraton.com/2018/10/20/entrenamiento-de-jack-daniels-el-parametro-vdot/)). Con su metodología he conseguido bajar de 2h46 en maratón (Atenas) en 2019 a 2h36 en Valencia 2022 y 2h28 en Valencia 2023.

Puedes consultar más información en [su libro](https://www.amazon.com/Daniels-Running-Formula-Jack-Tupper/dp/1450431836).

Todos los planes son de 3 meses a partir de la fecha de la carrera a preparar.

## Ejemplos

Plan de entreno para media maratón de Sevilla 2024:

```bash
vtrain plan --distancia 21 --fechaCarrera 2024-01-28 --tiempoObjetivo 01:35:00
```

Plan de entreno para maratón de Valencia 2024:

```bash
vtrain plan --distancia 42 --fechaCarrera 2024-01-21 --tiempoObjetivo 02:28:00
```

Ejemplo de las últimas 2 semanas:

![](/doc/img/sample.png)


* [Contribuye con vtrain](/doc/development.md)
* [CLI guidelines](/doc/guidelines.md)
Expand Down
Binary file added doc/img/sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions pkg/plan/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ func CreatePlan(vtrainConfig structs.VtrainConfig, distance string, raceDate str
fmt.Printf("\tDomingo\t\t(%s): Día de la carrera!!\n", startDate.AddDate(0, 0, (week-1)*7+7).Format("2006-01-02"))
}
fmt.Printf("\tKms: %s\n", km42)
printPaces(distance, raceTime)
}
if distanceInt == 21 {
// Generate the training sessions for the current week
Expand Down Expand Up @@ -286,9 +285,9 @@ func CreatePlan(vtrainConfig structs.VtrainConfig, distance string, raceDate str
fmt.Printf("\tDomingo\t\t(%s): Día de la carrera!!\n", startDate.AddDate(0, 0, (week-1)*7+7).Format("2006-01-02"))
}
fmt.Printf("\tKms: %s\n", km21)
printPaces(distance, raceTime)
}
}
printPaces(distance, raceTime)
return nil
}

Expand Down

0 comments on commit f39021e

Please sign in to comment.