mirror of
https://github.com/dg9vh/MMDVMHost-Websocketboard.git
synced 2026-04-21 06:13:50 +00:00
Getting host-program-version and build-time from progam itself instead of logfile
This commit is contained in:
parent
af1b9bfd53
commit
c926da435d
6 changed files with 28 additions and 10 deletions
|
|
@ -418,18 +418,18 @@ function getLastHeard(document, event) {
|
|||
var duration = 0;
|
||||
lines.forEach(function(line, index, array) {
|
||||
logIt("LogLine: " + line);
|
||||
|
||||
/*
|
||||
if (line.indexOf("MMDVMHost") > 0 ) {
|
||||
mmdvmhost_version = line.substring(line.indexOf("MMDVMHost"));
|
||||
mmdvmhost_version = mmdvmhost_version.substring(0, mmdvmhost_version.indexOf(" "));
|
||||
document.getElementById("mmdvmhost_version").innerHTML = mmdvmhost_version;
|
||||
}
|
||||
|
||||
if (line.indexOf("Built") > 0 ) {
|
||||
built = line.substring(line.indexOf("Built") + 6);
|
||||
document.getElementById("built").innerHTML = built;
|
||||
}
|
||||
|
||||
*/
|
||||
if (line.indexOf("description:") > 0 ) {
|
||||
modem = line.substring(line.indexOf("description:") + 12);
|
||||
document.getElementById("modem").innerHTML = modem;
|
||||
|
|
@ -745,7 +745,11 @@ function getSysInfo(document, event) {
|
|||
data = data.substring(data.indexOf(" ") + 1);
|
||||
document.getElementById("disk_free").innerHTML = parseFloat(data.substring(data.indexOf("disk_free:") + 10, data.indexOf(" "))).toFixed(3);
|
||||
data = data.substring(data.indexOf(" ") + 1);
|
||||
document.getElementById("disk_percent_used").innerHTML = data.substring(data.indexOf("disk_percent_used:") + 18);
|
||||
document.getElementById("disk_percent_used").innerHTML = data.substring(data.indexOf("disk_percent_used:") + 18, data.indexOf(" "));
|
||||
data = data.substring(data.indexOf(" ") + 1);
|
||||
document.getElementById("mmdvmhost_version").innerHTML = data.substring(data.indexOf("mmdvmhost_version:") + 18, data.indexOf(" mmdvmhost_ctime"));
|
||||
data = data.substring(data.indexOf(" ") + 1);
|
||||
document.getElementById("built").innerHTML = data.substring(data.indexOf("mmdvmhost_ctime:") + 16);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
var dashboard_version = "2021-02-06 16:18:53";
|
||||
var dashboard_version = "2021-02-06 23:30:37";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue