-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Request] please add cpu temperature meter #36
Comments
Good idea. I wonder how to implement best, I guess loading DietPi-Globals to run the Last but not least the logic could be cloned: https://github.com/MichaIng/DietPi/blob/733d81e/dietpi/func/dietpi-globals#L1692-L1722 |
The crate that I'm currently using to read CPU, RAM, etc has a function for that: https://docs.rs/heim/0.1.0-rc.1/heim/sensors/fn.temperatures.html. |
That is great. Hopefully it is accurate on the various SBCs we support. |
I've been trying to work on this, but I've run into some problems (heim-rs/heim#354). Until that gets resolved, my basic changes are in the https://github.com/ravenclaw900/DietPi-Dashboard/tree/cpu-temp branch. |
isn't it something like this?.... root@DietPi:/# watch -n 2 sensors Every 2.0s: sensors DietPi: Thu Feb 10 17:17:03 2022 amdgpu-pci-0008 k10temp-pci-00c3 fam15h_power-pci-00c4 |
While that might work (though it doesn't on my RPi, does the |
|
ah okay, i understand. sorry i was having trouble seeing why it was difficult to have the cpu temp seeing as it is posted each time i login via ssh. I understand now why this is not what you are trying to do, least not in this way. and yes, i used lm-sensors and no.. it's not a pi. but it should work just as well on a pi. |
Via bash shell and sourcing bash -c '. /boot/dietpi/func/dietpi-globals; G_OBTAIN_CPU_TEMP' Otherwise the logic, looping though the kernel API until a valid integer was found, could be directly implemented: https://github.com/MichaIng/DietPi/blob/4eee867/dietpi/func/dietpi-globals#L1674-L1716 |
Implemented already for next release v0.6.1 with: #232 |
I think that one of the most important sensor that should be visualized in th system diagnostic tab should be CPU temp.
The text was updated successfully, but these errors were encountered: