diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9e552ff..0b4b990 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -83,6 +83,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
+| 5.22.7 | 2024-04-02 | `battery()` fixed designed capacity issue (windows) |
| 5.22.6 | 2024-03-20 | `networkInterfaces()` fixed speed of not connected interfaces (windows) |
| 5.22.5 | 2024-03-19 | `wifiConnections()` fixed formatting bssid (macOS) |
| 5.22.4 | 2024-03-16 | `uuid()` improved parsing machine id (linux) |
diff --git a/docs/history.html b/docs/history.html
index 1ace314..8019400 100644
--- a/docs/history.html
+++ b/docs/history.html
@@ -57,6 +57,11 @@
+
+ | 5.22.7 |
+ 2024-04-02 |
+ battery() fixed designed capacity issue (windows) |
+
| 5.22.6 |
2024-03-20 |
diff --git a/docs/index.html b/docs/index.html
index c1cc93d..5da00ff 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -170,7 +170,7 @@
systeminformation
- New Version: 5.22.6
+ New Version: 5.22.7
@@ -204,7 +204,7 @@
-
15,727
+
15,877
Lines of code
@@ -212,7 +212,7 @@
Downloads last month
diff --git a/docs/wifi.html b/docs/wifi.html
index 3c3d807..aa6b29f 100644
--- a/docs/wifi.html
+++ b/docs/wifi.html
@@ -72,17 +72,17 @@
[{...}] |
X |
X |
+ (X) |
X |
X |
- X |
- array of available wifi networks |
+ array of available wifi networks since macOS Sonoma 14.4 not available |
|
[0].ssid |
X |
|
- X |
+ (X) |
X |
|
Wifi network SSID |
@@ -92,7 +92,7 @@
[0].bssid |
X |
|
- X |
+ (X) |
X |
|
BSSID (mac) |
@@ -112,7 +112,7 @@
[0].channel |
X |
|
- X |
+ (X) |
X |
|
channel |
@@ -122,7 +122,7 @@
[0].frequency |
X |
|
- X |
+ (X) |
X |
|
frequency in MHz |
@@ -132,7 +132,7 @@
[0].signalLevel |
X |
|
- X |
+ (X) |
X |
|
signal level in dB |
@@ -142,7 +142,7 @@
[0].quality |
X |
|
- X |
+ (X) |
X |
|
quality in % |
@@ -152,7 +152,7 @@
[0].security |
X |
|
- X |
+ (X) |
X |
|
array e.g. WPA, WPA-2 |
@@ -162,7 +162,7 @@
[0].wpaFlags |
X |
|
- X |
+ (X) |
X |
|
array of WPA flags |
diff --git a/lib/battery.js b/lib/battery.js
index 62064c5..b11318d 100644
--- a/lib/battery.js
+++ b/lib/battery.js
@@ -229,7 +229,7 @@ module.exports = function (callback) {
try {
const workload = [];
workload.push(util.powerShell('Get-CimInstance Win32_Battery | select BatteryStatus, DesignCapacity, DesignVoltage, EstimatedChargeRemaining, DeviceID | fl'));
- workload.push(util.powerShell('(Get-CimInstance -Class BatteryStaticData -Namespace ROOT/WMI).DesignedCapacity'));
+ workload.push(util.powerShell('(Get-WmiObject -Class BatteryStaticData -Namespace ROOT/WMI).DesignedCapacity'));
workload.push(util.powerShell('(Get-CimInstance -Class BatteryFullChargedCapacity -Namespace ROOT/WMI).FullChargedCapacity'));
util.promiseAll(
workload