-
-
-
Thanks :)
So, I played around with Debugger and here's the result:
Most likely my assumptions are correct: somehow the GPS Recorder writes empty lines to routes, and interface.html cannot process the empty line correctly, right? Therefore, an error occurs with the Invalid Date and NaN.
Could you please add empty line handling to interface.html? Empty lines from routes must either be ignored or incorrect data must be deleted during the execution of the script (the track's data where there is NaN).
-
I made a converter that solves my problem at this moment.
Demo: https://zloid.github.io/convert-gps-recorder-raw-data-to-gpx/
Source: https://github.com/zloid/convert-gps-recorder-raw-data-to-gpxAlso, this tool will be useful for those who will have a similar problem and want to convert the routes files to GPX in an easy way.
This converter uses some of the code from https://github.com/espruino/BangleApps/blob/master/apps/gpsrec/interface.html
And here's what I noticed when I was making the tool: all the raw route files downloaded from the watch have one blank line at the end. If such a file gets into
trackLineToObject ("", false)
, then the output will be
{date: Invalid Date, lat: NaN, lon: NaN, alt: NaN}
Perhaps this is causing the error? When files with routes may contain empty lines.
-
-
Could you open the Chrome dev console when connected, type Puck.debug=3 in it and then open the GPS recorder downloader and paste what gets printed here?
Sure. Here's the complete response from the console:
Puck.debug=3 3 puck.js:371 <BLE> Sending "\u0010(function() {\n " puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending " for (var n=0;" puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending "n<36;n++) {\n " puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending " var f = requir" puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending "e(\"Storage\").ope" puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending "n(\".gpsrc\"+n.toS" puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending "tring(36),\"r\");\n" puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending " var l = f." puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending "readLine();\n " puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending " if (l!==undefi" puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending "ned)\n Blu" puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending "etooth.println(n" puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending "+\",\"+l.trim());\n" puck.js:371 <BLE> Sent puck.js:371 <BLE> Sending " }\n })()\n" puck.js:371 <BLE> Sent puck.js:371 <BLE> Received "21,1613468828000,50." puck.js:371 <BLE> Received "261702,19.054179,306" puck.js:371 <BLE> Received ".4\r\n" puck.js:371 <BLE> Received "22,1613748890000,50." puck.js:371 <BLE> Received "259493,19.052839,254" puck.js:371 <BLE> Received ".2\r\n" puck.js:371 <BLE> Received "23,1613914821000,50." puck.js:371 <BLE> Received "262469,19.054682,256" puck.js:371 <BLE> Received "\r\n" puck.js:371 <BLE> Received "24,1614008040000,50." puck.js:371 <BLE> Received "263432,19.053135,270" puck.js:371 <BLE> Received ".5\r\n" puck.js:371 <BLE> Received "25,1614182126000,50." puck.js:371 <BLE> Received "259883,19.038182,248" puck.js:371 <BLE> Received ".8\r\n" puck.js:371 <BLE> Received "26,1614272826000,50." puck.js:371 <BLE> Received "261817,19.059988,254" puck.js:371 <BLE> Received ".6\r\n" puck.js:371 <BLE> Received "27,1614332036000,50." puck.js:371 <BLE> Received "260909,19.056641,265" puck.js:371 <BLE> Received "\r\n" puck.js:371 <BLE> Received "28,1614530565000,50." puck.js:371 <BLE> Received "259727,19.060739,269" puck.js:371 <BLE> Received ".6\r\n" puck.js:371 <BLE> Received "29,1614703251000,50." puck.js:371 <BLE> Received "259834,19.067476,276" puck.js:371 <BLE> Received ".3\r\n" puck.js:371 <BLE> Received "30,1614790117000,50." puck.js:371 <BLE> Received "259776,19.056448,253" puck.js:371 <BLE> Received ".9\r\n"
-
Please can you try just opening the launcher on Bangle.js, then connecting and seeing if you can download via GPS Recorder?
I did this. Also i tried to uninstall different applications and the clock faces, but unfortunately it did not help. Problem still exists. Perhaps the fastest way would be to do a HARD RESET.
Is there a way to convert files with GPS data downloaded from the watch directly to the GPX? I mean not via https://banglejs.com/apps/ but via a third party converter?
-
-
Hi! There was a problem: I can not download routes from my watch to my computer. I want to get .GPX or KML, but when loading data, it shows an error (Track, Invalid Date).
The routes are displayed normally on the watch, but I cannot download them.
I can only get approximate data for routes through IDE, of the following form: .gpsrcp, .gpsrcq, ...etc, but it is not convenient to work with them.
Any ideas on how to fix this and download the routes in .GPX format?
Thanks!
Great! New routes are displayed normally. Thanks :)
Question: Why is the number of routes limited by 36? Does it have a special reason? How about the number 365, that is, one route a day, for a year :)
And here is the data from the IDE: