| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,16 @@ |
| 1 |
+{
|
|
| 2 |
+ "configurations": [ |
|
| 3 |
+ {
|
|
| 4 |
+ "name": "Win32", |
|
| 5 |
+ "includePath": [ |
|
| 6 |
+ "${workspaceFolder}/**"
|
|
| 7 |
+ ], |
|
| 8 |
+ "defines": [ |
|
| 9 |
+ "_DEBUG", |
|
| 10 |
+ "UNICODE", |
|
| 11 |
+ "_UNICODE" |
|
| 12 |
+ ] |
|
| 13 |
+ } |
|
| 14 |
+ ], |
|
| 15 |
+ "version": 4 |
|
| 16 |
+} |
|
| 0 | 17 |
\ No newline at end of file |
| ... | ... |
@@ -283,7 +283,7 @@ function SendToStrava() {
|
| 283 | 283 |
params = {
|
| 284 | 284 |
url: "https://www.strava.com/api/v3/uploads", |
| 285 | 285 |
method: "POST", |
| 286 |
- data: { description: "desc", data_type: "gpx" },
|
|
| 286 |
+ data: { description: "desc", data_type: "gpx", sport_type: "Ride" , activity_types: "Ride"},
|
|
| 287 | 287 |
files: { file: gpxfile },
|
| 288 | 288 |
authorization: "Bearer " + bearer, |
| 289 | 289 |
callback: function (e) {
|
| ... | ... |
@@ -424,7 +424,7 @@ function locationSuccess(new_pos) {
|
| 424 | 424 |
localStorage.setItem("custom_uploaded", false);
|
| 425 | 425 |
|
| 426 | 426 |
// Start the GPX file |
| 427 |
- GPXHeadersBuilder(new Date(new_pos.timestamp).toISOString(), "test", "18"); |
|
| 427 |
+ GPXHeadersBuilder(new Date(new_pos.timestamp).toISOString(), "Pebble track", "18"); |
|
| 428 | 428 |
|
| 429 | 429 |
} else {
|
| 430 | 430 |
storeLocation(new_pos, false); |