From 4fc5400000a74382267b0955fdaf6b699ef2fc96 Mon Sep 17 00:00:00 2001 From: 01101001c <01101001c@gmail.com> Date: Mon, 18 Mar 2013 17:08:01 -0700 Subject: Thermal Sensors Widget (for pfSense v2.1-BETA1 and up). Original post: http://forum.pfsense.org/index.php/topic,59193.0.html --- usr/local/www/widgets/include/thermal_sensors.inc | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 usr/local/www/widgets/include/thermal_sensors.inc (limited to 'usr/local/www/widgets/include') diff --git a/usr/local/www/widgets/include/thermal_sensors.inc b/usr/local/www/widgets/include/thermal_sensors.inc new file mode 100644 index 0000000..2ebc31d --- /dev/null +++ b/usr/local/www/widgets/include/thermal_sensors.inc @@ -0,0 +1,27 @@ +> Advanced >> Miscellaneous tab >> Thermal Sensors section. +function getThermalSensorsData() { + + exec("/sbin/sysctl -a | grep temperature", $dfout); + $thermalSensorsData = join("|", $dfout); + return $thermalSensorsData; + +} +?> -- cgit v1.1