feat: simple sensor panels with file-based data source (#7)

* add simulation mode for easier development

* improved sensor file watcher, poc cpu & mem usage

Trigger file read by rename event

* feat: system information sensor tool

Gather various sensor values with the sysinfo crate:
https://github.com/GuillaumeGomez/sysinfo
Values can be written to a sensor source file with the `--out` cmd line
option for the `asterctl` tool.

* ci: build sysinfo tool and include in build artifact

* feat: support integerDigits, decimalDigits sensor value format options

* docs: update documentation

Closes #6
This commit is contained in:
Markus Zehnder
2025-08-22 13:41:31 +02:00
committed by GitHub
parent 3f174251d6
commit e85d616da7
32 changed files with 3803 additions and 3933 deletions
+18 -4
View File
@@ -90,9 +90,11 @@ cd aoostar-rs
A release build is highly recommended, as it significantly improves graphics performance:
```shell
cargo build --release
cargo build --release --bins --all-features
```
The `--bins` option builds the main `asterctl` app and all other tools.
### Install
See [Linux systemd Service](linux/) on how to automatically switch off the LCD at boot up.
@@ -105,7 +107,7 @@ text over the image.
By default, the original LCD USB UART device `416:90A1` is used. See optional parameters to specify a different device.
```shell
cargo run --release -- --demo --config Monitor3.json
cargo run --release -- --demo --config monitor.json
```
The `--config` parameter is optional. It loads the official configuration file and displays the defined sensors in the
@@ -118,14 +120,26 @@ first panel.
- `--help` — Show all options.
### Sensor Panel
```shell
asterctl --config monitor.json
```
See [sensor panels](doc/sensor_panels.md) for more information.
### Control Commands
> Aster: Greek for star and similar to AOOSTAR.
Besides demo mode, the following control commands have been implemented.
The `asterctl` binary is built in `./target/release`.
Alternatively, use `cargo run --release --` to build and run automatically, for example: `cargo run --release -- --off`.
Alternatively, use `cargo run --release --` to build and run automatically, for example:
> Aster: Greek for star and similar to AOOSTAR.
```shell
cargo run --release -- --off
```
**Switch display on:**