Logs minecraft status to postgres and creates webpage based on current server status using mcstatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
657 B

<!-- Flask template for displaying the results of a SQL query as a basic website -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Minecraft Server Status</title>
</head>
<body>
<h1>Minecraft Server Status</h1>
<div align="center">
<p style="font-size: 150%;">
{{ status|safe }}
</p>
</div>
<br>
<!-- inline style to center table elements and create spacing in each column-->
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
text-align: center;
padding: 5px;
font-size: 125%;
}
</style>
<div align="center">
{{ data|safe }}
</div>
</body>
</html>