diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f45352..6d1130b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.33.3 | 2020-12-27 | `graphics()` updated docs | | 4.33.2 | 2020-12-27 | `graphics()` fixed issue (nvidia-smi) | | 4.33.1 | 2020-12-22 | `versions()` fixed issue (mac OS) | | 4.33.0 | 2020-12-21 | `graphics()` nvidia-smi support (linux, windows) | diff --git a/README.md b/README.md index d535430..3710adf 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ This is amazing. Started as a small project just for myself, it now has > 10,000 ## Upcoming -**MacOS on ARM (Apple silicon support), Windows on ARM**: New Apple M1 silicon hardware just arrived (any support is highly appreciated - [Buy me a coffee](https://www.buymeacoffee.com/systeminfo)). We already made a lot of tests and improvements to support Apple M1 silicon. Current status can be seen [seen here](https://github.com/sebhildebrandt/systeminformation/issues/453). +**MacOS on ARM (Apple silicon support), Windows on ARM**: New Apple M1 silicon hardware just arrived (any support is highly appreciated - [Buy me a coffee](https://www.buymeacoffee.com/systeminfo)). We already made a lot of tests and improvements to support Apple M1 silicon. Current status [is documented here](https://github.com/sebhildebrandt/systeminformation/issues/453). **Version 5**: we are planning a new major version with some minor breaking changes and some additional features. Will try to make this available Q1 of 2021. diff --git a/docs/history.html b/docs/history.html index f8a4ef4..fcf5796 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.33.3 + 2020-12-27 + graphics() updated docs, typescript typings + 4.33.2 2020-12-27 diff --git a/docs/index.html b/docs/index.html index f208008..9ab0a72 100644 --- a/docs/index.html +++ b/docs/index.html @@ -169,7 +169,7 @@
systeminformation
-
Current Version: 4.33.2
+
Current Version: 4.33.3
diff --git a/lib/graphics.js b/lib/graphics.js index a5c3570..f86cda8 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -401,7 +401,7 @@ function graphics(callback) { const nvidiaSmiExe = getNvidiaSmi(); if (nvidiaSmiExe) { const nvidiaSmiOpts = '--query-gpu=driver_version,pci.sub_device_id,name,pci.bus_id,fan.speed,memory.total,memory.used,memory.free,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,power.draw,power.limit,clocks.gr,clocks.mem --format=csv,noheader,nounits' - const cmd = nvidiaSmiExe + ' ' + nvidiaSmiOpts + _linux ? ' 2>/dev/null' : ''; + const cmd = nvidiaSmiExe + ' ' + nvidiaSmiOpts + (_linux ? ' 2>/dev/null' : ''); try { const res = execSync(cmd, options).toString(); return res; diff --git a/lib/index.d.ts b/lib/index.d.ts index f426e08..1af2300 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -258,6 +258,22 @@ export namespace Systeminformation { vram: number; vramDynamic: boolean; subDeviceId?: string; + driverVersion?: string; + subDeviceId?: string; + name?: string; + pciBus?: string; + fanSpeed?: number; + memoryTotal?: number; + memoryUsed?: number; + memoryFree?: number; + utilizationGpu?: number; + utilizationMemory?: number; + temperatureGpu?: number; + temperatureMemory?: number; + powerDraw?: number; + powerLimit?: number; + clockCore?: number; + clockMemory?: number; } interface GraphicsDisplayData {