Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
*.swp
*.pyc
*.log
js/mobile.js
js/init_plot.js
css/mobile.css
cache.manifest
/index.html
/service-worker.js
tiles/
38 changes: 0 additions & 38 deletions .htaccess

This file was deleted.

2 changes: 1 addition & 1 deletion DEVELOPER_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ To get a copy of the code and run a test web server:

1. [Fork the repository](https://github.com/projecthorus/sondehub-amateur-tracker/fork) by visiting [https://github.com/projecthorus/sondehub-amateur-tracker/fork](https://github.com/projecthorus/sondehub-amateur-tracker/fork).
2. Clone the repository with your git tool of choice.
3. Run `build.sh` to compile the javascript files. (This requires Java to be installed and in your path.)
3. Run `build.sh` to generate `index.html` and `service-worker.js`.
4. Run `python serve.py` to run a simple web server to (This requires python 3.x)
5. Visit [http://localhost:8000](http://localhost:8000) to view the local version of the server!
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ Pull requests are welcome.

## Installation

Requirements: Java

$ git clone https://github.com/projecthorus/sondehub-amateur-tracker.git
$ ./build.sh
$ python serve.py

Visit [http://localhost:8000](http://localhost:8000) to view the local version of the tracker!

## Original design

Expand Down
44 changes: 7 additions & 37 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,48 +1,18 @@
#!/bin/bash

# compile stylesheet
echo -n "Compiling CSS... "
cd css
rm -f mobile.css
cat base.css skeleton.css layout.css habitat-font.css main.css leaflet.css leaflet.fullscreen.css > mobile.tmp
java -jar "../tools/yuicompressor-2.4.8.jar" --type=css mobile.tmp > mobile.css
rm -f mobile.tmp
cd ..
echo "Done!"

#compile javascript
echo -n "Compiling JavaScript... "
cd js
rm -f mobile.js init_plot.js
# precompiled libs
cat jquery* >> mobile.js
set -e

VERSION="`git rev-parse --short HEAD`"

BUILD_DATE="`date -u +%Y-%m-%dT%H:%M:%SZ`"

# compile the rest
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge iscroll.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge chasecar.lib.js | sed "s/{VER}/$VERSION/" >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge tracker.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge app.js | sed "s/{VER}/$VERSION/" | sed "s/{BUILD_DATE}/$BUILD_DATE/" >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge colour-map.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge suncalc.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge format.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge flight_doc.js >> mobile.js


#compile plot lib and config
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge _jquery.flot.js >> init_plot.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge plot_config.js >> init_plot.js

cd ..
# cache fixes
echo -n "Generating index.html... "
sed -e "s/{VER}/$VERSION/" -e "s/{BUILD_DATE}/$BUILD_DATE/" index.template.html > index.html
echo "Done!"
echo -n "Generate cache.manifest..."


sed "s/^\(# version\) .*$/\1 $VERSION `date +%s`/" cache.manifest-dev > cache.manifest

echo -n "Generating service-worker.js... "
sed -e "s/{VER}/$VERSION/" service-worker.template.js > service-worker.js
echo "Done!"

echo "Build version: $VERSION Build date: $BUILD_DATE"
echo "Build version: $VERSION Build date: $BUILD_DATE"
75 changes: 0 additions & 75 deletions cache.manifest-dev

This file was deleted.

Binary file removed img/markers/balloon-adafruit.png
Binary file not shown.
Binary file removed img/markers/balloon-blue.png
Binary file not shown.
Binary file removed img/markers/balloon-buzz.png
Binary file not shown.
Binary file removed img/markers/balloon-cyan.png
Binary file not shown.
Binary file removed img/markers/balloon-green.png
Binary file not shown.
Binary file removed img/markers/balloon-invisible.png
Binary file not shown.
Binary file removed img/markers/balloon-iss.png
Binary file not shown.
Binary file removed img/markers/balloon-orange.png
Binary file not shown.
Binary file removed img/markers/balloon-purple.png
Binary file not shown.
Binary file removed img/markers/balloon-red.png
Binary file not shown.
Binary file removed img/markers/balloon-rob.png
Binary file not shown.
Binary file removed img/markers/balloon-rpi.png
Binary file not shown.
Binary file removed img/markers/balloon-shockpink.png
Binary file not shown.
Binary file removed img/markers/balloon-thereg.png
Binary file not shown.
Binary file removed img/markers/balloon-yellow.png
Binary file not shown.
58 changes: 58 additions & 0 deletions img/markers/balloon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/markers/car-blue.png
Binary file not shown.
Binary file removed img/markers/car-green.png
Binary file not shown.
Binary file removed img/markers/car-purple.png
Binary file not shown.
Binary file removed img/markers/car-red.png
Binary file not shown.
Binary file removed img/markers/car-teal.png
Binary file not shown.
Binary file removed img/markers/car-yellow.png
Binary file not shown.
88 changes: 88 additions & 0 deletions img/markers/car.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/markers/parachute-blue.png
Binary file not shown.
Binary file removed img/markers/parachute-cyan.png
Binary file not shown.
Binary file removed img/markers/parachute-green.png
Diff not rendered.
Binary file removed img/markers/parachute-orange.png
Diff not rendered.
Binary file removed img/markers/parachute-purple.png
Diff not rendered.
Binary file removed img/markers/parachute-red.png
Diff not rendered.
Binary file removed img/markers/parachute-rpi.png
Diff not rendered.
Binary file removed img/markers/parachute-yellow.png
Diff not rendered.
Loading