gooby 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. data/README +200 -35
  2. data/bin/code_scan.rb +1 -3
  3. data/bin/gooby_been_there.rb +12 -14
  4. data/bin/gooby_config.rb +11 -3
  5. data/bin/gooby_csv_validation.rb +50 -0
  6. data/bin/gooby_first_trackpoints_as_poi.rb +31 -0
  7. data/bin/gooby_gen_gmap.rb +7 -3
  8. data/bin/gooby_parser.rb +7 -5
  9. data/bin/gooby_splitter.rb +7 -4
  10. data/bin/gooby_version.rb +7 -3
  11. data/bin/run_all.sh +12 -2
  12. data/bin/run_been_there.sh +4 -1
  13. data/bin/run_config.sh +12 -0
  14. data/bin/run_csv_validation.sh +15 -0
  15. data/bin/run_db_gen.sh +1 -1
  16. data/bin/run_db_load.sh +1 -1
  17. data/bin/run_first_trackpoints_as_poi.sh +16 -0
  18. data/bin/run_gen_gmaps.sh +7 -6
  19. data/bin/run_parse_full.sh +45 -0
  20. data/bin/run_parse_samples.sh +21 -0
  21. data/bin/run_split.sh +5 -4
  22. data/bin/run_version.sh +12 -0
  23. data/config/gooby_config.yaml +130 -131
  24. data/data/20050305_corporate_cup_hm.csv +251 -251
  25. data/data/20050430_nashville_marathon_km.csv +1208 -0
  26. data/data/20060115_phoenix_marathon.csv +1280 -1280
  27. data/data/20070101_davidson_11m.csv +251 -0
  28. data/data/{davidson_11m_20070101.xml → 20070101_davidson_11m.xml} +0 -0
  29. data/data/{davidson_5K_20070505.xml → 20070505_davidson_5k.xml} +0 -0
  30. data/data/20070505_davidson_5k_km.csv +286 -0
  31. data/data/hrm1.csv +5 -0
  32. data/lib/gooby.rb +27 -3144
  33. data/lib/gooby_code_scanner.rb +288 -0
  34. data/lib/gooby_command.rb +210 -0
  35. data/lib/gooby_configuration.rb +123 -0
  36. data/lib/gooby_counter_hash.rb +95 -0
  37. data/lib/gooby_course.rb +117 -0
  38. data/lib/gooby_csv_point.rb +71 -0
  39. data/lib/gooby_csv_reader.rb +71 -0
  40. data/lib/gooby_csv_run.rb +28 -0
  41. data/lib/gooby_delim_line.rb +42 -0
  42. data/lib/gooby_dttm.rb +87 -0
  43. data/lib/gooby_duration.rb +86 -0
  44. data/lib/gooby_forerunner_xml_parser.rb +191 -0
  45. data/lib/gooby_forerunner_xml_splitter.rb +115 -0
  46. data/lib/gooby_google_map_generator.rb +385 -0
  47. data/lib/gooby_history.rb +41 -0
  48. data/lib/gooby_kernel.rb +163 -0
  49. data/lib/gooby_lap.rb +30 -0
  50. data/lib/gooby_line.rb +80 -0
  51. data/lib/gooby_object.rb +22 -0
  52. data/lib/gooby_point.rb +172 -0
  53. data/lib/gooby_run.rb +213 -0
  54. data/lib/gooby_simple_xml_parser.rb +50 -0
  55. data/lib/gooby_test_helper.rb +23 -0
  56. data/lib/gooby_track.rb +47 -0
  57. data/lib/gooby_track_point.rb +229 -0
  58. data/lib/gooby_training_center_xml_parser.rb +224 -0
  59. data/lib/gooby_training_center_xml_splitter.rb +116 -0
  60. data/lib/split_code.sh +29 -0
  61. data/samples/20050305_corporate_cup_hm.html +269 -269
  62. data/samples/20050430_nashville_marathon.html +1410 -1266
  63. data/samples/20060115_phoenix_marathon.html +1311 -1311
  64. data/samples/{davidson_11m_20070101.html → 20070101_davidson_11m.html} +267 -267
  65. data/samples/20070505_davidson_5k.html +413 -0
  66. data/samples/been_there.txt +52 -704
  67. data/samples/hrm1.html +87 -0
  68. data/sql/gooby.ddl +20 -16
  69. data/sql/gooby_load.dml +36 -9
  70. metadata +48 -14
  71. data/bin/example_usage.txt +0 -55
  72. data/bin/run_parse.sh +0 -43
  73. data/bin/run_parse_named.sh +0 -19
  74. data/data/20050430_nashville_marathon.csv +0 -1208
  75. data/data/davidson_11m_20070101.csv +0 -251
  76. data/data/davidson_5K_20070505.csv +0 -286
  77. data/data/test1.txt +0 -4
  78. data/samples/davidson_5K_20070505.html +0 -395
data/samples/hrm1.html ADDED
@@ -0,0 +1,87 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
6
+ <meta name="description" content="Google Map generated with Gooby 1.2.0">
7
+ <meta name="keywords" content="Google Map Gooby 1.2.0 GPS">
8
+ <title> Google Map by Gooby </title>
9
+ <script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAdn5SVzjZKZKs1IRkFdx52xR1l5lLpU9GCFYoS8YrTf8v3gVJ2hRLV1dTSiqDWwWSnMRkM7SVr0EKSA' type='text/javascript'></script>
10
+ <script type="text/javascript">
11
+ //<![CDATA[
12
+ function load() {
13
+ if (GBrowserIsCompatible()) {
14
+ var map = new GMap2(document.getElementById("map"));
15
+ map.addControl(new GLargeMapControl());
16
+ map.addControl(new GMapTypeControl());
17
+
18
+ var centerPoint = new GLatLng(35.4954935, -80.83219); // Gooby 1.2.0
19
+ map.setCenter(centerPoint, 12);
20
+
21
+
22
+ var points = new Array();
23
+ points.push(new GLatLng(35.495497,-80.832159)); // (1 of 4.0) 2007-07-16T23:42:44Z 0 00:00:00 0.0 Gooby 1.2.0
24
+ points.push(new GLatLng(35.495499,-80.832152)); // (2 of 4.0) 2007-07-16T23:42:46Z 2 00:00:02 0.000417102641276755 Gooby 1.2.0
25
+ points.push(new GLatLng(35.495522,-80.832229)); // (3 of 4.0) 2007-07-16T23:42:54Z 10 00:00:10 0.00503094417417941 Gooby 1.2.0
26
+ points.push(new GLatLng(35.495465,-80.832151)); // (4 of 4.0) 2007-07-16T23:47:46Z 302 00:05:02 0.0109261260004515 Gooby 1.2.0
27
+
28
+ var routePolyline = new GPolyline(points);
29
+ map.addOverlay(routePolyline);
30
+
31
+ // Create a base icon for all of our markers that specifies the
32
+ // shadow, icon dimensions, etc.
33
+ var baseIcon = new GIcon();
34
+ baseIcon.shadow = "http://www.joakim-systems.com/gicons/shadow50.png";
35
+ baseIcon.iconSize = new GSize(20, 34);
36
+ baseIcon.shadowSize = new GSize(37, 34);
37
+ baseIcon.iconAnchor = new GPoint(9, 34);
38
+ baseIcon.infoWindowAnchor = new GPoint(9, 2);
39
+ baseIcon.infoShadowAnchor = new GPoint(18, 25);
40
+
41
+ var iconStart = new GIcon(baseIcon);
42
+ iconStart.image = "http://www.joakim-systems.com/gicons/dd-start.png";
43
+ var pStart = new GPoint(-80.832159, 35.495497);
44
+ var mStart = new GMarker(pStart, iconStart);
45
+ GEvent.addListener(mStart, "click", function() {
46
+ mStart.openInfoWindowHtml("<table align='left'><tr><td colspan='2'><b>Start!</b></td></tr><tr><td>Distance:</td><td>0.0 mi</td></tr><tr><td>Time of Day:</td><td>2007-07-16T23:42:44Z</td></tr><tr><td>Elapsed Time:</td><td>00:00:00</td></tr><tr><td>Average Pace:</td><td></td></tr><tr><td>Lat/Lng:</td><td>35.495497 , -80.832159</td></tr><tr><td>Altitude:</td><td>241.908936</td></tr><tr><td>Heartbeat:</td><td>75.0</td></tr></table>");
47
+ });
48
+ map.addOverlay(mStart);
49
+
50
+ var iconFinish = new GIcon(baseIcon);
51
+ iconFinish.image = "http://www.joakim-systems.com/gicons/dd-end.png";
52
+ var pFinish = new GPoint(-80.832151, 35.495465);
53
+ var mFinish = new GMarker(pFinish, iconFinish);
54
+ GEvent.addListener(mFinish, "click", function() {
55
+ mFinish.openInfoWindowHtml("<table align='left'><tr><td colspan='2'><b>Finish!</b></td></tr><tr><td>Distance:</td><td>0.0109261260004515 mi</td></tr><tr><td>Time of Day:</td><td>2007-07-16T23:47:46Z</td></tr><tr><td>Elapsed Time:</td><td>00:05:02</td></tr><tr><td>Average Pace:</td><td>460:40.171 per mi</td></tr><tr><td>Lat/Lng:</td><td>35.495465 , -80.832151</td></tr><tr><td>Altitude:</td><td>242.389648</td></tr><tr><td>Heartbeat:</td><td>87.0</td></tr></table>");
56
+ });
57
+ map.addOverlay(mFinish);
58
+
59
+
60
+
61
+
62
+ GEvent.addListener(map, "click", function() {
63
+ var center = map.getCenter();
64
+
65
+ document.getElementById("messages").innerHTML = 'click: ' + center.toString();
66
+ });
67
+ GEvent.addListener(map, "moveend", function() {
68
+ var center = map.getCenter();
69
+
70
+ document.getElementById("messages").innerHTML = 'moveend: ' + center.toString();
71
+ });
72
+
73
+ }
74
+ }
75
+ //]]>
76
+
77
+ </script>
78
+ </head>
79
+ <body onload="load()" onunload="GUnload()">
80
+ <center>
81
+ <h3> </h3>
82
+ <h5> Generated by Gooby Sun Jul 22 09:48:48 EDT 2007 <br> Gooby = Google APIs + Ruby </h5>
83
+ <div id="map" style="width: 900px; height: 600px"></div>
84
+ <div id="messages"></div>
85
+ </center>
86
+ </body>
87
+ </html>
data/sql/gooby.ddl CHANGED
@@ -1,9 +1,9 @@
1
1
  -- ***************************************************************************
2
- -- Gooby - Copyright 2007 by Chris Joakim. 2007/06/10.
2
+ -- Gooby - Copyright 2007 by Chris Joakim.
3
3
  -- Gooby is available under GNU General Public License (GPL) license.
4
4
  -- ============================================================================
5
5
  --
6
- -- DDL to drop and (re)create the MySQL 'gooby' database for Gooby 1.1.0.
6
+ -- DDL to drop and (re)create the MySQL 'gooby' database for Gooby 1.2.0.
7
7
  --
8
8
  -- Execute from shell via command:
9
9
  -- /usr/local/mysql/bin/mysql < gooby.ddl -u <uid> -p
@@ -11,19 +11,21 @@
11
11
  -- Example data - each line contains the following pipe-delimited fields:
12
12
  -- column index value
13
13
  -- --------------- ----- --------------------
14
- -- primary_key 0 2007-03-03T15:58:57Z.3
15
- -- run_id 1 2007-03-03T15:58:57Z
16
- -- date 2 2007-03-03
17
- -- time 3 15:59:06
18
- -- tkpt_num 4 3
19
- -- latitude 5 35.492118
20
- -- longitude 6 -80.832979
21
- -- altitude_ft 7 818.66254272
22
- -- run_distance 8 0.0161674682166431
23
- -- run_elapsed 9 00:00:09
24
- -- lap_tkpt_number 10 3
25
- -- lap_distance 11 0.0161674682166431
26
- -- lap_elapsed 12 00:00:09
14
+ -- primary_key 0 [2007-05-05T12:28:32Z.285]
15
+ -- run_id 1 [2007-05-05T12:28:32Z]
16
+ -- date 2 [2007-05-05]
17
+ -- time 3 [12:55:11]
18
+ -- tkpt_num 4 [285]
19
+ -- latitude 5 [35.498395]
20
+ -- longitude 6 [-80.847871]
21
+ -- altitude 7 [251.041382]
22
+ -- heartbeat 8 [-1]
23
+ -- run_distance 9 [5.09338915928222]
24
+ -- uom 10 [km]
25
+ -- run_elapsed 11 [00:26:39]
26
+ -- lap_tkpt_number 12 [285]
27
+ -- lap_distance 13 [5.09338915928222]
28
+ -- lap_elapsed 14 [00:26:39]
27
29
  --
28
30
  -- ***************************************************************************
29
31
 
@@ -44,8 +46,10 @@ create table gps_data (
44
46
  tkpt_num smallint,
45
47
  latitude decimal(13,10),
46
48
  longitude decimal(13,10),
47
- altitude_ft decimal(15,10),
49
+ altitude decimal(15,10),
50
+ heartbeat smallint,
48
51
  run_distance decimal(16,10),
52
+ uom varchar(2),
49
53
  run_elapsed time,
50
54
  lap_tkpt_number smallint,
51
55
  lap_distance decimal(16,10),
data/sql/gooby_load.dml CHANGED
@@ -1,35 +1,62 @@
1
- -- ***************************************************************************
2
- -- Gooby - Copyright 2007 by Chris Joakim. 2007/06/10.
3
- -- Gooby is available under GNU General Public License (GPL) license.
1
+ -- ****************************************************************************
2
+ -- Gooby = Google APIs + Ruby
3
+ -- Gooby - Copyright 2007 by Chris Joakim.
4
+ -- Gooby is available under GNU General Public License (GPL) license.
4
5
  -- ============================================================================
5
6
  --
6
- -- DML to load the MySQL 'gooby' database 'gps_data' for Gooby 1.1.0.
7
+ -- DML to load the MySQL 'gooby' database 'gps_data' for Gooby 1.2.0.
7
8
  -- See file 'gooby.ddl' which contains the DDL statements to create the DB.
8
9
  --
9
10
  -- Execute from shell via command:
10
11
  -- /usr/local/mysql/bin/mysql < gooby_load.dml -u <uid> -p
11
12
  --
12
- -- **************************************************************************
13
+ -- ****************************************************************************
13
14
 
14
15
  use gooby;
15
16
 
16
17
  -- Query the row count before loading.
17
18
  select count(*) from gps_data;
19
+
20
+ LOAD DATA INFILE '/devtools/workspace/RF_Gooby/data/20050305_corporate_cup_hm.csv'
21
+ INTO TABLE gooby.gps_data
22
+ FIELDS TERMINATED BY '|'
23
+ LINES TERMINATED BY '\n'
24
+ IGNORE 1 LINES;
18
25
 
19
- LOAD DATA INFILE '/devtools/workspace/RF_Gooby/data/2007_g201.csv'
26
+ LOAD DATA INFILE '/devtools/workspace/RF_Gooby/data/20050430_nashville_marathon_km.csv'
27
+ INTO TABLE gooby.gps_data
28
+ FIELDS TERMINATED BY '|'
29
+ LINES TERMINATED BY '\n'
30
+ IGNORE 1 LINES;
31
+
32
+ LOAD DATA INFILE '/devtools/workspace/RF_Gooby/data/20060115_phoenix_marathon.csv'
20
33
  INTO TABLE gooby.gps_data
21
34
  FIELDS TERMINATED BY '|'
22
35
  LINES TERMINATED BY '\n'
23
36
  IGNORE 1 LINES;
24
-
25
- LOAD DATA INFILE '/devtools/workspace/RF_Gooby/data/2007_g205.csv'
37
+
38
+ LOAD DATA INFILE '/devtools/workspace/RF_Gooby/data/20070101_davidson_11m.csv'
39
+ INTO TABLE gooby.gps_data
40
+ FIELDS TERMINATED BY '|'
41
+ LINES TERMINATED BY '\n'
42
+ IGNORE 1 LINES;
43
+
44
+ LOAD DATA INFILE '/devtools/workspace/RF_Gooby/data/20070505_davidson_5k_km.csv'
26
45
  INTO TABLE gooby.gps_data
27
46
  FIELDS TERMINATED BY '|'
28
47
  LINES TERMINATED BY '\n'
29
48
  IGNORE 1 LINES;
30
49
 
50
+
51
+ LOAD DATA INFILE '/devtools/workspace/RF_Gooby/data/hrm1.csv'
52
+ INTO TABLE gooby.gps_data
53
+ FIELDS TERMINATED BY '|'
54
+ LINES TERMINATED BY '\n'
55
+ IGNORE 1 LINES;
56
+
31
57
  -- Query the data after loading.
32
58
  select count(*) from gps_data;
33
59
  select distinct run_id from gps_data;
34
60
  select * from gps_data where id = '2007-01-01T16:38:26Z.1'; -- garmin 201
35
- select * from gps_data where id = '2007-06-09T11:20:58Z.1048'; -- garmin 205
61
+ select * from gps_data where id = '2007-05-05T12:28:32Z.258'; -- garmin 205
62
+ select * from gps_data where id = '2007-07-16T23:42:44Z.2'; -- garmin 305
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: gooby
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2007-06-10 00:00:00 -04:00
6
+ version: 1.2.0
7
+ date: 2007-07-22 00:00:00 -04:00
8
8
  summary: Google APIs + Ruby = Gooby
9
9
  require_paths:
10
10
  - lib
@@ -20,7 +20,7 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.8.1
23
+ version: 1.8.4
24
24
  version:
25
25
  platform: ruby
26
26
  signing_key:
@@ -30,33 +30,38 @@ authors:
30
30
  - Chris Joakim
31
31
  files:
32
32
  - bin/code_scan.rb
33
- - bin/example_usage.txt
34
33
  - bin/gooby_been_there.rb
35
34
  - bin/gooby_config.rb
35
+ - bin/gooby_csv_validation.rb
36
+ - bin/gooby_first_trackpoints_as_poi.rb
36
37
  - bin/gooby_gen_gmap.rb
37
38
  - bin/gooby_parser.rb
38
39
  - bin/gooby_splitter.rb
39
40
  - bin/gooby_version.rb
40
41
  - bin/run_all.sh
41
42
  - bin/run_been_there.sh
43
+ - bin/run_config.sh
44
+ - bin/run_csv_validation.sh
42
45
  - bin/run_db_gen.sh
43
46
  - bin/run_db_load.sh
47
+ - bin/run_first_trackpoints_as_poi.sh
44
48
  - bin/run_gen_gmaps.sh
45
- - bin/run_parse.sh
46
- - bin/run_parse_named.sh
49
+ - bin/run_parse_full.sh
50
+ - bin/run_parse_samples.sh
47
51
  - bin/run_split.sh
52
+ - bin/run_version.sh
48
53
  - config/gooby_config.yaml
49
54
  - data/20050305_corporate_cup_hm.csv
50
55
  - data/20050305_corporate_cup_hm.xml
51
- - data/20050430_nashville_marathon.csv
52
56
  - data/20050430_nashville_marathon.xml
57
+ - data/20050430_nashville_marathon_km.csv
53
58
  - data/20060115_phoenix_marathon.csv
54
59
  - data/20060115_phoenix_marathon.xml
55
- - data/davidson_11m_20070101.csv
56
- - data/davidson_11m_20070101.xml
57
- - data/davidson_5K_20070505.csv
58
- - data/davidson_5K_20070505.xml
59
- - data/test1.txt
60
+ - data/20070101_davidson_11m.csv
61
+ - data/20070101_davidson_11m.xml
62
+ - data/20070505_davidson_5k.xml
63
+ - data/20070505_davidson_5k_km.csv
64
+ - data/hrm1.csv
60
65
  - img/gicons
61
66
  - img/gicons/blank.png
62
67
  - img/gicons/dd-end.png
@@ -187,12 +192,41 @@ files:
187
192
  - img/gicons/readme.txt
188
193
  - img/gicons/shadow50.png
189
194
  - lib/gooby.rb
195
+ - lib/gooby_code_scanner.rb
196
+ - lib/gooby_command.rb
197
+ - lib/gooby_configuration.rb
198
+ - lib/gooby_counter_hash.rb
199
+ - lib/gooby_course.rb
200
+ - lib/gooby_csv_point.rb
201
+ - lib/gooby_csv_reader.rb
202
+ - lib/gooby_csv_run.rb
203
+ - lib/gooby_delim_line.rb
204
+ - lib/gooby_dttm.rb
205
+ - lib/gooby_duration.rb
206
+ - lib/gooby_forerunner_xml_parser.rb
207
+ - lib/gooby_forerunner_xml_splitter.rb
208
+ - lib/gooby_google_map_generator.rb
209
+ - lib/gooby_history.rb
210
+ - lib/gooby_kernel.rb
211
+ - lib/gooby_lap.rb
212
+ - lib/gooby_line.rb
213
+ - lib/gooby_object.rb
214
+ - lib/gooby_point.rb
215
+ - lib/gooby_run.rb
216
+ - lib/gooby_simple_xml_parser.rb
217
+ - lib/gooby_test_helper.rb
218
+ - lib/gooby_track.rb
219
+ - lib/gooby_track_point.rb
220
+ - lib/gooby_training_center_xml_parser.rb
221
+ - lib/gooby_training_center_xml_splitter.rb
222
+ - lib/split_code.sh
190
223
  - samples/20050305_corporate_cup_hm.html
191
224
  - samples/20050430_nashville_marathon.html
192
225
  - samples/20060115_phoenix_marathon.html
226
+ - samples/20070101_davidson_11m.html
227
+ - samples/20070505_davidson_5k.html
193
228
  - samples/been_there.txt
194
- - samples/davidson_11m_20070101.html
195
- - samples/davidson_5K_20070505.html
229
+ - samples/hrm1.html
196
230
  - sql/gooby.ddl
197
231
  - sql/gooby_load.dml
198
232
  - README
@@ -1,55 +0,0 @@
1
-
2
- The following are sample command line arguments demonstrating the usage of Gooby.
3
- Three programs are involved - gooby_splitter.rb, gooby_parser.rb, and gooby_gen_gmap.rb.
4
-
5
- Please see each of these three files for programatic use of Gooby.
6
-
7
- --------------------
8
-
9
- gooby_splitter.rb splits a large Garmin Export file into several individual run or activity
10
- files. The output *.xml file names are based on start time of the run or activity per
11
- the GPS data.
12
-
13
- > ruby bin/gooby_splitter.rb garmin205 data/raw/20070602.tcx /temp/splits
14
-
15
- command line args:
16
- the first arg, format, should be one of: garmin201, garmin205, garmin305, etc.
17
- the second arg is the input filename - which is a garmin export file.
18
- the third arg is the output directory where the split files are written to.
19
-
20
- --------------------
21
-
22
- gooby_parser.rb parses one of the *.xml files produced by the above gooby_splitter.rb, into a CSV file.
23
- The CSV file is a simpler and more useful format for most needs. This CSV file is used
24
- by the gooby_gen_gmap.rb program, described below.
25
-
26
- You should redirect the output of gooby_parser.rb to the file of your choice.
27
-
28
- > ruby bin/gooby_parser.rb garmin201 data/20050305_corporate_cup_hm.xml > data/20050305_corporate_cup_hm.csv
29
- > ruby bin/gooby_parser.rb garmin201 data/20050430_nashville_marathon.xml > data/20050430_nashville_marathon.csv
30
- > ruby bin/gooby_parser.rb garmin201 data/20060115_phoenix_marathon.xml > data/20060115_phoenix_marathon.csv
31
- > ruby bin/gooby_parser.rb garmin205 data/activity_2007_05_05_12_28_32.xml > data/20070505_Davidson_5K.csv
32
- > ruby bin/gooby_parser.rb garmin205 data/activity_2007_06_02_11_06_06.xml > data/20070602_11Miler.csv
33
-
34
- command line args:
35
- the first arg, format, should be one of: garmin201, garmin205, garmin305, etc.
36
- the second arg, input xml filename, was produced by the Gooby 'gooby_splitter.rb' program.
37
-
38
- --------------------
39
-
40
- gooby_gen_gmap.rb generates a HTML file which represents a Google Map for the given CSV data.
41
- The CSV file was produced by the above gooby_parser.rb program. Note that you can also
42
- manually edit your own CSV file with your data, and pass this file to gooby_gen_gmap.rb.
43
-
44
- You should redirect the output of gooby_gen_gmap.rb to the file of your choice.
45
-
46
- > ruby bin/gooby_gen_gmap.rb data/20050305_corporate_cup_hm.csv > samples/20050305_corporate_cup_hm.html
47
- > ruby bin/gooby_gen_gmap.rb data/20050430_nashville_marathon.csv > samples/20050430_nashville_marathon.html
48
- > ruby bin/gooby_gen_gmap.rb data/20060115_phoenix_marathon.csv > samples/20060115_phoenix_marathon.html
49
- > ruby bin/gooby_gen_gmap.rb data/20070505_Davidson_5K.csv > samples/20070505_Davidson_5K.html
50
- > ruby bin/gooby_gen_gmap.rb data/20070602_11miler.csv > samples/20070602_11miler.html
51
-
52
- command line args:
53
- the first arg, csv filename, was produced by the Gooby 'gooby_parser.rb' program, or manually edited.
54
-
55
-
data/bin/run_parse.sh DELETED
@@ -1,43 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby - Copyright 2007 by Chris Joakim.
4
- # Gooby is available under GNU General Public License (GPL) license.
5
- # 2007/06/10
6
- #
7
- # This shell script is used to parse both the Forerunner 201 and 205 files
8
- # exported from Garmin software.
9
- # ============================================================================
10
-
11
- # Parsing of the Garmin Forerunner 201 file.
12
-
13
- echo wc /devtools/workspace/RF_Gooby/data/raw/forerunner_201_2007.xml ...
14
- wc /devtools/workspace/RF_Gooby/data/raw/forerunner_201_2007.xml
15
-
16
- echo parsing the forerunner 201 xml file...
17
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 /devtools/workspace/RF_Gooby/data/raw/forerunner_201_2007.xml > /devtools/workspace/RF_Gooby/data/2007_g201.csv
18
-
19
- echo wc /devtools/workspace/RF_Gooby/data/2007_g201.csv
20
- wc /devtools/workspace/RF_Gooby/data/2007_g201.csv
21
-
22
-
23
- # Parsing of the Garmin Forerunner 205 file.
24
-
25
- echo wc /devtools/workspace/RF_Gooby/data/raw/forerunner_205_2007.tcx ...
26
- wc /devtools/workspace/RF_Gooby/data/raw/forerunner_205_2007.tcx
27
-
28
- echo parsing the forerunner 205 xml file...
29
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin205 /devtools/workspace/RF_Gooby/data/raw/forerunner_205_2007.tcx > /devtools/workspace/RF_Gooby/data/2007_g205.csv
30
-
31
- echo wc /devtools/workspace/RF_Gooby/data/2007_g205.csv
32
- wc /devtools/workspace/RF_Gooby/data/2007_g205.csv
33
-
34
-
35
- # Parsing of previously 'split" Garmin Forerunner 201 and 205 files (see 'run_split.sh').
36
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 /devtools/workspace/RF_Gooby/data/20050305_corporate_cup_hm.xml > /devtools/workspace/RF_Gooby/data/20050305_corporate_cup_hm.csv
37
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 /devtools/workspace/RF_Gooby/data/20050430_nashville_marathon.xml > /devtools/workspace/RF_Gooby/data/20050430_nashville_marathon.csv
38
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 /devtools/workspace/RF_Gooby/data/20060115_phoenix_marathon.xml > /devtools/workspace/RF_Gooby/data/20060115_phoenix_marathon.csv
39
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 /devtools/workspace/RF_Gooby/data/davidson_11m_20070101.xml > /devtools/workspace/RF_Gooby/data/davidson_11m_20070101.csv
40
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin205 /devtools/workspace/RF_Gooby/data/davidson_5K_20070505.xml > /devtools/workspace/RF_Gooby/data/davidson_5K_20070505.csv
41
-
42
- echo done
43
-
@@ -1,19 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby - Copyright 2007 by Chris Joakim.
4
- # Gooby is available under GNU General Public License (GPL) license.
5
- # 2007/06/10
6
- #
7
- # This shell script is used to parse both the Forerunner 201 and 205 files
8
- # exported from Garmin software.
9
- # ============================================================================
10
-
11
- # Parsing of previously 'split" Garmin Forerunner 201 and 205 files (see 'run_split.sh').
12
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 /devtools/workspace/RF_Gooby/data/20050305_corporate_cup_hm.xml > /devtools/workspace/RF_Gooby/data/20050305_corporate_cup_hm.csv
13
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 /devtools/workspace/RF_Gooby/data/20050430_nashville_marathon.xml > /devtools/workspace/RF_Gooby/data/20050430_nashville_marathon.csv
14
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 /devtools/workspace/RF_Gooby/data/20060115_phoenix_marathon.xml > /devtools/workspace/RF_Gooby/data/20060115_phoenix_marathon.csv
15
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 /devtools/workspace/RF_Gooby/data/davidson_11m_20070101.xml > /devtools/workspace/RF_Gooby/data/davidson_11m_20070101.csv
16
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin205 /devtools/workspace/RF_Gooby/data/davidson_5K_20070505.xml > /devtools/workspace/RF_Gooby/data/davidson_5K_20070505.csv
17
-
18
- echo done
19
-