Browse code

updates for new app

Louis Jonget authored on05/01/2026 20:06:50
Showing4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,8 @@
1
+argv = ['/home/louis/.pebble-sdk/SDKs/current/sdk-core/pebble/waf', 'configure']
2
+environ = {'SHELL': '/bin/bash', 'COLORTERM': 'truecolor', 'WSL2_GUI_APPS_ENABLED': '1', 'TERM_PROGRAM_VERSION': '1.104.2', 'WSL_DISTRO_NAME': 'Ubuntu-22.04', 'NAME': 'DESKTOP-PSQDLD8', 'PWD': '/home/louis/repos/bike_companion', 'LOGNAME': 'louis', 'VSCODE_GIT_ASKPASS_NODE': '/home/louis/.vscode-server/bin/e3a5acfb517a443235981655413d566533107e92/node', 'HOME': '/home/louis', 'LANG': 'C.UTF-8', 'WSL_INTEROP': '/run/WSL/646_interop', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'WAYLAND_DISPLAY': 'wayland-0', 'GIT_ASKPASS': '/home/louis/.vscode-server/bin/e3a5acfb517a443235981655413d566533107e92/extensions/git/dist/askpass.sh', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '', 'VSCODE_PYTHON_AUTOACTIVATE_GUARD': '1', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'TERM': 'xterm-256color', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'USER': 'louis', 'VSCODE_GIT_IPC_HANDLE': '/run/user/1000/vscode-git-de7f9122cc.sock', 'DISPLAY': ':0', 'SHLVL': '1', 'XDG_RUNTIME_DIR': '/run/user/1000/', 'WSLENV': 'VSCODE_WSL_EXT_LOCATION/up', 'VSCODE_GIT_ASKPASS_MAIN': '/home/louis/.vscode-server/bin/e3a5acfb517a443235981655413d566533107e92/extensions/git/dist/askpass-main.js', 'XDG_DATA_DIRS': '/usr/local/share:/usr/share:/var/lib/snapd/desktop', 'PATH': '/home/louis/.pebble-sdk/SDKs/4.5/toolchain/arm-none-eabi/bin:/home/louis/.local/share/uv/tools/pebble-tool/lib/python3.10/site-packages/pebble_tool/commands/sdk:/home/louis/.pebble-sdk/SDKs/4.5/toolchain/bin:/home/louis/.vscode-server/bin/e3a5acfb517a443235981655413d566533107e92/bin/remote-cli:/home/louis/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files/Python38/Scripts/:/mnt/c/Program Files/Python38/:/mnt/c/Program Files/Python39/Scripts/:/mnt/c/Program Files/Python39/:/mnt/c/ProgramData/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/Program Files (x86)/PuTTY/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Python27/:/mnt/c/Python27/Scripts/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Calibre2/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Users/Sandy/scoop/shims:/mnt/c/Users/Sandy/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/Sandy/AppData/Local/Programs/radare2:/mnt/c/Users/Sandy/AppData/Local/Microsoft/WindowsApps:/snap/bin', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'HOSTTYPE': 'x86_64', 'PULSE_SERVER': 'unix:/mnt/wslg/PulseServer', 'TERM_PROGRAM': 'vscode', 'VSCODE_IPC_HOOK_CLI': '/run/user/1000/vscode-ipc-db9ce3c2-d06f-4d11-baa9-5967e26038ee.sock', '_': '/home/louis/.local/bin/pebble', 'PYTHONHOME': '/home/louis/.pebble-sdk/SDKs/current/.venv', 'PYTHONPATH': '/home/louis/.local/share/uv/tools/pebble-tool/bin:/usr/lib/python310.zip:/usr/lib/python3.10:/usr/lib/python3.10/lib-dynload:/home/louis/.local/share/uv/tools/pebble-tool/lib/python3.10/site-packages', 'NODE_PATH': '/home/louis/.pebble-sdk/SDKs/current/sdk-core/../node_modules', 'NOCLIMB': '1'}
3
+files = ['/mnt/c/Users/Sandy/repos/bike_companion/wscript']
4
+hash = -4526185991710016546
5
+options = {'jobs': 4, 'keep': 0, 'verbose': 0, 'nocache': False, 'zones': '', 'out': '', 'top': '', 'prefix': '/usr/local/', 'download': False, 'progress_bar': 0, 'targets': '', 'files': '', 'destdir': '', 'force': False, 'distcheck_args': None, 'debug': False, 'no_groups': False, 'sandbox': False, 'timestamp': None}
6
+out_dir = '/mnt/c/Users/Sandy/repos/bike_companion/build'
7
+run_dir = '/mnt/c/Users/Sandy/repos/bike_companion'
8
+top_dir = '/mnt/c/Users/Sandy/repos/bike_companion'
0 9
Binary files a/build/bike_companion.pbw and b/build/bike_companion.pbw differ
... ...
@@ -67,6 +67,8 @@ static void send_message(char * msg){
67 67
     result = app_message_outbox_send();
68 68
     if(result != APP_MSG_OK) {
69 69
       APP_LOG(APP_LOG_LEVEL_ERROR, "Error sending the outbox: %d", (int)result);
70
+    }else{
71
+      APP_LOG(APP_LOG_LEVEL_DEBUG, "Success sending the outbox: %s", msg);
70 72
     }
71 73
   } else {
72 74
     // The outbox cannot be used right now
... ...
@@ -201,7 +203,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
201 203
     //Pebblekit JS is ready ! Safe to send messages
202 204
     s_js_ready = true;
203 205
     comm_is_ready();
204
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "received jsready message on watch... ");
206
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "received jsready message on watch... ");
205 207
   }
206 208
 
207 209
   // Read latitude returns
... ...
@@ -213,7 +215,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
213 215
 
214 216
     // Display in the TextLayer
215 217
     //text_layer_set_text(s_speed_text_layer, lf_latitude);
216
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "latitude message received : %s",s_latitude);
218
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "latitude message received : %s",s_latitude);
217 219
   }else{
218 220
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not latitude message... ");
219 221
   }
... ...
@@ -227,7 +229,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
227 229
 
228 230
     // Display in the TextLayer
229 231
     //text_layer_set_text(s_speed_text_layer, lf_longitude);
230
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "longitude message received : %s",s_longitude);
232
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "longitude message received : %s",s_longitude);
231 233
   }else{
232 234
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not longitude message... ");
233 235
   }
... ...
@@ -238,6 +240,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
238 240
   if(distance_tuple) {
239 241
     memset(s_distance,'\0',sizeof(s_distance));
240 242
     strncpy(s_distance, distance_tuple->value->cstring, 7);
243
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "distance message received : %s",s_distance);
241 244
   }else{
242 245
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not distance message... ");
243 246
   }
... ...
@@ -251,7 +254,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
251 254
 
252 255
     // Display in the TextLayer
253 256
     //text_layer_set_text(s_speed_text_layer, lf_accuracy);
254
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "accuracy message received : %s",s_accuracy);
257
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "accuracy message received : %s",s_accuracy);
255 258
   }else{
256 259
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not accuracy message... ");
257 260
   }
... ...
@@ -265,7 +268,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
265 268
 
266 269
     // Display in the TextLayer
267 270
     //text_layer_set_text(s_speed_text_layer, lf_altitude);
268
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "altitude message received : %s",altitude_tuple->value->cstring);
271
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "altitude message received : %s",altitude_tuple->value->cstring);
269 272
   }else{
270 273
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not altitude message... ");
271 274
   }
... ...
@@ -279,7 +282,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
279 282
 
280 283
     // Display in the TextLayer
281 284
     //text_layer_set_text(s_speed_text_layer, lf_altitude_accuracy);
282
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "altitude_accuracy message received : %s",s_altitude_accuracy);
285
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "altitude_accuracy message received : %s",s_altitude_accuracy);
283 286
   }else{
284 287
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not altitude_accuracy message... ");
285 288
   }
... ...
@@ -293,7 +296,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
293 296
 
294 297
     // Display in the TextLayer
295 298
     //text_layer_set_text(s_speed_text_layer, lf_timestamp);
296
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "timestamp message received : %s",s_timestamp);
299
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "timestamp message received : %s",s_timestamp);
297 300
   }else{
298 301
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not timestamp message... ");
299 302
   }
... ...
@@ -304,7 +307,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
304 307
   if(duration_tuple) {
305 308
     memset(s_duration,'\0',sizeof(s_duration));
306 309
     strncpy(s_duration, duration_tuple->value->cstring, 9);
307
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "duration message received : %s",s_duration);
310
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "duration message received : %s",s_duration);
308 311
   }else{
309 312
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not duration message... ");
310 313
   }
... ...
@@ -318,7 +321,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
318 321
     //uint i_speed=atoi(s_speed);
319 322
     // Display in the TextLayer
320 323
     //text_layer_set_text(s_speed_text_layer, lf_speed);
321
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "speed message received : %s ",s_speed);
324
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "speed message received : %s ",s_speed);
322 325
   }else{
323 326
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not speed message... ");
324 327
   }
... ...
@@ -332,7 +335,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
332 335
     //uint i_max_speed=atoi(s_max_speed);
333 336
     // Display in the TextLayer
334 337
     //text_layer_set_text(s_max_speed_text_layer, lf_max_speed);
335
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "max_speed message received : %s ",s_max_speed);
338
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "max_speed message received : %s ",s_max_speed);
336 339
   }else{
337 340
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not max_speed message... ");
338 341
   }
... ...
@@ -343,6 +346,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
343 346
   if(avg_speed_tuple) {
344 347
     memset(s_avg_speed,'\0',sizeof(s_avg_speed));
345 348
     strncpy(s_avg_speed, avg_speed_tuple->value->cstring, 4);
349
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "avg_speed message received : %s ",s_avg_speed);
346 350
   }else{
347 351
     //APP_LOG(APP_LOG_LEVEL_DEBUG, "not avg_speed message... ");
348 352
   }
... ...
@@ -353,10 +357,10 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
353 357
   if(status_tuple) {
354 358
     memset(s_status,'\0',sizeof(s_status));
355 359
     strncpy(s_status, status_tuple->value->cstring, 4);
356
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "status message received : %s",s_status);
360
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "status message received : %s",s_status);
357 361
 
358 362
     // DEBUG concatenate all data received
359
-    /*
363
+    
360 364
       memset(s_msg,'\0',sizeof(s_msg));
361 365
       strncpy(s_msg, "Acc. ",5);
362 366
       strcat(s_msg, s_accuracy);
... ...
@@ -370,9 +374,9 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
370 374
       strcat(s_msg, s_longitude);
371 375
       strcat(s_msg, "\n Time. ");
372 376
       strcat(s_msg, s_timestamp);
373
-    */
377
+    
374 378
 
375
-    //APP_LOG(APP_LOG_LEVEL_DEBUG, "to display : %s ",s_msg);
379
+    APP_LOG(APP_LOG_LEVEL_DEBUG, "to display : %s ",s_msg);
376 380
     if(strcmp(s_status, "L200")==0){
377 381
       text_layer_set_text(s_upperleft_text_layer, s_altitude);
378 382
       text_layer_set_text(s_upperright_text_layer, s_distance);
... ...
@@ -443,7 +447,7 @@ static void prv_deinit(void) {
443 447
 int main(void) {
444 448
   prv_init();
445 449
 
446
-  //APP_LOG(APP_LOG_LEVEL_DEBUG, "Done initializing, pushed window: %p", s_window);
450
+  APP_LOG(APP_LOG_LEVEL_DEBUG, "Done initializing, pushed window: %p", s_window);
447 451
 
448 452
   app_event_loop();
449 453
   prv_deinit();
... ...
@@ -412,7 +412,7 @@ function instantLocationUpdate(pos) {
412 412
 // called in case of successful geoloc gathering and sends the coordinate to watch
413 413
 //
414 414
 function locationSuccess(new_pos) {
415
-    console.log('--- locationSuccess');
415
+    console.log('----> locationSuccess');
416 416
     // console.log(" location is " + new_pos.coords.latitude + ',' + new_pos.coords.longitude + ' , acc. ' + new_pos.coords.accuracy);
417 417
 
418 418
     var prev_pos = getLocation(false);
... ...
@@ -522,19 +522,23 @@ function locationSuccess(new_pos) {
522 522
         });
523 523
     }
524 524
 
525
+    console.log('<---- locationSuccess');
525 526
 
526 527
 }
527 528
 
528 529
 function locationError(err) {
529 530
 
530
-    console.warn('location error (' + err.code + '): ' + err.message);
531
+    console.log('location error (' + err.code + '): ' + err.message);
531 532
 
532 533
 }
533 534
 
534 535
 
535 536
 function start_get_coordinate() {
536
-    clearInterval(firstlocationInterval);
537
-    firstlocationInterval = false;
537
+    console.log("----> start_get_coordinate");
538
+    if (firstlocationInterval){
539
+        clearInterval(firstlocationInterval);
540
+        firstlocationInterval = false;
541
+    }
538 542
     locationInterval = setInterval(function() {
539 543
         navigator.geolocation.getCurrentPosition(locationSuccess, locationError, locationOptions);
540 544
     }, 1000);
... ...
@@ -544,19 +548,39 @@ function start_get_coordinate() {
544 548
             navigator.geolocation.getCurrentPosition(instantLocationUpdate, locationError, locationOptions);
545 549
         }, 60000);
546 550
     }
551
+    console.log("<---- start_get_coordinate");
552
+
553
+}
547 554
 
555
+function yataa(position){
556
+    console.log("----> gotfirstlocation <----");
557
+    console.log(JSON.stringify(position.toJSON()));
558
+}
559
+
560
+function firstGeoLocationInterval(){
561
+    console.log("----> firstGeoLocationInterval ");
562
+    navigator.geolocation.getCurrentPosition(yataa, locationError, firstlocationOptions);
563
+    
564
+    console.log("<---- firstGeoLocationInterval ");
548 565
 }
549 566
 
550 567
 function init() {
568
+    console.log("----> init");
551 569
 
552
-    clearInterval(locationInterval);
553
-    locationInterval = false;
554
-    clearInterval(instantLocationInterval);
555
-    instantLocationInterval = false;
556
-    firstlocationInterval = setInterval(function() {
557
-        navigator.geolocation.getCurrentPosition(null, locationError, firstlocationOptions);
558
-    }, 1000);
570
+    if (locationInterval){
571
+        clearInterval(locationInterval);
572
+        locationInterval = false;
573
+    }
574
+    
575
+    if (instantLocationInterval){
576
+        clearInterval(instantLocationInterval);
577
+        instantLocationInterval = false;
578
+    }
579
+    
580
+    firstlocationInterval = setInterval( firstGeoLocationInterval(), 1000);
559 581
 
582
+    localStorage.setItem("strava_uploaded", true);
583
+    localStorage.setItem("custom_uploaded", true);
560 584
     //console.log("Clay settings = " + localStorage.getItem('clay-settings'));
561 585
     var se = JSON.parse(localStorage.getItem('clay-settings')).strava_enabled;
562 586
     var su = ("true" === localStorage.getItem("strava_uploaded"));
... ...
@@ -565,7 +589,6 @@ function init() {
565 589
 
566 590
     locate_me = JSON.parse(localStorage.getItem('clay-settings')).ping_location_enabled;
567 591
 
568
-
569 592
     console.log("Locate_me = " + locate_me);
570 593
     console.log("Strava = " + se + " (" + typeof se + ")/ uploaded = " + su + " (" + typeof su + ")");
571 594
     console.log("Custom web = " + ce + " (" + typeof ce + ")/ uploaded = " + cu + " (" + typeof cu + ")");
... ...
@@ -604,12 +627,13 @@ function init() {
604 627
         localStorage.setItem("dist", 0)
605 628
         localStorage.setItem("speedsum", 0)
606 629
     }
630
+    console.log("<---- init");
607 631
 
608 632
 }
609 633
 
610 634
 // Get JS readiness events
611 635
 Pebble.addEventListener('ready', function(e) {
612
-    console.log('PebbleKit JS is ready');
636
+    //console.log("----JSREADY----");
613 637
     // Update Watch on this
614 638
     Pebble.sendAppMessage({ 'JSReady': 1 });
615 639
 
... ...
@@ -624,16 +648,20 @@ Pebble.addEventListener('appmessage', function(e) {
624 648
     switch (dict[0]) {
625 649
         case 'startstop':
626 650
             if (!locationInterval == false) {
627
-                console.log("Stopping the track");
628
-                clearInterval(locationInterval);
629
-                locationInterval = false;
630
-                clearInterval(instantLocationInterval);
631
-                instantLocationInterval = false;
651
+                //console.log("Stopping the track");
652
+                if (locationInterval){
653
+                    clearInterval(locationInterval);
654
+                    locationInterval = false;
655
+                }
656
+                if (instantLocationInterval){
657
+                    clearInterval(instantLocationInterval);
658
+                    instantLocationInterval = false;
659
+                }
632 660
                 /*firstlocationInterval = setInterval(function () {
633 661
                   navigator.geolocation.getCurrentPosition(null, locationError, firstlocationOptions);
634 662
                 }, 1000);*/
635 663
             } else {
636
-                console.log("Starting the track");
664
+                //console.log("Starting the track");
637 665
                 start_get_coordinate();
638 666
             }
639 667
             break;