new functions added

This commit is contained in:
Fr4nz D13trich 2025-10-15 18:02:15 +02:00
parent ec25774fc2
commit 0739547520
2 changed files with 6 additions and 33 deletions

View file

@ -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>

View file

@ -1,14 +1,17 @@
#!/bin/python3
from flask import Flask, render_template
import datetime
import getpass
import socket
import os
app = Flask(__name__)
@app.route("/")
def index():
user=getpass.getuser()
return render_template("index.html", user=user)
user = getpass.getuser()
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)