Skip to content

Commit 6edc1ac

Browse files
committed
Imported from SondeHub Tracker
0 parents  commit 6edc1ac

File tree

154 files changed

+19566
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+19566
-0
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.swp
2+
*.pyc
3+
*.log
4+
js/mobile.js
5+
js/init_plot.js
6+
css/mobile.css
7+
cache.manifest
8+
tiles/

.htaccess

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<IfModule mod_deflate.c>
2+
# Compress HTML, CSS, JavaScript, Text, XML and fonts
3+
AddOutputFilterByType DEFLATE application/javascript
4+
AddOutputFilterByType DEFLATE application/rss+xml
5+
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
6+
AddOutputFilterByType DEFLATE application/x-font
7+
AddOutputFilterByType DEFLATE application/x-font-opentype
8+
AddOutputFilterByType DEFLATE application/x-font-otf
9+
AddOutputFilterByType DEFLATE application/x-font-truetype
10+
AddOutputFilterByType DEFLATE application/x-font-ttf
11+
AddOutputFilterByType DEFLATE application/x-javascript
12+
AddOutputFilterByType DEFLATE application/xhtml+xml
13+
AddOutputFilterByType DEFLATE application/xml
14+
AddOutputFilterByType DEFLATE font/opentype
15+
AddOutputFilterByType DEFLATE font/otf
16+
AddOutputFilterByType DEFLATE font/ttf
17+
AddOutputFilterByType DEFLATE image/svg+xml
18+
AddOutputFilterByType DEFLATE image/x-icon
19+
AddOutputFilterByType DEFLATE text/css
20+
AddOutputFilterByType DEFLATE text/html
21+
AddOutputFilterByType DEFLATE text/javascript
22+
AddOutputFilterByType DEFLATE text/plain
23+
AddOutputFilterByType DEFLATE text/xml
24+
25+
# Remove browser bugs (only needed for ancient browsers)
26+
BrowserMatch ^Mozilla/4 gzip-only-text/html
27+
BrowserMatch ^Mozilla/4\.0[678] no-gzip
28+
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
29+
Header append Vary User-Agent
30+
</IfModule>
31+
32+
AddType text/cache-manifest .manifest
33+
AddType text/cache-manifest .appcache
34+
35+
AddType application/x-font-woff .woff
36+
AddType application/x-font-ttf .ttf
37+
AddType application/vnd.ms-fontobject .eot
38+
AddType image/svg+xml .svg

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2012-2016 Rossen Georgiev
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SondeHub Tracker
2+
3+
A fork of [habitat-mobile-tracker](https://github.com/rossengeorgiev/habitat-mobile-tracker) for use with the [SondeHub v2 ElasticSearch](https://github.com/projecthorus/sondehub-infra/wiki/ElasticSearch-Kibana-access) database. Huge credits to [Rossen Georgiev](https://github.com/rossengeorgiev/) for developing the mobile-tracker.
4+
5+
![mobile tracker screenshot](resources/mobiletracker-screencap.png "mobile tracker screenshot")
6+
7+
A webapp for tracking radiosondes. Works an desktop and mobile devices.
8+
The SondeHub tracker is a continuation of [spacenear.us/tracker](http://spacenear.us/tracker).
9+
10+
## Features
11+
12+
* Radiosonde Tracking using [SondeHub V2](https://github.com/projecthorus/sondehub-infra/wiki/ElasticSearch-Kibana-access) data.
13+
* Telemetry graph for each balloon
14+
* Chase Car functionality
15+
* Near realtime weather overlays
16+
* [Daylight cycle overlay](https://github.com/rossengeorgiev/nite-overlay), for long flights
17+
* Map tracker with Leaflet API
18+
* Run the app natively on IOS, Android, or desktop as a Progressive Wep App
19+
20+
### Geo position
21+
22+
The app will ask for permission to use your location.
23+
This is required for some of the features. It is **important** to note that
24+
your location will not be made available or send to anyone. Unless, you enable
25+
the `chase car mode`, which will periodically upload it to SondeHub. _The app
26+
will always start with `chase car mode` disabled._
27+
28+
## Browser requirements
29+
30+
Any modern browser should be able to run the app. Some features are limited to Chromium based browsers.
31+
32+
## Contribute
33+
34+
Don't hesitate to report any issues, or suggest improvements. Just visit the [issues page](https://github.com/projecthorus/sondehub-tracker/issues).
35+
Pull requests are welcome.
36+
37+
## Installation
38+
39+
Requirements: Java
40+
41+
$ git clone https://github.com/projecthorus/sondehub-tracker.git
42+
$ ./build.sh
43+
44+
## Original design
45+
46+
Author: Daniel Saul [@danielsaul](https://github.com/danielsaul)
47+
48+
49+
50+

build.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
# compile stylesheet
4+
echo -n "Compiling CSS... "
5+
cd css
6+
rm -f mobile.css
7+
cat base.css skeleton.css layout.css habitat-font.css main.css > mobile.tmp
8+
java -jar "../tools/yuicompressor-2.4.8.jar" --type=css mobile.tmp > mobile.css
9+
rm -f mobile.tmp
10+
cd ..
11+
echo "Done!"
12+
13+
#compile javascript
14+
echo -n "Compiling JavaScript... "
15+
cd js
16+
rm -f mobile.js init_plot.js
17+
# precompiled libs
18+
cat jquery* >> mobile.js
19+
20+
VERSION="`git rev-parse --short HEAD`"
21+
22+
# compile the rest
23+
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge iscroll.js >> mobile.js
24+
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge chasecar.lib.js | sed "s/{VER}/$VERSION/" >> mobile.js
25+
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge tracker.js >> mobile.js
26+
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge app.js >> mobile.js
27+
28+
#compile plot lib and config
29+
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge _jquery.flot.js >> init_plot.js
30+
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge plot_config.js >> init_plot.js
31+
32+
cd ..
33+
echo "Done!"
34+
echo -n "Generate cache.manifest..."
35+
36+
37+
sed "s/^\(# version\) .*$/\1 $VERSION `date +%s`/" cache.manifest-dev > cache.manifest
38+
39+
echo "Done!"
40+
41+
echo "Build version: $VERSION"

cache.manifest-dev

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
CACHE MANIFEST
2+
# version {VERSION}
3+
4+
# gogole maps files
5+
http://maps.google.com/maps/api/js?v=3.22&sensor=false&libraries=map,common,controls,util,marker,onion,kml,ga,infowindow,stats,poly,overlay,weather,weather_impl,geometry&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg
6+
http://fonts.googleapis.com/css?family=Roboto:300,400,500,700
7+
http://maps.gstatic.com/mapfiles/undo_poly.png
8+
http://maps.gstatic.com/mapfiles/mv/imgs8.png
9+
http://maps.gstatic.com/mapfiles/transparent.png
10+
http://maps.gstatic.com/mapfiles/api-3/images/mapcnt3.png
11+
http://maps.gstatic.com/mapfiles/api-3/images/google_white2_hdpi.png
12+
http://maps.gstatic.com/mapfiles/api-3/images/google_white2.png
13+
http://maps.gstatic.com/mapfiles/openhand_8_8.cur
14+
15+
# app files
16+
img/closedhand.cur
17+
img/openhand.cur
18+
img/logo.png
19+
img/blank.png
20+
img/marker-you.png
21+
img/apple-touch-icon.png
22+
img/markers/hab_nyan.gif
23+
img/markers/nyan.gif
24+
img/markers/antenna-green.png
25+
img/markers/balloon-red.png
26+
img/markers/balloon-blue.png
27+
img/markers/balloon-green.png
28+
img/markers/balloon-purple.png
29+
img/markers/balloon-cyan.png
30+
img/markers/balloon-orange.png
31+
img/markers/balloon-yellow.png
32+
img/markers/balloon-rpi.png
33+
img/markers/car-blue.png
34+
img/markers/car-green.png
35+
img/markers/car-red.png
36+
img/markers/car-yellow.png
37+
img/markers/parachute-blue.png
38+
img/markers/parachute-green.png
39+
img/markers/parachute-red.png
40+
img/markers/parachute-yellow.png
41+
img/markers/parachute-cyan.png
42+
img/markers/parachute-orange.png
43+
img/markers/parachute-purple.png
44+
img/markers/parachute-rpi.png
45+
img/markers/payload-blue.png
46+
img/markers/payload-cyan.png
47+
img/markers/payload-green.png
48+
img/markers/payload-orange.png
49+
img/markers/payload-purple.png
50+
img/markers/payload-red.png
51+
img/markers/payload-yellow.png
52+
img/markers/payload-rpi.png
53+
img/markers/shadow.png
54+
img/markers/target-blue.png
55+
img/markers/target-cyan.png
56+
img/markers/target-green.png
57+
img/markers/target-orange.png
58+
img/markers/target-purple.png
59+
img/markers/target-red.png
60+
img/markers/target-yellow.png
61+
img/hab-spinner.gif
62+
css/mobile.css
63+
js/mobile.js
64+
js/init_plot.js
65+
font/HabitatFont.eot
66+
font/HabitatFont.svg
67+
font/HabitatFont.ttf
68+
font/HabitatFont.woff
69+
font/Roboto-regular.woff
70+
71+
NETWORK:
72+
*
73+
74+
FALLBACK:
75+
/ index.html

0 commit comments

Comments
 (0)