#!/bin/sh #------------------------------------------------------------------------------ # opt/files/srv/www/admin/fscpc.cgi __FLI4LVER__ # # Creation: gdw # Last Update: $Id$ #------------------------------------------------------------------------------ . /srv/www/include/cgi-helper # Security check_rights "embedded" "view" . /var/run/embedded.conf volt1=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/class/hwmon/hwmon0/device/in0_input` volt2=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/class/hwmon/hwmon0/device/in1_input` volt3=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/class/hwmon/hwmon0/device/in2_input` temp1=`sed 's/\([0-9]\)[0-9]\{2\}$/.\1/' /sys/class/hwmon/hwmon0/device/temp1_input` temp2=`sed 's/\([0-9]\)[0-9]\{2\}$/.\1/' /sys/class/hwmon/hwmon0/device/temp2_input` show_html_header "fscpc" show_tab_header "Temperaturen" no cat < Sensor Temp CPU $temp1 °C PCB $temp2 °C EOF show_tab_footer show_tab_header "Spannungen" no cat < Sensor Spannung 12V $volt1 V 5V $volt2 V VBat $volt3 V EOF show_tab_footer show_html_footer