mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Added support for the TrainerDay workouts/find API (#4522)
* Added support for the TrainerDay workouts/find API * Added a new (optional) tab to the TrainerDay workouts download dialog * Deferring loading of the classic list of workouts until this tab is activated * Implemented the API for TrainerDays /workouts/find (see https://api.trainerday.com/api-explorer/) * Visualizing the workouts using a colored ErgFilePlot * Modified ErgFilePlot::setData to directly use the data of the given ErgFile instead of falling back to the ErgFile set in the context (required to display multiple plots at once) * Added a simplified version of the existing workouts query sytnax (supported verbs: duration, dominantzone) * Saving the workouts as trainerday-<hash>.erg * Using the segments-section as input for the hash and to identify duplicates * Functionality can be enabled in gcconfig.pri (GC_WANT_TRAINERDAY_API) * Prepared the travis-scripts before_script.sh to inject the API key to Secrets.h * Prepared appveyor.yml to inject the API key to Secrets.h * Patching GC_TRAINERDAY_API_PAGESIZE for appveyor * Configured api key for TrainerDay in appveyor
This commit is contained in:
committed by
GitHub
parent
0a8e0b6cc8
commit
ef716f8568
@@ -42,6 +42,8 @@ environment:
|
||||
secure: /1rVLT8LyJCZ4xNJ5W+NtAcZ1rtKaUjW9SYm/T3gHoc=
|
||||
GC_AZUM_CLIENT_SECRET:
|
||||
secure: 2ZpXsA3TQv1zftYVyZSF6f83ftCzza+K22ZX1doj7Yc/5dmGl1bnsSeVChJgJ8lQ2fRPYpdmun9cjqwcrtG/zXTTsYuTvYWegHz/4Y0u6Mg=
|
||||
GC_TRAINERDAY_API_KEY:
|
||||
secure: nDgxUdgLkp0+gaxKRCaAVD5WYAl9pLmOnZ9JLSx3ulqT346nieakd02V3Q7dZYEU
|
||||
|
||||
init:
|
||||
# Setup QT 5.15 - 64Bit
|
||||
@@ -133,6 +135,10 @@ before_build:
|
||||
# Add Train Robot
|
||||
- echo DEFINES+=GC_WANT_ROBOT >> src\gcconfig.pri
|
||||
|
||||
# Enable TrainerDay Query API; pagesize depends on the keys remote configuration
|
||||
- echo DEFINES+=GC_WANT_TRAINERDAY_API >> src\gcconfig.pri
|
||||
- echo DEFINES+=GC_TRAINERDAY_API_PAGESIZE=25 >> src\gcconfig.pri
|
||||
|
||||
# Avoid macro redefinition warnings
|
||||
- echo DEFINES+=_MATH_DEFINES_DEFINED >> src\gcconfig.pri
|
||||
|
||||
@@ -160,6 +166,7 @@ before_build:
|
||||
- ps: (Get-Content src\Core\Secrets.h) -replace '__GC_NOLIO_SECRET__', $env:GC_NOLIO_SECRET | Set-Content src\Core\Secrets.h
|
||||
- ps: (Get-Content src\Core\Secrets.h) -replace '__GC_XERT_CLIENT_SECRET__', $env:GC_XERT_CLIENT_SECRET | Set-Content src\Core\Secrets.h
|
||||
- ps: (Get-Content src\Core\Secrets.h) -replace '__GC_AZUM_CLIENT_SECRET__', $env:GC_AZUM_CLIENT_SECRET | Set-Content src\Core\Secrets.h
|
||||
- ps: (Get-Content src\Core\Secrets.h) -replace '__GC_TRAINERDAY_API_KEY', $env:GC_TRAINERDAY_API_KEY | Set-Content src\Core\Secrets.h
|
||||
|
||||
build_script:
|
||||
- qmake.exe build.pro -r -spec win32-msvc
|
||||
|
||||
Reference in New Issue
Block a user