From c2840326423a0f6ba6c25b9dd935da745de7755d Mon Sep 17 00:00:00 2001 From: wgaylord Date: Thu, 10 Jan 2019 17:34:51 -0600 Subject: [PATCH] Restructure the system. --- README.md | 6 +++++- server/README.md | 3 +++ requirments.txt => server/requirments.txt | 0 satnogs.py => server/satnogs.py | 5 ----- .../satnogs_api_client.py | 0 {static => views/map}/Worker.js | 0 {static => views/map}/active-station-marker.png | Bin templates/map.html => views/map/index.html.html | 14 +++++++------- {static => views/map}/satellite-marker-dark.png | Bin {static => views/map}/satellite-marker-light.png | Bin {static => views/map}/satellite.js | 0 {static => views/map}/satnogs-net-logo.png | Bin {static => views/map}/station-marker.png | Bin 13 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 server/README.md rename requirments.txt => server/requirments.txt (100%) rename satnogs.py => server/satnogs.py (98%) rename satnogs_api_client.py => server/satnogs_api_client.py (100%) rename {static => views/map}/Worker.js (100%) rename {static => views/map}/active-station-marker.png (100%) rename templates/map.html => views/map/index.html.html (94%) rename {static => views/map}/satellite-marker-dark.png (100%) rename {static => views/map}/satellite-marker-light.png (100%) rename {static => views/map}/satellite.js (100%) rename {static => views/map}/satnogs-net-logo.png (100%) rename {static => views/map}/station-marker.png (100%) diff --git a/README.md b/README.md index 49200bd..d966412 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file + +Currently hosted at satnogs.minecraft16.ml + + +The server itself is in the server folder and the views are in the view folder. \ No newline at end of file diff --git a/server/README.md b/server/README.md new file mode 100644 index 0000000..871af34 --- /dev/null +++ b/server/README.md @@ -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. \ No newline at end of file diff --git a/requirments.txt b/server/requirments.txt similarity index 100% rename from requirments.txt rename to server/requirments.txt diff --git a/satnogs.py b/server/satnogs.py similarity index 98% rename from satnogs.py rename to server/satnogs.py index 97c8adc..71cbc7a 100644 --- a/satnogs.py +++ b/server/satnogs.py @@ -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 = [] diff --git a/satnogs_api_client.py b/server/satnogs_api_client.py similarity index 100% rename from satnogs_api_client.py rename to server/satnogs_api_client.py diff --git a/static/Worker.js b/views/map/Worker.js similarity index 100% rename from static/Worker.js rename to views/map/Worker.js diff --git a/static/active-station-marker.png b/views/map/active-station-marker.png similarity index 100% rename from static/active-station-marker.png rename to views/map/active-station-marker.png diff --git a/templates/map.html b/views/map/index.html.html similarity index 94% rename from templates/map.html rename to views/map/index.html.html index 87deac0..47950d7 100644 --- a/templates/map.html +++ b/views/map/index.html.html @@ -21,7 +21,7 @@
.
- +

@@ -35,7 +35,7 @@