9 |
use File::Find; |
use File::Find; |
10 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
11 |
|
|
12 |
use lib '../'; |
use lib '../lib'; |
13 |
|
use blib; |
14 |
use NMEA; |
use NMEA; |
15 |
|
|
16 |
my $trace_path = '/home/dpavlin/x/openmoko/gps/'; |
my $trace_path = '../nmea/'; |
17 |
|
|
18 |
# http://localhost/ |
# http://localhost/ |
19 |
my $map_key = 'ABQIAAAAVQ5szt9Jd8ws6vgfVQOEmhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQ1cKf0DwFJcwtpESJEI0hL8QgtYg'; |
my $map_key = 'ABQIAAAAVQ5szt9Jd8ws6vgfVQOEmhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQ1cKf0DwFJcwtpESJEI0hL8QgtYg'; |
39 |
"$_ (" . (stat("$trace_path/$_"))[7] . " bytes)" |
"$_ (" . (stat("$trace_path/$_"))[7] . " bytes)" |
40 |
} |
} |
41 |
sort { |
sort { |
42 |
(stat("$trace_path/$a"))[10] <=> (stat("$trace_path/$b"))[10] |
(stat("$trace_path/$a"))[9] <=> (stat("$trace_path/$b"))[9] |
43 |
} @traces |
} @traces |
44 |
], |
], |
45 |
-onChange => 'trace_frm.submit()', |
-onChange => 'trace_frm.submit()', |
98 |
html => join('<br/>', |
html => join('<br/>', |
99 |
map { |
map { |
100 |
ucfirst($_) . ': ' . $hash->{$_} |
ucfirst($_) . ': ' . $hash->{$_} |
101 |
} ( qw/time lat lon speed course/ ) |
} ( qw/number time lat lon speed course/ ) |
102 |
), |
), |
103 |
}; |
}; |
104 |
|
|
207 |
$map_script |
$map_script |
208 |
<a href="http://aprs.gids.nl/nmea/">GPS - NMEA sentence information</a> |
<a href="http://aprs.gids.nl/nmea/">GPS - NMEA sentence information</a> |
209 |
}); |
}); |
210 |
|
|
211 |
|
my $stats = NMEA->stats; |
212 |
|
$html .= '<table>'; |
213 |
|
foreach my $n ( keys %$stats ) { |
214 |
|
$html .= "<tr><td>$n</td><td>" . $stats->{$n} . "</td></tr>"; |
215 |
|
} |
216 |
|
$html .= '</table>'; |
217 |
|
|
218 |
} else { |
} else { |
219 |
$html .= '<em>No points found for ' . $q->param('trace') . '</em>'; |
$html .= '<em>No points found for ' . $q->param('trace') . '</em>'; |