columbus3 0.5.1 → 0.6.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.
- checksums.yaml +5 -5
- data/README.md +126 -33
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/columbus3.gemspec +7 -7
- data/doc/ChangeLog.org +47 -0
- data/doc/todo.org +24 -11
- data/lib/columbus3/cli/command_semantics.rb +71 -192
- data/lib/columbus3/cli/command_syntax.rb +214 -15
- data/lib/columbus3/metadata/sidecar.rb +6 -1
- data/lib/columbus3/renderer/flot_renderer.rb +12 -8
- data/lib/columbus3/renderer/leaflet_renderer.rb +12 -8
- data/lib/columbus3/version.rb +1 -1
- data/lib/html/flot.html.erb +1 -1
- data/lib/html/show.html.erb +1 -1
- data/lib/html/track.js.erb +3 -3
- metadata +18 -18
- data/doc/manual.txt +0 -122
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: columbus3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adolfo Villafiorita
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.
|
61
|
+
version: 4.5.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.
|
68
|
+
version: 4.5.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: geocoder
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,10 +80,10 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description: Some simple command line commands to manage tracks generated by the
|
83
|
+
description: Some simple command line commands to manage tracks generated by the Columbus
|
84
84
|
family of GPS loggers (CSV format).
|
85
85
|
email:
|
86
|
-
- adolfo.villafiorita@
|
86
|
+
- adolfo.villafiorita@me.com
|
87
87
|
executables:
|
88
88
|
- columbus3
|
89
89
|
extensions: []
|
@@ -506,7 +506,6 @@ files:
|
|
506
506
|
- bower_components/leaflet/package.json
|
507
507
|
- columbus3.gemspec
|
508
508
|
- doc/ChangeLog.org
|
509
|
-
- doc/manual.txt
|
510
509
|
- doc/todo.org
|
511
510
|
- exe/columbus3
|
512
511
|
- lib/columbus3.rb
|
@@ -525,7 +524,7 @@ files:
|
|
525
524
|
- lib/html/flot.html.erb
|
526
525
|
- lib/html/show.html.erb
|
527
526
|
- lib/html/track.js.erb
|
528
|
-
homepage:
|
527
|
+
homepage: http://www.github.com/avillafiorita/columbus3
|
529
528
|
licenses:
|
530
529
|
- MIT
|
531
530
|
metadata: {}
|
@@ -544,8 +543,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
544
543
|
- !ruby/object:Gem::Version
|
545
544
|
version: '0'
|
546
545
|
requirements: []
|
547
|
-
|
546
|
+
rubyforge_project:
|
547
|
+
rubygems_version: 2.6.11
|
548
548
|
signing_key:
|
549
549
|
specification_version: 4
|
550
|
-
summary: Manage V900 and V990 GPS tracks from the command line.
|
550
|
+
summary: Manage Columbus V900 and V990 GPS tracks from the command line.
|
551
551
|
test_files: []
|
data/doc/manual.txt
DELETED
@@ -1,122 +0,0 @@
|
|
1
|
-
NAME
|
2
|
-
columbus3 -- manage Columbus V900 and V990 tracks from the command line
|
3
|
-
|
4
|
-
SYNOPSYS
|
5
|
-
columbus3 [-h|-v]
|
6
|
-
columbus3 command [options] [args]
|
7
|
-
|
8
|
-
DESCRIPTION
|
9
|
-
|
10
|
-
columbus3 manages Columbus V900 and V990 tracks from the command line,
|
11
|
-
allowing a user to associate a sidecar file with the main information
|
12
|
-
about a track, searching tracks (through sidecar files), displaying
|
13
|
-
tracks on a map.
|
14
|
-
|
15
|
-
EXAMPLES
|
16
|
-
|
17
|
-
columbus3 -h # get syntax of each command
|
18
|
-
columbus3 process 11010101.CSV # generate a sidecar file
|
19
|
-
columbus3 search 'location ~ "USA"' # get tracks in the USA
|
20
|
-
columbus3 show 11010101.CSV 11010201.CSV # show tracks on a map (_show.html)
|
21
|
-
columbus3 graph 11010101.CSV # show info about a track (_graph.html)
|
22
|
-
|
23
|
-
if you do not want to type columbus3 each type, you can invoke a console:
|
24
|
-
|
25
|
-
columbus3 console
|
26
|
-
columbus3:000> process 11010101.CSV
|
27
|
-
columbus3:001> show 11010101.CSV
|
28
|
-
columbus3:002>
|
29
|
-
|
30
|
-
columbus3 also has a function to convert a GPX into a bunch of CSV
|
31
|
-
files (which you can then process with the other commands), with some
|
32
|
-
limitations (see below).
|
33
|
-
|
34
|
-
The command is useful if you are using different loggers for generating your
|
35
|
-
tracks:
|
36
|
-
|
37
|
-
columbus3 convert file.gpx
|
38
|
-
|
39
|
-
will generate
|
40
|
-
|
41
|
-
file-1.csv
|
42
|
-
file-2.csv
|
43
|
-
...
|
44
|
-
|
45
|
-
one per track in the GPX file.
|
46
|
-
|
47
|
-
**CSV export limitations** The Columbus V900 format has fields with fixed width,
|
48
|
-
and uses ^@ as a filler. The CSV file generated by the convert command generates fields
|
49
|
-
of variable width (standard CSV files, I dare say). The heading field is not computed
|
50
|
-
and the field is filled with -1.
|
51
|
-
|
52
|
-
Piping commands. You can pipe the output of a search command to show, using
|
53
|
-
the following syntax:
|
54
|
-
|
55
|
-
columbus3 search 'location ~ "USA"' --fields path | columbus3 show --sidecar
|
56
|
-
|
57
|
-
The option --fields shows only the pathname of the files found; the option
|
58
|
-
--sidecar removes the .yaml extension from the list of files found.
|
59
|
-
|
60
|
-
SEARCH SYNTAX
|
61
|
-
|
62
|
-
>>> DON'T FORGET TO EMBED YOUR QUERY IN SINGLE QUOTES <<<
|
63
|
-
|
64
|
-
Terms you can search for:
|
65
|
-
|
66
|
-
location, start_location, end_location
|
67
|
-
date, start_date, end_date
|
68
|
-
year
|
69
|
-
duration
|
70
|
-
max_speed
|
71
|
-
min_height
|
72
|
-
max_height
|
73
|
-
|
74
|
-
Numerical operators:
|
75
|
-
<, <=, ==, >=, >
|
76
|
-
|
77
|
-
String operators (locations):
|
78
|
-
~ (contains), == (is exactly)
|
79
|
-
|
80
|
-
Complex Terms:
|
81
|
-
Use "and" and "or" to build complex queries
|
82
|
-
|
83
|
-
Examples of simple searches
|
84
|
-
'location ~ "USA"' any track whose start or end location contains USA
|
85
|
-
'date > 2015-02-14' any track whose start or end date is after Feb 14, 2015
|
86
|
-
'year == 2015' any track whose start or end date is in 2015
|
87
|
-
'duration <= 01:02:03' any track with a duration of less than 1h, 2min, and 3secs
|
88
|
-
'max_speed > 120' any track with a max speed greater than 120 km/h
|
89
|
-
'min_height == 10' any track with a min height lower than 10 meters
|
90
|
-
|
91
|
-
Examples of complex searches
|
92
|
-
'location ~ "USA" and start_date >= 2015-01-01' tracks in the USA after or on Jan 1, 2015
|
93
|
-
'start_location ~ "Trenton" and end_location ~ "New York"' trips from Trenton to New York
|
94
|
-
|
95
|
-
List of supported fields in output
|
96
|
-
path -> relative path of the CSV file
|
97
|
-
filename -> basename of the CSV file
|
98
|
-
start_location -> start location
|
99
|
-
end_location -> end location
|
100
|
-
start_date -> start date (and time)
|
101
|
-
end_date -> end date (and time)
|
102
|
-
duration -> duration in seconds
|
103
|
-
min_speed -> minimum speed in km/h
|
104
|
-
max_speed -> maximum speed in km/h
|
105
|
-
min_height -> minimum height in meters
|
106
|
-
max_height -> maximum height in meters
|
107
|
-
|
108
|
-
VERSION
|
109
|
-
This is version 0.5.0
|
110
|
-
|
111
|
-
LICENSE
|
112
|
-
MIT
|
113
|
-
|
114
|
-
Columbus3 uses leaflet, leafleft-providers, flot, and jquery. They
|
115
|
-
are distributed under a different license: see their websites for more
|
116
|
-
details (or have a look at the license file shipped with the Gem)
|
117
|
-
|
118
|
-
SEE ALSO
|
119
|
-
If you are looking for a full graphical client, you might want to
|
120
|
-
download Columbus from http://www.minimalbit.com
|
121
|
-
|
122
|
-
https://github.com/avillafiorita/columbus3
|