Browse code

removing barometer mention to let strava set altitude to map

Louis authored on09/01/2023 21:14:31
Showing1 changed files
... ...
@@ -10,7 +10,7 @@ var firstlocationInterval = false;
10 10
 var locationInterval = false;
11 11
 var instantLocationInterval = false;
12 12
 
13
-// TODO to remove for security
13
+// TODO to move to C for security
14 14
 var client_id = "94880";
15 15
 var client_secret = "08dc170f0fe38f39dd327bea82a28db4400e6f00";
16 16
 
... ...
@@ -181,7 +181,7 @@ function splitFloatNumber(num) {
181 181
 // Build GPX headers
182 182
 //
183 183
 function GPXHeadersBuilder(timestamp, name, type) {
184
-    var headers = '<?xml version="1.0" encoding="UTF-8"?><gpx creator="Pebble with barometer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" xmlns="http://www.topografix.com/GPX/1/1"><metadata><time>' + timestamp + '</time></metadata><trk><name>' + name + '</name><type>' + type + '</type><trkseg>';
184
+    var headers = '<?xml version="1.0" encoding="UTF-8"?><gpx creator="Pebble" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" xmlns="http://www.topografix.com/GPX/1/1"><metadata><time>' + timestamp + '</time></metadata><trk><name>' + name + '</name><type>' + type + '</type><trkseg>';
185 185
     localStorage.setItem("GPX", headers);
186 186
     return true;
187 187
 }