new functions added
This commit is contained in:
parent
ec25774fc2
commit
0739547520
2 changed files with 6 additions and 33 deletions
30
index.html
30
index.html
|
|
@ -1,30 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="content-type" content="text/html" charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width" initial-scale="1.0">
|
|
||||||
|
|
||||||
<title>LoMeS | Meshtastic</title>
|
|
||||||
<link rel="icon" href="{{ url_for('static', filename='data/images/lomes.svg') }}">
|
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<section>
|
|
||||||
<header>
|
|
||||||
<img class="icon" src="{{ url_for('static', filename='data/images/lomes.svg') }}">
|
|
||||||
<h1>Welcome to LoMeS</h1>
|
|
||||||
</header>
|
|
||||||
<div class="textBox">
|
|
||||||
<h3>A Local Meshtastic Server in development</h3><br>
|
|
||||||
<p><strong>Hi {{user}}</strong></p>
|
|
||||||
<p>If you see this site, means "LoMeS" development environment is running!</p>
|
|
||||||
<p>Thanks for collaborating and trying to make things more real...</p>
|
|
||||||
</div>
|
|
||||||
<!-- <div class="textBox">
|
|
||||||
<h3>Configuration Summary</h3>
|
|
||||||
<div class="confBox">
|
|
||||||
<link rel="import" href="assets/html/data/install_log/log.html">
|
|
||||||
</div>-->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -1,14 +1,17 @@
|
||||||
#!/bin/python3
|
#!/bin/python3
|
||||||
|
|
||||||
from flask import Flask, render_template
|
from flask import Flask, render_template
|
||||||
|
import datetime
|
||||||
import getpass
|
import getpass
|
||||||
import socket
|
import os
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def index():
|
def index():
|
||||||
user=getpass.getuser()
|
user = getpass.getuser()
|
||||||
return render_template("index.html", user=user)
|
time = datetime.datetime.now()
|
||||||
|
os = os.uname()
|
||||||
|
return render_template("index.html", user=user, time=time, os=os)
|
||||||
|
|
||||||
app.run(host="127.0.0.1", port=5000)
|
app.run(host="127.0.0.1", port=5000)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue