Subversion Repositories ALCASAR

Rev

Rev 2976 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2976 Rev 3037
Line 36... Line 36...
36
                    $this->_filecontent["volt"] = $out[1];
36
                    $this->_filecontent["volt"] = $out[1];
37
                }
37
                }
38
            }
38
            }
39
            break;
39
            break;
40
        case 'data':
40
        case 'data':
41
            if (CommonFunctions::rfts(PSI_APP_ROOT.'/data/speedfan.txt', $buffer) && (strlen($buffer) > 0)) {
41
            if (CommonFunctions::rftsdata('speedfan.tmp', $buffer) && (strlen($buffer) > 0)) {
42
                if (preg_match("/^Temperatures:\s+(.+)$/m", $buffer, $out)) {
42
                if (preg_match("/^Temperatures:\s+(.+)$/m", $buffer, $out)) {
43
                    $this->_filecontent["temp"] = $out[1];
43
                    $this->_filecontent["temp"] = $out[1];
44
                }
44
                }
45
                if (preg_match("/^Fans:\s+(.+)$/m", $buffer, $out)) {
45
                if (preg_match("/^Fans:\s+(.+)$/m", $buffer, $out)) {
46
                    $this->_filecontent["fans"] = $out[1];
46
                    $this->_filecontent["fans"] = $out[1];
Line 50... Line 50...
50
                }
50
                }
51
            }
51
            }
52
            break;
52
            break;
53
        default:
53
        default:
54
            $this->error->addConfigError('__construct()', '[sensor_speedfan] ACCESS');
54
            $this->error->addConfigError('__construct()', '[sensor_speedfan] ACCESS');
55
            break;
-
 
56
        }
55
        }
57
    }
56
    }
58
 
57
 
59
    /**
58
    /**
60
     * get temperature information
59
     * get temperature information
Line 113... Line 112...
113
    /**
112
    /**
114
     * get the information
113
     * get the information
115
     *
114
     *
116
     * @see PSI_Interface_Sensor::build()
115
     * @see PSI_Interface_Sensor::build()
117
     *
116
     *
118
     * @return Void
117
     * @return void
119
     */
118
     */
120
    public function build()
119
    public function build()
121
    {
120
    {
122
        $this->_temperature();
121
        $this->_temperature();
123
        $this->_fans();
122
        $this->_fans();