Restructure the system.
|
@ -3,4 +3,8 @@
|
||||||
Uses Satnogs data to generate a map of all stations on Production and all sats currently observed.
|
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.
|
|
@ -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.
|
|
@ -153,11 +153,6 @@ def updateTLE():
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/")
|
|
||||||
def map_view():
|
|
||||||
return render_template("map.html")
|
|
||||||
|
|
||||||
@app.route('/active_stations')
|
@app.route('/active_stations')
|
||||||
def api_active_stations():
|
def api_active_stations():
|
||||||
sations = []
|
sations = []
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
@ -21,7 +21,7 @@
|
||||||
<div class="row"> .
|
<div class="row"> .
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<center>
|
<center>
|
||||||
<img src="/static/satnogs-net-logo.png">
|
<img src="staic/map/satnogs-net-logo.png">
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<div id="mapid" ></div>
|
<div id="mapid" ></div>
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<script>
|
<script>
|
||||||
test = null
|
test = null
|
||||||
var light_sat = L.icon({
|
var light_sat = L.icon({
|
||||||
iconUrl: 'static/satellite-marker-light.png',
|
iconUrl: 'staic/map/satellite-marker-light.png',
|
||||||
iconSize: [40, 40],
|
iconSize: [40, 40],
|
||||||
iconAnchor: [20, 20],
|
iconAnchor: [20, 20],
|
||||||
popupAnchor: [0, 0],
|
popupAnchor: [0, 0],
|
||||||
|
@ -43,7 +43,7 @@ var light_sat = L.icon({
|
||||||
});
|
});
|
||||||
|
|
||||||
var dark_sat = L.icon({
|
var dark_sat = L.icon({
|
||||||
iconUrl: 'static/satellite-marker-dark.png',
|
iconUrl: 'staic/map/satellite-marker-dark.png',
|
||||||
iconSize: [40, 40],
|
iconSize: [40, 40],
|
||||||
iconAnchor: [20, 20],
|
iconAnchor: [20, 20],
|
||||||
popupAnchor: [0, 0],
|
popupAnchor: [0, 0],
|
||||||
|
@ -51,7 +51,7 @@ var dark_sat = L.icon({
|
||||||
});
|
});
|
||||||
|
|
||||||
var station = L.icon({
|
var station = L.icon({
|
||||||
iconUrl: 'static/station-marker.png',
|
iconUrl: 'staic/map/station-marker.png',
|
||||||
iconSize: [10, 10],
|
iconSize: [10, 10],
|
||||||
iconAnchor: [5, 5],
|
iconAnchor: [5, 5],
|
||||||
popupAnchor: [0, 0],
|
popupAnchor: [0, 0],
|
||||||
|
@ -59,7 +59,7 @@ var station = L.icon({
|
||||||
});
|
});
|
||||||
|
|
||||||
var active_station = L.icon({
|
var active_station = L.icon({
|
||||||
iconUrl: 'static/active-station-marker.png',
|
iconUrl: 'staic/map/active-station-marker.png',
|
||||||
iconSize: [20, 20],
|
iconSize: [20, 20],
|
||||||
iconAnchor: [10, 10],
|
iconAnchor: [10, 10],
|
||||||
popupAnchor: [0, 0],
|
popupAnchor: [0, 0],
|
||||||
|
@ -156,7 +156,7 @@ function UpdateMap(e) {
|
||||||
$.get("/occuring_sats", function(data, status){
|
$.get("/occuring_sats", function(data, status){
|
||||||
data = JSON.parse(data)
|
data = JSON.parse(data)
|
||||||
Object.keys(data).forEach(function(x){
|
Object.keys(data).forEach(function(x){
|
||||||
worker = new Worker('/static/Worker.js');
|
worker = new Worker('static/map/Worker.js');
|
||||||
worker.onmessage = UpdateMap
|
worker.onmessage = UpdateMap
|
||||||
worker.postMessage([x,data[x]]);
|
worker.postMessage([x,data[x]]);
|
||||||
Workers[x] =worker
|
Workers[x] =worker
|
||||||
|
@ -171,7 +171,7 @@ $.get("/occuring_sats", function(data, status){
|
||||||
Object.keys(data).forEach(function(x){
|
Object.keys(data).forEach(function(x){
|
||||||
if (x in Workers){
|
if (x in Workers){
|
||||||
}else{
|
}else{
|
||||||
worker = new Worker('/static/Worker.js');
|
worker = new Worker('static/map/Worker.js');
|
||||||
worker.onmessage = UpdateMap
|
worker.onmessage = UpdateMap
|
||||||
worker.postMessage([x,data[x]]);
|
worker.postMessage([x,data[x]]);
|
||||||
Workers[x] =worker
|
Workers[x] =worker
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |