From ea2967643ece6ff646f64aea48059e8fdffdbe1e Mon Sep 17 00:00:00 2001 From: Innovation Date: Sat, 23 Mar 2024 08:34:34 -0500 Subject: [PATCH] Start work on server and templates --- .gitignore | 1 + src/execute.sh | 3 + src/nightserver.py | 6 ++ src/templates/index.html | 193 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 203 insertions(+) create mode 100644 .gitignore create mode 100755 src/execute.sh create mode 100644 src/nightserver.py create mode 100644 src/templates/index.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4fcb21 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +src/**/__pycache__ diff --git a/src/execute.sh b/src/execute.sh new file mode 100755 index 0000000..0aec092 --- /dev/null +++ b/src/execute.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export FLASK_APP=nightserver.py +flask run diff --git a/src/nightserver.py b/src/nightserver.py new file mode 100644 index 0000000..9b0f115 --- /dev/null +++ b/src/nightserver.py @@ -0,0 +1,6 @@ +from flask import Flask, render_template +app = Flask(__name__) + +@app.route('/') +def uiindex(): + return render_template('index.html') diff --git a/src/templates/index.html b/src/templates/index.html new file mode 100644 index 0000000..96c092e --- /dev/null +++ b/src/templates/index.html @@ -0,0 +1,193 @@ + + + + + + +
+
+
+

Vitals

+
+
+

Top message

+
+
+
+
+
+ +
+
+

K.A.T.I.E.

+
+
+
+ +
+
+

00:00:00

+
+
+
+
+
+
+

Comms

+
+
+

Popup

+
+
+

Info

+
+
+
+

Test2

+
+
+ +