-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
154 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# | ||
# autowx2 - webserver definitions | ||
|
||
|
||
# configuration | ||
from autowx2_conf import * | ||
|
||
from flask import Flask, render_template | ||
from threading import Thread | ||
|
||
# satellites = list(satellitesData) | ||
# qth = (stationLat, stationLon, stationAlt) | ||
|
||
|
||
|
||
app = Flask(__name__, template_folder="var/flask/templates/", static_folder='var/flask/static') # " template_folder="var/flask/templates/" | ||
|
||
body="hello!" | ||
|
||
@app.route('/') | ||
def homepage(): | ||
return render_template('index.html', body=body) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://github.com/fancyapps/fancyBox |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*! | ||
* Start Bootstrap - Logo Nav (https://startbootstrap.com/template-overviews/logo-nav) | ||
* Copyright 2013-2017 Start Bootstrap | ||
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-logo-nav/blob/master/LICENSE) | ||
*/ | ||
|
||
body { | ||
padding-top: 94px; | ||
} | ||
|
||
@media (min-width: 992px) { | ||
body { | ||
padding-top: 76px; | ||
} | ||
} | ||
|
||
|
||
h2 { | ||
padding-top: 16px; | ||
} | ||
|
||
img { padding: 10px;} | ||
|
||
h2:after | ||
{ | ||
content:' '; | ||
display:block; | ||
border:1px dotted silver; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="description" content="autowx2 atomated satellite receiving station"> | ||
<meta name="author" content="filipsPL@github"> | ||
|
||
<title>autowx2 atomated satellite receiving station :: $htmlTitle</title> | ||
|
||
<!-- Bootstrap core CSS --> | ||
<link href="{{ url_for('static',filename='bootstrap.min.css') }}" rel="stylesheet"> | ||
|
||
<!-- Custom styles for this template --> | ||
<link href="{{ url_for('static',filename='logo-nav.css') }}" rel="stylesheet"> | ||
|
||
|
||
<link href="{{ url_for('static',filename='fancybox/jquery.fancybox.min.css') }}" rel="stylesheet"> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<!-- Navigation --> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top"> | ||
<div class="container"> | ||
<a class="navbar-brand" href="/"> | ||
autowx2 | automatic receiving station | ||
</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarResponsive"> | ||
<ul class="navbar-nav ml-auto"> | ||
<li class="nav-item active"> | ||
<a class="nav-link" href="/">Home | ||
<span class="sr-only">(current)</span> | ||
</a> | ||
</li> | ||
<a class="nav-link" href="/table.html">Pass table | ||
</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="https://github.com/filipsPL/autowx2">Source code</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
<!-- Page Content --> | ||
<div class="container"> | ||
|
||
{{ body }} | ||
</div> | ||
<!-- /.container --> | ||
|
||
<!-- Bootstrap core JavaScript --> | ||
<script src="{{ url_for('static',filename='jquery.min.js') }}"></script> | ||
<script src="{{ url_for('static',filename='bootstrap.bundle.min.js') }}"></script> | ||
<script src="{{ url_for('static',filename='fancybox/jquery.fancybox.min.js') }}"></script> | ||
|
||
</body> | ||
|
||
</html> |