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 43... Line 43...
43
        case 'command':
43
        case 'command':
44
            CommonFunctions::executeProgram('mbmon', '-c 1 -r', $lines, PSI_DEBUG);
44
            CommonFunctions::executeProgram('mbmon', '-c 1 -r', $lines, PSI_DEBUG);
45
            $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
45
            $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
46
            break;
46
            break;
47
        case 'data':
47
        case 'data':
48
            if (CommonFunctions::rfts(PSI_APP_ROOT.'/data/mbmon.txt', $lines)) {
48
            if (CommonFunctions::rftsdata('mbmon.tmp', $lines)) {
49
                $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
49
                $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
50
            }
50
            }
51
            break;
51
            break;
52
        default:
52
        default:
53
            $this->error->addConfigError('__construct()', '[sensor_mbmon] ACCESS');
53
            $this->error->addConfigError('__construct()', '[sensor_mbmon] ACCESS');
54
            break;
-
 
55
        }
54
        }
56
    }
55
    }
57
 
56
 
58
    /**
57
    /**
59
     * get temperature information
58
     * get temperature information