mirror of
https://github.com/hirschmann/nbfc.git
synced 2026-04-25 08:35:56 +03:00
[GH-ISSUE #21] FSTemperatureMonitor needs some love #21
Labels
No labels
Stale
bug
config
discussion
duplicate
enhancement
experimental
feature
help-wanted
info
invalid
invalid
pull-request
question
up-for-grabs
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nbfc-hirschmann#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ntninja on GitHub (Aug 14, 2015).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/21
As we've discussed in #18 the current implementation of
FSTemperatureMonitoris somewhat confusing.Some things I'd suggest doing:
LinuxTemperatureMonitor. Neither does thehwmonwork only on file systems (the current code ignores everything except CPUs), nor is it portable to anything except Linux.<10sensors is negligible.Please let me know what you think about these points.
@ntninja commented on GitHub (Aug 15, 2015):
You might already know this, but (for reference) here's the reference sheet for the
hwmonsysfs interface:https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface
Also wouldn't it make sense to measure the temperature of all available hardware devices (instead of just CPUs) and return the maximum temperature measured instead of the average one. If some process really stresses my GPU, for instance, I'd want my fan to start doing some extra cooling as well…
@hirschmann commented on GitHub (Aug 15, 2015):
These are some pretty good suggestions and I agree with most of them.
I think a temperature monitoring plugin dedicated to Linux is a pretty good idea.
I have already read the sysfs-interface documentation and there is one sentence I want to highlight:
I think the plugin should use
libsensorsto read temperatures from various temperature sensors instead of directly accessing thesysfsfiles.Because there is nothing in the
FSTemperatureMonitorcode which could be reused, I prefer to create a new plugin project which will supersedeFSTemperatureMonitoronce it is finished.@ntninja commented on GitHub (Aug 15, 2015):
I'll look into this, but looking at the search results I found I fear I'll have to create a
libsensorC# binding (involving unsafe code and whatnot) myself. :-(Please let me know if you know of bindings/reimplementations of
libsensorfor C#, I's not actually a language I use very often so your the expert here. ;-) Otherwise I'll get to work writing that binding tomorrow.Note to self: Some demo code
@hirschmann commented on GitHub (Aug 16, 2015):
I know of a C# wrapper for libsensors , which is exactly what you've probably been looking for.
If you want to implement the new plugin, please let me know, so that I don't work on the same stuff as you. ;)
@github-actions[bot] commented on GitHub (Dec 13, 2019):
This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed