stephendade / Rpanion-server

Web-based configurator for companion computers of MAVLink vehicles
https://www.docs.rpanion.com/software/rpanion-server
GNU General Public License v3.0
138 stars 61 forks source link

System stats #31

Open stephendade opened 3 years ago

stephendade commented 3 years ago

Add warning when system temperature, voltage or averaged CPU exceeds limits.

This would allow users to diagnose some stability issues, especially when running video streaming

lorenzing commented 2 years ago

Great function! I think we can also integrate the reading of undervoltage and cpu throtteling.

vcgencmd get_throttled
vcgencmd measure_temp
vcgencmd measure_volts core
vcgencmd measure_clock core

The vcgencmd get_throttled output bits are: clipboard_eddfc4bfa4efe78b914acf08a906d9f3f

Other commands can be integrated, such as reading the gpu or free ram. vcgencmd get_mem arm/gpu

For example this is the dashboard of my Raspberry Pi (Zero 2 W) which controls the 3D printer: Schermata 2022-01-26 alle 08 30 07

stephendade commented 2 years ago

I'd prefer a more generic approach, as Rpanion-server also runs on Jetsons and a few x86 platforms now. Is there a more generic functions we can use?

lorenzing commented 2 years ago

Hello Stephen, sorry for the delay in replying. You are absolutely right about the compatibility of the feature with all supported platforms. However, I believe it is important to know if the raspberry get throttled.

stephendade commented 2 years ago

However, I believe it is important to know if the raspberry get throttled.

Yes, that's fine. I'm generally happy to put in small amounts of Pi-specific functionality

ddd999 commented 6 months ago

lm-sensors is probably the most widely supported way to get hardware monitoring info: https://github.com/lm-sensors/lm-sensors

There may be some kinks with RPi support, but that is (maybe?) solved now, depending on kernel version: https://github.com/lm-sensors/lm-sensors/issues/202