Skip to content

Commit 682b060

Browse files
Mark JessopMark Jessop
authored andcommitted
Add tracker build info to info pane.
1 parent 22acc7c commit 682b060

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ cat jquery* >> mobile.js
1919

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

22+
BUILD_DATE="`date -u +%Y-%m-%dT%H:%M:%SZ`"
23+
2224
# compile the rest
2325
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge iscroll.js >> mobile.js
2426
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge chasecar.lib.js | sed "s/{VER}/$VERSION/" >> mobile.js
2527
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
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
2729
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge colour-map.js >> mobile.js
2830
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge xdata.js >> mobile.js
2931
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge station.js >> mobile.js
@@ -42,4 +44,4 @@ sed "s/^\(# version\) .*$/\1 $VERSION `date +%s`/" cache.manifest-dev > cache.ma
4244

4345
echo "Done!"
4446

45-
echo "Build version: $VERSION"
47+
echo "Build version: $VERSION Build date: $BUILD_DATE"

index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,10 @@ <h4>Amateur HAB Launches?</h4>
102102
You can find Amateur High-Altitude Balloon launches on the <a href="https://amateur.sondehub.org/" target="_blank" rel="noopener">Sondehub-Amateur Tracker</a>.
103103

104104
<h4>SondeHub Status Pages</h4>
105+
This site uses data from the <a href="https://github.com/projecthorus/sondehub-infra/wiki" target="_blank" rel="noopener">SondeHub</a> database.<br/>
105106
You can find the status of the SondeHub Database on the <a href="https://sondehub.org/go/status" target="_blank" rel="noopener">SondeHub Dashboard</a>.<br/>
106107
You can view outages of the SondeHub Database at <a href="https://sondehub.statuspage.io/" target="_blank" rel="noopener">SondeHub Status</a>.
107108

108-
<h4>Info</h4>
109-
This site uses data from the <a href="https://github.com/projecthorus/sondehub-infra/wiki" target="_blank" rel="noopener">SondeHub</a> database.
110-
111109
<h4>Chase Cars</h4>
112110
Chase Cars can show up on the map using this tracker's chase-car features (look for the car icon at top-right)
113111
or upload their position from <a href="https://github.com/projecthorus/chasemapper" target="_blank" rel="noopener">Chasemapper</a> or <a href="https://github.com/dl9rdz/rdz_ttgo_sonde" target="_blank" rel="noopener">rdzTTGOsonde</a>.
@@ -123,6 +121,11 @@ <h2>Contribute</h2>
123121
A huge thanks to RGP for developing the mobile tracker that this site is based on.
124122
<br/><br/>
125123
You can also find us on IRC in <a href="https://kiwiirc.com/nextclient/irc.libera.chat/highaltitude" target="_blank" rel="noopener">#highaltitude</a> at <b>libera.chat</b>.
124+
<br/><br/>
125+
Tracker Revision: <span class="r" id="build_version"></span>
126+
<br/>
127+
Build Date: <span class="r" id="build_date"></span>
128+
126129
</p>
127130
</div>
128131
</div>

js/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,10 @@ $(window).ready(function() {
463463
updateTime(new Date());
464464
}, 1000);
465465

466+
// Update Tracker version info
467+
$('#build_version').text("{VER}");
468+
$('#build_date').text("{BUILD_DATE}");
469+
466470
// resize elements if needed
467471
checkSize();
468472

0 commit comments

Comments
 (0)