Commit Graph

10458 Commits

Author SHA1 Message Date
Alejandro Martinez
46bfab5c8b Overview - Use sport instead of isRun/isSwim
It is simpler and more general to get activities from the same sport.
2023-01-24 20:37:03 -03:00
jgpallero
663bde04c5 Update Spanish translation (#4322) 2023-01-23 11:22:08 -03:00
Alejandro Martinez
30895b028d Update translation files to include latest strings 2023-01-23 09:43:12 -03:00
vlcvboyer
af21c35022 FIT Files - Update sport list and sub sports (#4315)
* move sports list in a function for other calls
* Decode sport and sub-sport and push into activity tag
* Remove inaccurate comments
* Populate additional sports ID from documentation
* use of standardized RideFile::sport()

Fixes #4312
Fixes #4313
2023-01-21 18:58:30 -03:00
Alejandro Martinez
68c795440c Add test FIT file from Garmin 945 swim with RR data
[skip ci]
2023-01-20 20:58:53 -03:00
vlcvboyer
dfe572c005 Collect R-R data from Garmin HRM swim (#4319)
Fixes #4024
2023-01-20 20:51:16 -03:00
Alejandro Martinez
ef0eac8908 Estimator - Use normalized Sport names
Otherwise Rowing will not match Row activities, for example.
Continuation of cc5eaf4
2023-01-18 21:29:05 -03:00
Alejandro Martinez
9531acf366 Remove Garmin devices already included in latest FIT SDK 2023-01-18 21:27:39 -03:00
Alejandro Martinez
6f6d7c6a8f Biweekly snapshot build update
[publish binaries]
Cumulative changes from RC3
523d2d1 Update FITmetadata.json to FIT SDK 21.94
bfa4b4b DataFilter - Metric aggretation honors AggregateZero and Count
c65f313 Revert "DataFilter - use RideCache::getAggregate continuation"
e95d116 DataFilter - Avoid crashes when no ride is selected
3c3d202 Fix DataFilter use of PowerIndex
cc5eaf4 Estimates and Performances - Generalize to any sport with power data (#4307)
abb69b8 DialWindow - Fix rolling average initialization
841766e DataFilter - use RideCache::getAggregate continuation
afbb43e DataFilter - asaggstring uses RideCache::getAggregate
33ba1c0 FitRideFile - Avoid crashes on multi-sessions from CloudServices
018bd40 FTMS: Add support for Spin Down Calibration (#4073)
4f97bae DOB - display using 4 digits year
dfeb853 macOS plist - Add required BTLE keys for newer versions
2a99c87 Python 3.7.15 AppImage is no longer available, upgrade to 3.7.16 (#4299)
0296693 Workout Chart - Imperial units support (#4232)
8919eab Map Chart - Update default Tile Servers
7d0e6de Bug Fixes for live map base url and remove erroneous debug message (#3901)
1c5bbec Train - Improve L/R Balance Dial display
8e0b0a6 R/Python API - Sport case insensitive in Athlete Zones
b08e662 Train - Show lap notifications only when available
2c3eabd RideCache - Fix refresh to inclu=de the oldest activity
9c7d1d4 Strava Sync - Tag simulation rides as VirtualRide
53f8f51 Fix memory leak in Python API - part 2
e477b05 ErgDB Download - Decode title to be used as name
3a16d1e Keep Perspective Selecto synced when switching athletes
63d13ba Update Italian translation
f947b6b VideoSync - Distance scaling only applies to CRS workouts
67962bf Fix memory leak in Python API
5f22d12 fix(doc): mention QMAKE_MOVE requirement for bison > 3.7
996ee63 Remove MapQuest API Key from gcconfig.pri.in
a7ad134 Measures CSV Import - Last field can be empty
90172a4 Replace Tracker in default Trends layout
68b70e0 Fix Elevation - Avoid 302 network error
434580e Disable execution of Python DPs from formulas and Python API
cb23914 Honor chart filters in Trends view Histogram and CP charts (#4287)
1941b9a Minimum bison version is now 2.7
2023-01-17 18:59:11 -03:00
Alejandro Martinez
523d2d1909 Update FITmetadata.json to FIT SDK 21.94 2023-01-17 18:48:35 -03:00
Alejandro Martinez
bfa4b4b977 DataFilter - Metric aggretation honors AggregateZero and Count
When computing metric averages
2023-01-16 12:54:29 -03:00
Alejandro Martinez
c65f313de5 Revert "DataFilter - use RideCache::getAggregate continuation"
This reverts commit 841766effb
since it provokes crashes in some Trends Overview charts.
TODO: fix aggregation to consider AggregateZero and count
properties of metrics.
2023-01-15 21:44:56 -03:00
Alejandro Martinez
b689d29653 Biweekly snapshot build
[publish binaries]
Cumulative changes from RC3
e95d11671 DataFilter - Avoid crashes when no ride is selected
3c3d2024a Fix DataFilter use of PowerIndex
cc5eaf418 Estimates and Performances - Generalize to any sport with power data (#4307)
abb69b8fb DialWindow - Fix rolling average initialization
841766eff DataFilter - use RideCache::getAggregate continuation
afbb43edd DataFilter - asaggstring uses RideCache::getAggregate
33ba1c03e FitRideFile - Avoid crashes on multi-sessions from CloudServices
018bd404e FTMS: Add support for Spin Down Calibration (#4073)
4f97bae97 DOB - display using 4 digits year
dfeb8532a macOS plist - Add required BTLE keys for newer versions
2a99c8762 Python 3.7.15 AppImage is no longer available, upgrade to 3.7.16 (#4299)
0296693dd Workout Chart - Imperial units support (#4232)
8919eab5b Map Chart - Update default Tile Servers
7d0e6de0b Bug Fixes for live map base url and remove erroneous debug message (#3901)
1c5bbecf1 Train - Improve L/R Balance Dial display
8e0b0a67a R/Python API - Sport case insensitive in Athlete Zones
b08e662c9 Train - Show lap notifications only when available
2c3eabdd8 RideCache - Fix refresh to inclu=de the oldest activity
9c7d1d4f3 Strava Sync - Tag simulation rides as VirtualRide
53f8f5102 Fix memory leak in Python API - part 2
e477b05a9 ErgDB Download - Decode title to be used as name
3a16d1ecc Keep Perspective Selecto synced when switching athletes
63d13ba9e Update Italian translation
f947b6bd3 VideoSync - Distance scaling only applies to CRS workouts
67962bfff Fix memory leak in Python API
5f22d12a6 fix(doc): mention QMAKE_MOVE requirement for bison > 3.7
996ee63cd Remove MapQuest API Key from gcconfig.pri.in
a7ad1346e Measures CSV Import - Last field can be empty
90172a4a6 Replace Tracker in default Trends layout
68b70e0e4 Fix Elevation - Avoid 302 network error
434580ee8 Disable execution of Python DPs from formulas and Python API
cb23914a5 Honor chart filters in Trends view Histogram and CP charts (#4287)
1941b9af7 Minimum bison version is now 2.7
2023-01-14 19:38:19 -03:00
Alejandro Martinez
e95d11671a DataFilter - Avoid crashes when no ride is selected
This is an edge case, no ride available or no one selected,
but it can happens, so lets avoid the crash.
2023-01-14 10:29:42 -03:00
Mark Liversedge
3c3d2024ac Fix DataFilter use of PowerIndex
.. 3rd param is not required as it gets defaulted, and has
   recently changed from bool to QString

Fixes #4308
2023-01-14 10:50:37 +00:00
Alejandro Martinez
cc5eaf4187 Estimates and Performances - Generalize to any sport with power data (#4307)
Weekly estimates and performances are precomputed for any sport
with power data, not just Bike and Run.
In Trends view both LTM charts and DataFilter select sport based
on applied filters: when all activities are from the same sport,
that is used to select estimates and performances, otherwise
Bike estimates and performances are used for backward compatibility.
This reverts 1a285d1050
2023-01-13 14:58:05 -03:00
Alejandro Martinez
abb69b8fb5 DialWindow - Fix rolling average initialization
Reported in #4298
2023-01-11 19:40:29 -03:00
Alejandro Martinez
841766effb DataFilter - use RideCache::getAggregate continuation
This completes afbb43edd1
2023-01-03 16:19:03 -03:00
Alejandro Martinez
afbb43edd1 DataFilter - asaggstring uses RideCache::getAggregate
For consistency and simplicity, getAggregate honors AggregateZero
and count properties of metrics, beside some special cases.
Fixes #4302
TODO: aggmetric and aggmetricstrings likely have a similar problem.
2023-01-02 15:38:50 -03:00
Alejandro Martinez
33ba1c03ec FitRideFile - Avoid crashes on multi-sessions from CloudServices
CloudServices doesn't request for multi-sessions and a crash
happens when available.
Reported at the forum by CloudServices developer.
2022-12-29 09:30:11 -03:00
Alejandro Martinez
bb972b7e8a Biweekly snapshot build
[publish binaries]
Cumulative changes from RC3
018bd404e FTMS: Add support for Spin Down Calibration (#4073)
4f97bae97 DOB - display using 4 digits year
dfeb8532a macOS plist - Add required BTLE keys for newer versions
2a99c8762 Python 3.7.15 AppImage is no longer available, upgrade to 3.7.16 (#4299)
0296693dd Workout Chart - Imperial units support (#4232)
8919eab5b Map Chart - Update default Tile Servers
7d0e6de0b Bug Fixes for live map base url and remove erroneous debug message (#3901)
1c5bbecf1 Train - Improve L/R Balance Dial display
8e0b0a67a R/Python API - Sport case insensitive in Athlete Zones
b08e662c9 Train - Show lap notifications only when available
2c3eabdd8 RideCache - Fix refresh to inclu=de the oldest activity
9c7d1d4f3 Strava Sync - Tag simulation rides as VirtualRide
53f8f5102 Fix memory leak in Python API - part 2
e477b05a9 ErgDB Download - Decode title to be used as name
3a16d1ecc Keep Perspective Selecto synced when switching athletes
63d13ba9e Update Italian translation
f947b6bd3 VideoSync - Distance scaling only applies to CRS workouts
67962bfff Fix memory leak in Python API
5f22d12a6 fix(doc): mention QMAKE_MOVE requirement for bison > 3.7
996ee63cd Remove MapQuest API Key from gcconfig.pri.in
a7ad1346e Measures CSV Import - Last field can be empty
90172a4a6 Replace Tracker in default Trends layout
68b70e0e4 Fix Elevation - Avoid 302 network error
434580ee8 Disable execution of Python DPs from formulas and Python API
cb23914a5 Honor chart filters in Trends view Histogram and CP charts (#4287)
1941b9af7 Minimum bison version is now 2.7
2022-12-23 18:11:49 -03:00
Erik Botö
018bd404e8 FTMS: Add support for Spin Down Calibration (#4073)
Initial implementation - merged for testing since it seems to be safe.
2022-12-21 17:25:54 -03:00
Alejandro Martinez
4f97bae97d DOB - display using 4 digits year
To avoid issues like #2584
2022-12-21 13:28:38 -03:00
Alejandro Martinez
dfeb8532a9 macOS plist - Add required BTLE keys for newer versions
[skip AppVeyor]
According to https://bugreports.qt.io/browse/QTBUG-96557
Intended to fix #4093
2022-12-19 19:00:56 -03:00
peret2000
2a99c87620 Python 3.7.15 AppImage is no longer available, upgrade to 3.7.16 (#4299) 2022-12-19 08:34:03 -03:00
Peter Kanatselis
0296693ddd Workout Chart - Imperial units support (#4232)
Co-authored-by: Alejandro Martinez <amtriathlon@gmail.com>
2022-12-17 19:47:25 -03:00
Alejandro Martinez
8919eab5b2 Map Chart - Update default Tile Servers 2022-12-16 17:35:01 -03:00
Peter Kanatselis
7d0e6de0b1 Bug Fixes for live map base url and remove erroneous debug message (#3901)
Use default OSM tile server
Co-authored-by: Alejandro Martinez <amtriathlon@gmail.com>
2022-12-16 16:26:18 -03:00
Alejandro Martinez
1c5bbecf1c Train - Improve L/R Balance Dial display
Includes proper treatement for NA, switched L/R and
enables averaging.
Fixes #4298
2022-12-16 15:49:22 -03:00
Alejandro Martinez
8e0b0a67a6 R/Python API - Sport case insensitive in Athlete Zones
For backward compatibility with existing charts
2022-12-14 13:43:17 -03:00
Alejandro Martinez
b08e662c9d Train - Show lap notifications only when available
It is misleading otherwise.
2022-12-12 19:53:16 -03:00
Alejandro Martinez
5af234d6ad Biweekly snapshot build
[publish binaries]
Cumulative changes from RC3
2c3eabdd8 RideCache - Fix refresh to include the oldest activity
9c7d1d4f3 Strava Sync - Tag simulation rides as VirtualRide
53f8f5102 Fix memory leak in Python API - part 2
e477b05a9 ErgDB Download - Decode title to be used as name
3a16d1ecc Keep Perspective Selecto synced when switching athletes
63d13ba9e Update Italian translation
f947b6bd3 VideoSync - Distance scaling only applies to CRS workouts
67962bfff Fix memory leak in Python API
5f22d12a6 fix(doc): mention QMAKE_MOVE requirement for bison > 3.7
996ee63cd Remove MapQuest API Key from gcconfig.pri.in
a7ad1346e Measures CSV Import - Last field can be empty
90172a4a6 Replace Tracker in default Trends layout
68b70e0e4 Fix Elevation - Avoid 302 network error
434580ee8 Disable execution of Python DPs from formulas and Python API
cb23914a5 Honor chart filters in Trends view Histogram and CP charts (#4287)
1941b9af7 Minimum bison version is now 2.7
2022-12-11 13:13:14 -03:00
Alejandro Martinez
2c3eabdd8b RideCache - Fix refresh to include the oldest activity
This boundary error provokes the cache entry for the oldest
activity don't be refreshed on full cache refresh, only
when the activity is imported or opened (s.t. selecting it
in Activities View).
For most users this may be uneventfull, but if the oldest
activity becomes dirty, a full cache will happend on each
following start, until the oldest activity is opened and
it may explain the behavior reported ocasionally at the forum
and recently in #4297
2022-12-10 10:14:44 -03:00
Alejandro Martinez
9c7d1d4f31 Strava Sync - Tag simulation rides as VirtualRide
Also map Walking Sport to Walk activity type
2022-12-05 17:10:04 -03:00
Alejandro Martinez
53f8f5102c Fix memory leak in Python API - part 2
Py_buildValue does not steal references, leading to an incorrect
reference counter and therefore resources not freed by the
garbage collector.
Contributed by Joachim at the forum.
2022-12-03 12:07:06 -03:00
Alejandro Martinez
e477b05a98 ErgDB Download - Decode title to be used as name
Title is html encoded, we need to decode it for readability and,
since name is used as a filename, replace "/" by "-".
This still has some limitations s.t. duplicate titles, but they
have easy workarounds for the user and they don't justify to change
the database schema now in my POV.
2022-12-01 13:16:47 -03:00
Alejandro Martinez
3a16d1ecc2 Keep Perspective Selecto synced when switching athletes
Fixed error reported by Marcen in users forum
2022-11-30 10:27:10 -03:00
Alejandro Martinez
63d13ba9e5 Update Italian translation
Contributed by https://github.com/gicif
Fixes #4296
2022-11-29 16:57:59 -03:00
Alejandro Martinez
f947b6bd31 VideoSync - Distance scaling only applies to CRS workouts 2022-11-29 14:35:22 -03:00
Alejandro Martinez
67962bfff8 Fix memory leak in Python API
PyDict_SetItemString does not steal references, leading to an incorrect
reference counter and therefore resources not freed by the garbage collector.
Contributed by Joachim at the forum.
[publish binaries]
2022-11-28 14:33:49 -03:00
Christoph Hasse
5f22d12a61 fix(doc): mention QMAKE_MOVE requirement for bison > 3.7
[skip ci]
2022-11-20 19:46:15 -03:00
Alejandro Martinez
996ee63cd5 Remove MapQuest API Key from gcconfig.pri.in
It was deprecated and replaced by OpenElevation public API
[publish binaries]
2022-11-15 12:48:16 -03:00
Alejandro Martinez
a7ad1346e8 Measures CSV Import - Last field can be empty
Fixes #4292
2022-11-13 17:36:35 -03:00
Alejandro Martinez
90172a4a62 Replace Tracker in default Trends layout
It is now an Overview with a Table tile, original
LTM Tracker still available as a Library chart.
2022-11-10 12:17:56 -03:00
Alejandro Martinez
68b70e0e4d Fix Elevation - Avoid 302 network error
Even when the API is unlimited we get 302 error for longer rides,
lets avoid it breaking requests in smaller chunks.
2022-11-09 13:58:29 -03:00
Alejandro Martinez
434580ee81 Disable execution of Python DPs from formulas and Python API
Metadata and metrics don't work in these contexts as documented
in #4095 so we disable them to avoid confusion until the root
issue is solved.
Fixes #4288
2022-11-07 20:21:56 -03:00
Alejandro Martinez
cb23914a5f Honor chart filters in Trends view Histogram and CP charts (#4287)
Just appending the file lists doesn't work like addFilter
does, isfiltered and files are added as optional parameters
to Pespective:filterlist so they are accounted for when
the list of files is generated.
Fixes #4285
2022-11-01 18:29:34 -03:00
Alejandro Martinez
1941b9af7f Minimum bison version is now 2.7
[skip ci]
2022-10-30 12:16:46 -03:00
Mark Liversedge
67352f6dc2 V3.6 RC3 BUILD
.. trigger build of RC3

[publish binaries]
2022-10-29 20:23:56 +01:00
Alejandro Martinez
fa8eb0b6da DataFilter parser - remove warnings and avoid crash on syntax error
- Crash on syntax error happened on <leaf> destructor and the cause
  was tokens declared as <leaf> but not creating a leaf, to avoid
  this a new <string> type without destructor was added for them.
- Warnings indicated semantic value not set for some rules due to
  the lack of $$ = $1, likely bening, but lets avoid it.
v3.6-RC3
2022-10-28 17:24:10 -03:00