Skip to content

Add an option to search for name in hwmon directory for the temperature module - #3706

Merged
Alexays merged 6 commits into
Alexays:masterfrom
ico277:master
Jul 3, 2026
Merged

Add an option to search for name in hwmon directory for the temperature module#3706
Alexays merged 6 commits into
Alexays:masterfrom
ico277:master

Conversation

@ico277

@ico277 ico277 commented Oct 22, 2024

Copy link
Copy Markdown
Contributor

I added a way to specify the hwmon path by using the name file in the /sys/class/hwmon/hwmonX/ and input-filename.

It iterates though /sys/class/hwmon/ and checks if every folder has a name file then chooses the first one where the contents match the hwmon-by-path config variable.

Example config snippet:

"temperature": {
    "hwmon-by-name": "k10temp",
    "input-filename": "temp1_input",
    "critical-threshold": 75,
    "format-critical": "CRIT:{temperatureC}°C",
    "format": "{temperatureC}°C"
}

@zen2

zen2 commented Jun 26, 2025

Copy link
Copy Markdown

Tips for the module documentation:
hwmon-by-name and input-filename can be found easily with the command
sensors -uA and you can have the equivalent in json format with sensors -juA.

@Alexays
Alexays merged commit c7ca5ee into Alexays:master Jul 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants