graphics() updated docs

This commit is contained in:
Sebastian Hildebrandt 2020-12-27 13:25:08 +01:00
parent 66aa3c77d8
commit 188b27340b
6 changed files with 25 additions and 3 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment | | 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.2 | 2020-12-27 | `graphics()` fixed issue (nvidia-smi) |
| 4.33.1 | 2020-12-22 | `versions()` fixed issue (mac OS) | | 4.33.1 | 2020-12-22 | `versions()` fixed issue (mac OS) |
| 4.33.0 | 2020-12-21 | `graphics()` nvidia-smi support (linux, windows) | | 4.33.0 | 2020-12-21 | `graphics()` nvidia-smi support (linux, windows) |

View File

@ -48,7 +48,7 @@ This is amazing. Started as a small project just for myself, it now has > 10,000
## Upcoming ## 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. **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.

View File

@ -83,6 +83,11 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr>
<th scope="row">4.33.3</th>
<td>2020-12-27</td>
<td><span class="code">graphics()</span> updated docs, typescript typings</td>
</tr>
<tr> <tr>
<th scope="row">4.33.2</th> <th scope="row">4.33.2</th>
<td>2020-12-27</td> <td>2020-12-27</td>

View File

@ -169,7 +169,7 @@
<img class="logo" src="assets/logo.png"> <img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div> <div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div> <div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.33.2</span></div> <div class="version">Current Version: <span id="version">4.33.3</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button> <button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div> </div>
<div class="down"> <div class="down">

View File

@ -401,7 +401,7 @@ function graphics(callback) {
const nvidiaSmiExe = getNvidiaSmi(); const nvidiaSmiExe = getNvidiaSmi();
if (nvidiaSmiExe) { 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 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 { try {
const res = execSync(cmd, options).toString(); const res = execSync(cmd, options).toString();
return res; return res;

16
lib/index.d.ts vendored
View File

@ -258,6 +258,22 @@ export namespace Systeminformation {
vram: number; vram: number;
vramDynamic: boolean; vramDynamic: boolean;
subDeviceId?: string; 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 { interface GraphicsDisplayData {