Skip to content

Commit

Permalink
1.51
Browse files Browse the repository at this point in the history
  • Loading branch information
elueckel committed Jun 9, 2024
1 parent 92750e4 commit 7b9100c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion UniFi Device Monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,7 @@ Version 1.3 - 03-01-2022
* Neu - Unifi API Zugriff in eigene Funktion ausgelagert (bessere Wartbarkeit)

Version 1.5 - 03-12-2023
* Neu - UI Aufgeräumt
* Neu - UI Aufgeräumt

Version 1.51 - 09-06-2024
* Neu - Anzahl der verbundenen Geräte wird angezeigt
5 changes: 4 additions & 1 deletion UniFi Device Monitor/README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,7 @@ Version 1.3 - 03-01-2022
* New - Unifi API access moved to its own function (better maintainability)

Version 1.5 - 03-12-2023
* New - UI tidied up
* New - UI tidied up

Version 1.51 - 09-06-2024
* New - Number of connected devices are shown
1 change: 1 addition & 0 deletions UniFi Device Monitor/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"Device Model": "Geräte Typ",
"Device Name": "Geräte Name",
"CPU Load": "CPU Auslastung",
"Connected Devices": "Verbundene Geräte",
"Memory Load": "Speicher Auslastung",
"WAN 1 TX Packets": "WAN 1 TX Pakete",
"WAN 1 RX Packets": "WAN 1 RX Pakete",
Expand Down
4 changes: 2 additions & 2 deletions UniFi Device Monitor/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ public function DeviceMonitor()
$MemoryLoad = $JSONData["data"][0]["system-stats"]["mem"];
SetValue($this->GetIDForIdent("MemoryLoad"), $MemoryLoad);
$this->SendDebug($this->Translate("Device Monitor"), $this->Translate("Memory Load ").$MemoryLoad, 0);
$ConnectedDevices = $JSONData["data"]["num_sta"];
SetValue($this->GetIDForIdent("ConnectedDevices"), ConnectedDevices);
$ConnectedDevices = $JSONData["data"][0]["num_sta"];
SetValue($this->GetIDForIdent("ConnectedDevices"), $ConnectedDevices);
$this->SendDebug($this->Translate("Endpoint Monitor"), $this->Translate("Connected Devices ").$ConnectedDevices, 0);
}
if ($this->ReadPropertyBoolean("DataPointSpecific") == 1 && $this->ReadPropertyInteger("DeviceType") == 0 && $DeviceConfigError == false)
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"compatibility": {
"version": "5.5"
},
"version": "1.5",
"version": "1.51",
"build": 0,
"date": 0
}

0 comments on commit 7b9100c

Please sign in to comment.