Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ico277
Copy link

@ico277 ico277 commented Oct 22, 2024

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"
}

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.

1 participant