This project is the reimplementation of linux sensors utility in Odin.
WARNING: this is not a drop-in replacement of linux
sensorsutility!
Features:
- complete bindings to
sensors.handerror.hfiles - show sensors info in raw, json, and other formats, see
lstemp -hfor more info - implemented simple GUI app to show sensors info
lstemp-gui - based on
3.6.0+gitversion oflm-sensors(31d1f12commit)
Build:
odin build src/lstemp.odin -file -out=build/lstempRun examples:
./build/lstemp
./build/lstemp -h
./build/lstemp -j
./build/lstemp -j | jq '."coretemp-isa-0000"."Core 0"'GUI app supports Dark and Light themes:
Build:
odin build src/lstemp-gui.odin -file -out=build/lstemp-guiRun examples:
./build/lstemp-gui
./build/lstemp-gui -h
./build/lstemp-gui -update=500 -theme=Dark- Original lm-sensors repositiry: https://github.com/lm-sensors/lm-sensors/
- Crate lm_sensors: https://docs.rs/lm-sensors/latest/lm_sensors/index.html
- Hardware monitoring in Linux: https://codeberg.org/koutheir/lm-sensors
- Threading in Odin: https://yashdhadve.hashnode.dev/multi-threading-in-odin-lang
