From 93aa49ad922d9c62edfcecc9c62d02ecaca8fc05 Mon Sep 17 00:00:00 2001 From: oldnapalm <38410858+oldnapalm@users.noreply.github.com> Date: Fri, 9 Aug 2024 09:21:24 -0300 Subject: [PATCH] Update instructions --- LEIAME.md | 7 ++++--- README.md | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/LEIAME.md b/LEIAME.md index fae4fd2..cdc1e0c 100644 --- a/LEIAME.md +++ b/LEIAME.md @@ -18,9 +18,10 @@ Para usar o Zwift online normalmente, abra o atalho **hosts** e remova a linha c ## Para carregar as atividades no Strava (opcional): -* Execute o **strava_auth** e autorize quando o Firewall do Windows perguntar. +* Obtenha o CLIENT_ID e CLIENT_SECRET de https://www.strava.com/settings/api +* Execute ``strava_auth.exe --client-id CLIENT_ID --client-secret CLIENT_SECRET`` e autorize quando o Firewall do Windows perguntar. * Abra http://localhost:8000/ no navegador, faça login no Strava e autorize o zwift-offline a carregar suas atividades. -* Será criado um arquivo **strava_token**, mova esse arquivo para a pasta ``storage\1``. +* Será criado um arquivo ``strava_token.txt``, mova esse arquivo para a pasta ``storage\1``. * Se estiver testando, ande pelo menos 300 metros, atividades mais curtas não serão carregadas. Entre no grupo **zoffline** no Strava https://www.strava.com/clubs/zoffline @@ -29,4 +30,4 @@ Entre no grupo **zoffline** no Strava https://www.strava.com/clubs/zoffline * Desative o zwift-offline (veja [Ativando/Desativando o zwift-offline](https://github.com/oldnapalm/zoffline-helper/blob/master/LEIAME.md#ativandodesativando-o-zwift-offline) acima). * Execute o **get_profile**, digite seu login do Zwift (e-mail) e sua senha. -* Serão criados os arquivos **profile.bin** e **achievements.bin**, mova esses arquivos para a pasta ``storage\1``. +* Serão criados os arquivos ``profile.bin`` e ``achievements.bin``, mova esses arquivos para a pasta ``storage\1``. diff --git a/README.md b/README.md index 102db56..061526b 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,10 @@ To use Zwift online like normal, open the **hosts** shortcut and comment out or ## To upload activities to Strava (optional): -* Run **strava_auth** and allow it in Windows Firewall. +* Get CLIENT_ID and CLIENT_SECRET from https://www.strava.com/settings/api +* Run ``strava_auth.exe --client-id CLIENT_ID --client-secret CLIENT_SECRET`` and allow it in Windows Firewall. * Open http://localhost:8000/ and authorize. -* Move the resulting strava_token.txt into the ``storage\1`` directory. +* Move the resulting ``strava_token.txt`` into the ``storage\1`` directory. * If testing, ride at least 300 meters, shorter activities won't be uploaded. Join the **zoffline** Strava group https://www.strava.com/clubs/zoffline @@ -29,4 +30,4 @@ Join the **zoffline** Strava group https://www.strava.com/clubs/zoffline * Disable zwift-offline (see [Enabling/Disabling zwift-offline](https://github.com/oldnapalm/zoffline-helper#enablingdisabling-zwift-offline) above). * Run **get_profile**, type your Zwift login (e-mail) and password. -* Move the resulting profile.bin and achievements.bin into the ``storage\1`` directory. +* Move the resulting ``profile.bin`` and ``achievements.bin`` into the ``storage\1`` directory.