Skip to content

Commit 9e090f1

Browse files
TheSkormbismurphydarksidelemmMark Jessopargilo
authored
Release testing (#127)
* Bring color updates into amateur * Fix color typo * Restore car index, remove rpi * Sort callsign list alphabetically * Hopefully fix receiver stations timing out * Rework balloon shape * Update balloon.svg * Make coordinates clickable everywhere * Fix callsign null check * Remove pngout executable * Remove YUI Compressor and use plain JavaScript * Add Wenet URL --------- Co-authored-by: Joey Murphy <[email protected]> Co-authored-by: Mark Jessop <[email protected]> Co-authored-by: Mark Jessop <[email protected]> Co-authored-by: Clayton Smith <[email protected]> Co-authored-by: xssfox <[email protected]>
1 parent 3fc58bc commit 9e090f1

Some content is hidden

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

63 files changed

+451
-321
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
*.swp
22
*.pyc
33
*.log
4-
js/mobile.js
5-
js/init_plot.js
6-
css/mobile.css
7-
cache.manifest
4+
/index.html
5+
/service-worker.js
86
tiles/

.htaccess

Lines changed: 0 additions & 38 deletions
This file was deleted.

DEVELOPER_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ To get a copy of the code and run a test web server:
44

55
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).
66
2. Clone the repository with your git tool of choice.
7-
3. Run `build.sh` to compile the javascript files. (This requires Java to be installed and in your path.)
7+
3. Run `build.sh` to generate `index.html` and `service-worker.js`.
88
4. Run `python serve.py` to run a simple web server to (This requires python 3.x)
99
5. Visit [http://localhost:8000](http://localhost:8000) to view the local version of the server!

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ Pull requests are welcome.
3131

3232
## Installation
3333

34-
Requirements: Java
35-
3634
$ git clone https://github.com/projecthorus/sondehub-amateur-tracker.git
3735
$ ./build.sh
36+
$ python serve.py
37+
38+
Visit [http://localhost:8000](http://localhost:8000) to view the local version of the tracker!
3839

3940
## Original design
4041

build.sh

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,18 @@
11
#!/bin/bash
22

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 leaflet.css leaflet.fullscreen.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
3+
set -e
194

205
VERSION="`git rev-parse --short HEAD`"
21-
226
BUILD_DATE="`date -u +%Y-%m-%dT%H:%M:%SZ`"
237

24-
# compile the rest
25-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge iscroll.js >> mobile.js
26-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge chasecar.lib.js | sed "s/{VER}/$VERSION/" >> mobile.js
27-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge tracker.js >> mobile.js
28-
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
29-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge colour-map.js >> mobile.js
30-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge suncalc.js >> mobile.js
31-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge format.js >> mobile.js
32-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge flight_doc.js >> mobile.js
33-
348

35-
#compile plot lib and config
36-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge _jquery.flot.js >> init_plot.js
37-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge plot_config.js >> init_plot.js
38-
39-
cd ..
9+
# cache fixes
10+
echo -n "Generating index.html... "
11+
sed -e "s/{VER}/$VERSION/" -e "s/{BUILD_DATE}/$BUILD_DATE/" index.template.html > index.html
4012
echo "Done!"
41-
echo -n "Generate cache.manifest..."
42-
43-
44-
sed "s/^\(# version\) .*$/\1 $VERSION `date +%s`/" cache.manifest-dev > cache.manifest
4513

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

48-
echo "Build version: $VERSION Build date: $BUILD_DATE"
18+
echo "Build version: $VERSION Build date: $BUILD_DATE"

cache.manifest-dev

Lines changed: 0 additions & 75 deletions
This file was deleted.

img/markers/balloon-adafruit.png

-5.92 KB
Binary file not shown.

img/markers/balloon-blue.png

-10.7 KB
Binary file not shown.

img/markers/balloon-buzz.png

-7.6 KB
Binary file not shown.

img/markers/balloon-cyan.png

-10.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)