98941a00fe
* feat: support progress, fan, pointer sensor types Initial implementation, not yet fully working. * only use one rendering layer per sensor type instead one per sensor Each layer uses > 1 MB and a panel can contain easily over 20 sensors! * support custom panels with --panels cli argument This includes one or more additional custom panels into the base configuration. Multiple --panels arguments are supported * update docs
50 lines
1.4 KiB
Markdown
50 lines
1.4 KiB
Markdown
# sysinfo Tool
|
|
|
|
The Rust based [/src/bin/sysinfo.rs](../src/bin/sysinfo.rs) tool gathers many more system sensor values with the help of
|
|
the [sysinfo](https://github.com/GuillaumeGomez/sysinfo) crate.
|
|
|
|
It supports FreeBSD, Linux, macOS, Windows and other OSes, but it has only been tested on Linux so far.
|
|
|
|
```
|
|
Proof of concept sensor value collection for the asterctl screen control tool
|
|
|
|
Usage: sysinfo [OPTIONS]
|
|
|
|
Options:
|
|
-o, --out <OUT>
|
|
Output sensor file
|
|
|
|
-t, --temp-dir <TEMP_DIR>
|
|
Temporary directory for preparing the output sensor file.
|
|
|
|
The system temp directory is used if not specified.
|
|
The temp directory must be on the same file system for atomic rename operation!
|
|
|
|
--console
|
|
Print values in console
|
|
|
|
-r, --refresh <REFRESH>
|
|
System sensor refresh interval in seconds
|
|
|
|
--disk-refresh <DISK_REFRESH>
|
|
Enable individual disk refresh logic as used in AOOSTAR-X. Refresh interval in seconds
|
|
|
|
--smartctl
|
|
Retrieve drive temperature if `disk-update` option is enabled.
|
|
|
|
Requires smartctl and password-less sudo!
|
|
```
|
|
|
|
Single test run with printing all sensors on the console:
|
|
```shell
|
|
sysinfo --console
|
|
```
|
|
|
|
Normal mode providing sensor values for `asterctl` in `/tmp/sensors/sysinfo.txt`:
|
|
|
|
```shell
|
|
sysinfo --refresh 3 --out /tmp/sensor/sysinfo.txt
|
|
```
|
|
|
|
Note: the lower the refresh rate, the more resources are used!
|