Cleaned up current Health Table #5
@ -46,23 +46,17 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Drone</th>
|
<th scope="col">Drone</th>
|
||||||
<th scope="col">Mu1</th>
|
<td id="name"></th>
|
||||||
<th scope="col">Mu2</th>
|
|
||||||
<th scope="col">Mu3</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">IP Address</th>
|
<th scope="row">IP Address</th>
|
||||||
<td>1</td>
|
<td id="address"></td>
|
||||||
<td>2</td>
|
|
||||||
<td>3</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Docker Container</th>
|
<th scope="row">Docker Container</th>
|
||||||
<td>Container1</td>
|
<td id="container"></td>
|
||||||
<td>Container2</td>
|
|
||||||
<td>Container3</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -19,6 +19,24 @@ function initPage() {
|
|||||||
// Search for drones files in the services directory and populate the dropdown with directory names
|
// Search for drones files in the services directory and populate the dropdown with directory names
|
||||||
|
|
||||||
addDropDown(droneDropdown, drones, "1");
|
addDropDown(droneDropdown, drones, "1");
|
||||||
|
const command1 = "hostname -I"
|
||||||
|
const command2 = "hostname"
|
||||||
|
const command3 = "docker container ls"
|
||||||
|
cockpit.spawn(["bash", "-c", command1])
|
||||||
|
.then((data) => {
|
||||||
|
console.log(data.split(" ")[0]);
|
||||||
|
})
|
||||||
|
.catch((error) => console.log(error));
|
||||||
|
cockpit.spawn(["bash", "-c", command2])
|
||||||
|
.then((data) => {
|
||||||
|
console.log(data.split(" ")[0]);
|
||||||
|
})
|
||||||
|
.catch((error) => console.log(error));
|
||||||
|
cockpit.spawn(["bash", "-c", command3])
|
||||||
|
.then((data) => {
|
||||||
|
console.log(data.split(" ")[0]);
|
||||||
|
})
|
||||||
|
.catch((error) => console.log(error));
|
||||||
}
|
}
|
||||||
|
|
||||||
function droneChange() {
|
function droneChange() {
|
||||||
|
Loading…
Reference in New Issue
Block a user