DietPi-Dashboard icon indicating copy to clipboard operation
DietPi-Dashboard copied to clipboard

Feature Request: External Temperature Sensors

Open mdr92 opened this issue 1 year ago • 2 comments

A feature request rather than a bug report. I currently use RPi-Monitor but it's well out of support having not been updated since 2017 by the looks of it, one great feature is the ability to use external sensors and have them plotted on the dashboard, graphs etc (along with a custom name), adding support for cheap temperature/humidty sensors like the DHT-11/DHT-22 would be great, a long with an easy way to setup and use them.

Thanks

mdr92 avatar Jun 17 '23 19:06 mdr92

Such an external sensor would not be used for the CPU temperature, right? So it would not be a replacement for CPU temp graph, but an additional graph.

I have not so much experience with sensors, but there are several different interfaces possible, 1-wire, I2C and others. And the kind of values may be pretty different, sometimes with associated timestamps, sometimes without etc. Do you know how it is implemented in RPi-Monitor? A generic method, just reading from a file (real or kernel API) and expecting it to be numerical, would be of course possible.

MichaIng avatar Jun 26 '23 18:06 MichaIng

I'm considering eventually switching from the psutil crate to sysinfo to get system data. It seems to be similar in size, if not slightly lighter weight, and provides more options for getting data, like listing external device temperatures through sysfs.

EDIT: Apparantly, 2 versions of nix are compiled into the project. psutil pulls in 0.23, while pty-process uses 0.26. Eliminating one of those would almost certainly help reduce binary size.

ravenclaw900 avatar Jul 27 '23 01:07 ravenclaw900