Skip to content

Commit 5118023

Browse files
authored
Sync Branches (projecthorus#259)
1 parent 6af5451 commit 5118023

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

DEVELOPER_README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Getting started
2+
3+
To get a copy of the code and run a test web server:
4+
5+
1. [Fork the repository](https://github.com/projecthorus/sondehub-tracker/fork) by visiting [https://github.com/projecthorus/sondehub-tracker/fork](https://github.com/projecthorus/sondehub-tracker/fork).
6+
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.)
8+
4. Run `python serve.py` to run a simple web server to (This requires python 3.x)
9+
5. Visit [http://localhost:8000](http://localhost:8000) to view the local version of the server!

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM alpine:latest
2+
3+
RUN apk add --no-cache python3 openjdk11 sed git
4+
5+
WORKDIR /app
6+
ADD . .
7+
8+
RUN sh build.sh
9+
10+
ENTRYPOINT ["python3", "serve.py"]
11+
EXPOSE 8000

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ Requirements: Java
4040

4141
$ git clone https://github.com/projecthorus/sondehub-tracker.git
4242
$ ./build.sh
43+
$ python serve.py
44+
45+
Visit [http://localhost:8000](http://localhost:8000) to view the local version of the tracker!
4346

4447
## Original design
4548

4649
Author: Daniel Saul [@danielsaul](https://github.com/danielsaul)
47-
48-
49-
50-

js/tracker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,9 @@ function updateVehicleInfo(vcallsign, newPosition) {
15821582
roundNumber(newPosition.gps_lat, 5) + ', ' + roundNumber(newPosition.gps_lon, 5) +'</a>' +
15831583
' <i class="icon-location"></i>';
15841584
} else {
1585-
coords_text = roundNumber(newPosition.gps_lat, 5) + ', ' + roundNumber(newPosition.gps_lon, 5);
1585+
coords_text = '<a id="launch_mapapp" href="https://www.google.com/maps/search/?api=1&query='+newPosition.gps_lat+','+newPosition.gps_lon+'" target="_blank" rel="noopener noreferrer">' +
1586+
roundNumber(newPosition.gps_lat, 5) + ', ' + roundNumber(newPosition.gps_lon, 5) +'</a>' +
1587+
' <i class="icon-location"></i>';
15861588
}
15871589

15881590
// format altitude strings

0 commit comments

Comments
 (0)