Commit Graph

8025 Commits

Author SHA1 Message Date
Mark Liversedge
abe05f7c79 Strava Upload Only for Dev Build
.. disable as it is a WIP.
v3.5-DEV1704
2017-04-13 15:48:06 +01:00
Mark Liversedge
bcfeb245ac SportTracks download preserve gaps
.. the code to combine ST streams added blanks when there
   was a gap in recording, it is better to preserve such
   gaps and let the user manage with the 'fix gaps' tool.
2017-04-13 15:28:50 +01:00
Mark Liversedge
9027a8c944 Merge pull request #2448 from bwalding/master
Vertically align cells in the upload / download / synchronise table
2017-04-13 13:58:47 +01:00
Ben Walding
e271504239 Vertically align cells in the upload / download / synchronise table 2017-04-13 22:09:02 +10:00
Mark Liversedge
7340b872f6 SportTracks - Part 4 Upload
.. last part, upload isn't compressed, we can fix that
   up later. It is supposed to be supported.
2017-04-12 19:34:59 +01:00
Mark Liversedge
341f128f1c SportTracks - Part 3 readFile
.. needs to combine streams of data into a newly created
   ridefile, which is painful, but done.

.. we may need to review the resolution of the data and
   derivation of missing series in a later refining update
2017-04-12 18:20:15 +01:00
Mark Liversedge
f5d84e1353 SportTracks Fixups
.. Secrets.h for appveyor CI build

.. duration/distance in readdir

.. beginnings of readFile, need to write a parser for
   the SportTracks format (streams not samples). sigh.
2017-04-12 14:36:57 +01:00
Mark Liversedge
3e6a716dcf SportTracks - Part 2 Refresh token and readdir()
.. also fixed up saveSettings in CloudServiceFactory to
   support saving of the refresh token in open().
2017-04-12 11:17:18 +01:00
Mark Liversedge
809a149209 SportTracks OAuth Fixup
.. set raw headers when I shouldn't.

.. added when trying to resolve issues earlier and didnt
   remove them when they had no effect.

.. SportTracks OAuth config now works.
2017-04-12 08:00:18 +01:00
Joern
3387829a71 Merge pull request #2447 from Joern-R/CI
Update CI (Windows) Build environment to Qt 5.8
2017-04-11 19:43:01 +02:00
Joern
80d82862ad Update CI (Windows) Build environment to Qt 5.8 2017-04-11 19:41:32 +02:00
Mark Liversedge
959790c020 SportTracks.mobi - Part 1 of 4
.. CloudService and OAuthDialog.

.. Still needs:
   2) readdir
   3) readFile
   4) writeFile
2017-04-11 17:20:11 +01:00
Mark Liversedge
28b5da33f3 PolarFlow Integration On Hold
.. API compatibility issues with desktop applications.
2017-04-11 14:23:23 +01:00
Mark Liversedge
c8357a45f5 TodaysPlan less debug
.. reduced the amount of debug data output when downloading
   data. It now only shows first 500 bytes of received
   file instead of the whole thing.
2017-04-11 10:55:30 +01:00
Mark Liversedge
416997442e TodaysPlan - rename response when converting
.. because we convert the file to json in the response
   when adding RPE data we need to update the name used
   in the notifyReadComplete.

.. this fixes a bug where downloaded FIT files are
   converted to JSON but the sync tool tries to parse
   the returned data as FIT and fails.
2017-04-11 10:13:52 +01:00
Mark Liversedge
adcf0a9cc9 TodaysPlan - Resolve Memory Leak
.. resolve a memory leak re-allocating the storage
   for the returned byte array.

.. couple of other minor tidyups that were vestiges
   from my refactor of the code.

.. their is a bug downloading FIT files now -- the
   response is always converted to JSON, so we should
   not list as .FIT in readdir.
2017-04-11 09:55:55 +01:00
grauser
2eaf990143 Today's Plan : Correction for Fetch RPE 2017-04-11 00:03:34 +02:00
grauser
ca7710507e Strava : Correct readdir parameters 2017-04-10 22:41:36 +02:00
Mark Liversedge
8fbaad6881 CloudService - Sorted List
.. when working with the factory get a sorted list of
   service names so they can be offered in order

.. the addcloudwizard now list in alphabetical order

.. fixed up CloudService::type() to const
2017-04-10 17:19:20 +01:00
Alejandro Martinez
3de7ee8adf Merge pull request #2445 from amtriathlon/PeakPaceHr
Adds Peak Pace Hr metrics
2017-04-10 11:18:56 -03:00
Mark Liversedge
3b90316d04 PolarFlow Cloud Service - 3 of 6
.. configuration dialog complete

.. will always attempt to bind user to service, if
   that has already occurred it fails, so we always
   ignore the response.
2017-04-10 15:00:53 +01:00
Alejandro Martinez
6fd5fea66d Adds Peak Pace Hr metrics
Useful to track Pace to Hr relationships for running, similar
to Peak Power Hr metrics, both used in a Sample chart based on
https://alancouzens.com/blog/VO2Scores.html
2017-04-10 08:48:45 -03:00
Mark Liversedge
6afd39f717 Fix Qt4 build error
.. and remove a couple of c++11 extension warnings.
2017-04-10 10:44:05 +01:00
Mark Liversedge
77abca5268 Disable TodaysPlan RPE file I/O
.. lets find a better solution to updating the ride
   after it is received from TodaysPlan.
2017-04-10 09:55:02 +01:00
grauser
5898f09292 Strava : Sync (1/4)
Just list files
2017-04-09 22:58:19 +02:00
grauser
33662e310b Today's Plan : fetch RPE 2017-04-09 21:45:29 +02:00
Mark Liversedge
1f7bfc1278 Need QT5.6 for QWebEngineCookieStore 2017-04-09 19:38:14 +01:00
Mark Liversedge
923ebe0507 OAuthDialog - Clear Cookies
.. since login screens often examine cookies to 'auto' login
   which is unhelpful when setting up accounts.
2017-04-09 18:56:20 +01:00
Mark Liversedge
6311117f9d Hi-DPI Support - OAuthDialog Scaling
.. the QWebView embedded in OAuthDialog needs to be zoomed
   so you can see the fonts.

.. the QT recomendation is to set the application wide
   scaling (!) to scale QWebEngine on hi-dpi screens obvs
   thats a really shit solution we ignore.
2017-04-08 21:19:58 +01:00
Joern
4b67db6102 Merge pull request #2444 from Joern-R/cloudconfig
CloudWizard - Fix
2017-04-08 19:31:05 +02:00
Mark Liversedge
f51a41334e PolarFlow Cloud Service - 2 of 6
.. OAuthDialog updated to get authorization token
2017-04-08 17:41:50 +01:00
Joern
9c2bcd03e7 Merge pull request #2443 from Joern-R/bmcsv
Improve BodyMeasures - CSV Import
2017-04-08 18:17:21 +02:00
Joern
4da2b18e9a CloudWizard - Fix
... settings for syncOnStartup
2017-04-08 18:16:40 +02:00
Joern
8ac134f373 Improve BodyMeasures - CSV Import
... allow "date" in ISO8601 as an alternative to "ts" timestamp from Epoch
... update documentation / provide sample files
2017-04-08 17:40:18 +02:00
Mark Liversedge
cbe4012000 PolarFlow Cloud Service - 1 of 6
.. add template code and definition. This is not a functional
   update, it is to get the basics in place and run through
   CI to check for cross-platform issues.

.. part 2 to implement oauth

.. part 3 to implement configuration

.. part 4 to implement readdir()

.. part 5 to implement readFile()

.. part 6 to update CloudSyncDialog for download only services
2017-04-08 09:47:21 +01:00
Mark Liversedge
7fa4894cc3 BodyMeasures Handle ',' embedded in string
.. needs to be tested !
2017-04-07 10:58:38 +01:00
Mark Liversedge
ef4f930acb Cloud Refactor - Remove Upload to Calendar 2017-04-06 22:11:51 +01:00
Mark Liversedge
31f32b6689 Minor tidy up 2017-04-06 21:46:30 +01:00
Mark Liversedge
01adfa0f88 Simplify Share Menu
.. adding a manage accounts option is overkill and confusing
2017-04-04 18:40:12 +01:00
Mark Liversedge
7b749c3e3e Cloud Refactor - Athlete > Accounts
.. remove the old "passwords" tab in the config pane.

.. added a new "accounts" tab in the athlete page and
   consolidated the zones tabs to a new "zones" tab

.. edit/add actions use the wizard, delete sets the
   service to inactive (but doesn't scrub settings).
2017-04-04 18:35:27 +01:00
Mark Liversedge
83e5799141 AddAccountWizard screenshot for wiki 2017-04-03 17:58:51 +01:00
Mark Liversedge
54c8e7b13f Merge pull request #2438 from mtbkeith/fix2433_CrashingCompares
Fix crash of comparison rides
2017-04-03 08:05:23 +01:00
Keith Reynolds
aecad70c48 Remove this as it is not necessary and causing comparisons to crash.
Xcode reported this as a leak, however ownership of the curve is by this class and will be deleted by the Qt framework as the parent is deleted.
2017-04-02 19:57:00 -06:00
Mark Liversedge
6839533177 Merge pull request #2435 from Joern-R/Cloud
CloudService - Fix Error Reading Files
2017-04-02 18:37:20 +01:00
Mark Liversedge
2d83460db5 Cloud Refactor - CloudService list/select Athlete
.. add list/select athlete to the service semantics
.. implemented exemplar with Today's Plan service.
2017-04-02 18:33:57 +01:00
Joern
554a70b190 CloudService - Fix Error Reading Files
... when asynchronously reading Files, "data" object needs to survive as it it referenced in the "buffers_" QMap
    (this is a quick fix - I suspect there are better ways to handle this)
2017-04-02 17:47:13 +02:00
Mark Liversedge
deb5d34415 Cloud Refactor - Combo (e.g. Google Drive Scope)
.. enable auth settings to have a combo that is defined by the
   service and user selectable.

.. Syntax:

   settingname::name::val1::va12::val3

   In the first example we used it to set the google drive scope
   for authorisation, so in this case it is defined:

   "<athlete-private>google_drive/
           auth_scope::Scope::drive::drive.appdata::drive.file"

   Which results in a user selectable combo box labelled "Scope"
   from which they can select from the values drive, drive.appdata
   and drive.file. The value is used to update the auth_scope
   setting in config/athlete-private.ini

.. We can add more of these later if they are needed, perhaps on
   the setting screen for settings not related to authorisation.

.. A "SettingCombo" widget has been created to simplify the way
   a QComboBox is setup and queried.
2017-04-02 10:46:43 +01:00
Mark Liversedge
0647105237 Cloud Refactor - Withings in AddCloudWizard
.. a stub cloud service to enable the configuration
   addcloudwizard to set it up.
2017-04-02 09:15:26 +01:00
Mark Liversedge
81170a947d Merge pull request #2152 from antoniusriha/handle_log_redirect_properly
Close and free log file object after duplicating it
2017-04-01 22:06:58 +01:00
Mark Liversedge
66c5c8ccdb Merge pull request #2267 from dresco/ANT
Change variable name for clarity
2017-04-01 22:00:54 +01:00