mirror of https://github.com/craigerl/aprsd.git
Added callsign to the web index page
This patch adds the aprs-is server callsign that aprsd is listening on for messages.
This commit is contained in:
parent
34d2c31d90
commit
123266c9ad
|
@ -47,7 +47,11 @@ class APRSDFlask(flask_classful.FlaskView):
|
||||||
@auth.login_required
|
@auth.login_required
|
||||||
def index(self):
|
def index(self):
|
||||||
stats = self._stats()
|
stats = self._stats()
|
||||||
return flask.render_template("index.html", initial_stats=stats)
|
return flask.render_template(
|
||||||
|
"index.html",
|
||||||
|
initial_stats=stats,
|
||||||
|
callsign=self.config["aprs"]["login"],
|
||||||
|
)
|
||||||
|
|
||||||
@auth.login_required
|
@auth.login_required
|
||||||
def messages(self):
|
def messages(self):
|
||||||
|
@ -84,6 +88,7 @@ class APRSDFlask(flask_classful.FlaskView):
|
||||||
result = {
|
result = {
|
||||||
"version": aprsd.__version__,
|
"version": aprsd.__version__,
|
||||||
"aprsis_server": server_string,
|
"aprsis_server": server_string,
|
||||||
|
"callsign": self.config["aprs"]["login"],
|
||||||
"uptime": stats_obj.uptime,
|
"uptime": stats_obj.uptime,
|
||||||
"size_tracker": len(track),
|
"size_tracker": len(track),
|
||||||
"stats": stats_obj.stats(),
|
"stats": stats_obj.stats(),
|
||||||
|
|
|
@ -179,7 +179,7 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: auto 1fr auto;
|
grid-template-rows: auto 1fr auto;
|
||||||
|
@ -228,23 +228,23 @@
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#stats {
|
#stats {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#jsonstats {
|
#jsonstats {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#title {
|
#title {
|
||||||
font-size: 4em;
|
font-size: 4em;
|
||||||
}
|
}
|
||||||
#uptime, #arpsis: {
|
#uptime, #aprsis {
|
||||||
font-size: 4px;
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
#callsign {
|
||||||
|
font-size: 1.4em;
|
||||||
|
color: #00F;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
@ -252,6 +252,7 @@
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<div id="title">APRSD version <span id="version"></div></div>
|
<div id="title">APRSD version <span id="version"></div></div>
|
||||||
|
<div id="callsign">{{ callsign }}</div>
|
||||||
<div id="aprsis"></div>
|
<div id="aprsis"></div>
|
||||||
<div id="uptime"></div>
|
<div id="uptime"></div>
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in New Issue