1
0
Fork 0

Restructure the system.

merge-requests/2/head
wgaylord 2019-01-10 17:34:51 -06:00
parent f7badceb3d
commit c284032642
13 changed files with 15 additions and 13 deletions

View File

@ -3,4 +3,8 @@
Uses Satnogs data to generate a map of all stations on Production and all sats currently observed.
Currently hosted at satnogs.minecraft16.ml
Currently hosted at satnogs.minecraft16.ml
The server itself is in the server folder and the views are in the view folder.

3
server/README.md 100644
View File

@ -0,0 +1,3 @@
Basic server that gives all data used by all the existing views that exist.
Place any folder from views into static and launch the server to be able to access that view of the satnogs network.

View File

@ -153,11 +153,6 @@ def updateTLE():
@app.route("/")
def map_view():
return render_template("map.html")
@app.route('/active_stations')
def api_active_stations():
sations = []

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -21,7 +21,7 @@
<div class="row"> .
<div class="col-md-12">
<center>
<img src="/static/satnogs-net-logo.png">
<img src="staic/map/satnogs-net-logo.png">
<br>
<br>
<div id="mapid" ></div>
@ -35,7 +35,7 @@
<script>
test = null
var light_sat = L.icon({
iconUrl: 'static/satellite-marker-light.png',
iconUrl: 'staic/map/satellite-marker-light.png',
iconSize: [40, 40],
iconAnchor: [20, 20],
popupAnchor: [0, 0],
@ -43,7 +43,7 @@ var light_sat = L.icon({
});
var dark_sat = L.icon({
iconUrl: 'static/satellite-marker-dark.png',
iconUrl: 'staic/map/satellite-marker-dark.png',
iconSize: [40, 40],
iconAnchor: [20, 20],
popupAnchor: [0, 0],
@ -51,7 +51,7 @@ var dark_sat = L.icon({
});
var station = L.icon({
iconUrl: 'static/station-marker.png',
iconUrl: 'staic/map/station-marker.png',
iconSize: [10, 10],
iconAnchor: [5, 5],
popupAnchor: [0, 0],
@ -59,7 +59,7 @@ var station = L.icon({
});
var active_station = L.icon({
iconUrl: 'static/active-station-marker.png',
iconUrl: 'staic/map/active-station-marker.png',
iconSize: [20, 20],
iconAnchor: [10, 10],
popupAnchor: [0, 0],
@ -156,7 +156,7 @@ function UpdateMap(e) {
$.get("/occuring_sats", function(data, status){
data = JSON.parse(data)
Object.keys(data).forEach(function(x){
worker = new Worker('/static/Worker.js');
worker = new Worker('static/map/Worker.js');
worker.onmessage = UpdateMap
worker.postMessage([x,data[x]]);
Workers[x] =worker
@ -171,7 +171,7 @@ $.get("/occuring_sats", function(data, status){
Object.keys(data).forEach(function(x){
if (x in Workers){
}else{
worker = new Worker('/static/Worker.js');
worker = new Worker('static/map/Worker.js');
worker.onmessage = UpdateMap
worker.postMessage([x,data[x]]);
Workers[x] =worker

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB