Subversion Repositories ALCASAR

Rev

Rev 2976 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2976 Rev 3037
Line 32... Line 32...
32
            $lines = "";
32
            $lines = "";
33
            CommonFunctions::executeProgram('k8temp', '', $lines);
33
            CommonFunctions::executeProgram('k8temp', '', $lines);
34
            $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
34
            $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
35
            break;
35
            break;
36
        case 'data':
36
        case 'data':
37
            if (CommonFunctions::rfts(PSI_APP_ROOT.'/data/k8temp.txt', $lines)) {
37
            if (CommonFunctions::rftsdata('k8temp.tmp', $lines)) {
38
                $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
38
                $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
39
            }
39
            }
40
            break;
40
            break;
41
        default:
41
        default:
42
            $this->error->addConfigError('__construct()', '[sensor_k8temp] ACCESS');
42
            $this->error->addConfigError('__construct()', '[sensor_k8temp] ACCESS');
43
            break;
-
 
44
        }
43
        }
45
    }
44
    }
46
 
45
 
47
    /**
46
    /**
48
     * get temperature information
47
     * get temperature information
Line 69... Line 68...
69
    /**
68
    /**
70
     * get the information
69
     * get the information
71
     *
70
     *
72
     * @see PSI_Interface_Sensor::build()
71
     * @see PSI_Interface_Sensor::build()
73
     *
72
     *
74
     * @return Void
73
     * @return void
75
     */
74
     */
76
    public function build()
75
    public function build()
77
    {
76
    {
78
        $this->_temperature();
77
        $this->_temperature();
79
    }
78
    }