o
odinpkg.dev
packages / library / lstemp

lstemp

5c37bd5library

This project is the reimplementation of linux sensors utility in Odin.

No license · updated 1 year ago

lstemp

This project is the reimplementation of linux sensors utility in Odin.

WARNING: this is not a drop-in replacement of linux sensors utility!

Features:

  • complete bindings to sensors.h and error.h files
  • show sensors info in raw, json, and other formats, see lstemp -h for more info
  • implemented simple GUI app to show sensors info lstemp-gui
  • based on 3.6.0+git version of lm-sensors (31d1f12 commit)

Build and run

CLI

Build:

odin build src/lstemp.odin -file -out=build/lstemp

Run examples:

./build/lstemp
./build/lstemp -h
./build/lstemp -j
./build/lstemp -j | jq '."coretemp-isa-0000"."Core 0"'

GUI

GUI app supports Dark and Light themes:

Sensors GUI

Build:

odin build src/lstemp-gui.odin -file -out=build/lstemp-gui

Run examples:

./build/lstemp-gui
./build/lstemp-gui -h
./build/lstemp-gui -update=500 -theme=Dark

References