diff --git a/html/admin.html b/html/admin.html
index cd47515..45deb64 100755
--- a/html/admin.html
+++ b/html/admin.html
@@ -197,15 +197,16 @@
- | Service |
- Status |
- Enabled |
- Actions |
+ Service |
+ Description |
+ Status |
+ Enabled |
+ Actions |
- | Loading services... |
+ Loading services... |
@@ -1008,6 +1009,12 @@ function displayServices(services) {
nameCell.textContent = service.display_name || service.name;
row.appendChild(nameCell);
+ // Description
+ const descCell = document.createElement('td');
+ descCell.textContent = service.description || 'No description available';
+ descCell.className = 'text-muted small';
+ row.appendChild(descCell);
+
// Status
const statusCell = document.createElement('td');
const statusBadge = document.createElement('span');
@@ -1054,7 +1061,7 @@ function showServiceError(message) {
const tbody = document.getElementById('services-tbody');
tbody.innerHTML = `
- |
+ |
${message}
|
diff --git a/html/launcher.php b/html/launcher.php
index 607d573..873178d 100755
--- a/html/launcher.php
+++ b/html/launcher.php
@@ -1027,19 +1027,19 @@ if ($type == "execute_command") {
// Get systemd services status
if ($type == "get_systemd_services") {
try {
- // List of NebuleAir services to monitor
+ // List of NebuleAir services to monitor with descriptions
$services = [
- 'nebuleair-npm-data.timer',
- 'nebuleair-envea-data.timer',
- 'nebuleair-sara-data.timer',
- 'nebuleair-bme280-data.timer',
- 'nebuleair-mppt-data.timer',
- 'nebuleair-db-cleanup-data.timer'
+ 'nebuleair-npm-data.timer' => 'Collects particulate matter data from NextPM sensor',
+ 'nebuleair-envea-data.timer' => 'Reads environmental data from Envea sensors',
+ 'nebuleair-sara-data.timer' => 'Transmits collected data via 4G cellular modem',
+ 'nebuleair-bme280-data.timer' => 'Monitors temperature and humidity (BME280)',
+ 'nebuleair-mppt-data.timer' => 'Tracks solar panel and battery status',
+ 'nebuleair-db-cleanup-data.timer' => 'Cleans up old data from database'
];
$serviceStatus = [];
- foreach ($services as $service) {
+ foreach ($services as $service => $description) {
// Get service active status
$activeCmd = "systemctl is-active " . escapeshellarg($service) . " 2>/dev/null";
$activeStatus = trim(shell_exec($activeCmd));
@@ -1057,6 +1057,7 @@ if ($type == "get_systemd_services") {
$serviceStatus[] = [
'name' => $service,
'display_name' => $displayName,
+ 'description' => $description,
'active' => $isActive,
'enabled' => $isEnabled
];