Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wsrtinfo:sensoralarmdescription [2009/08/24 07:10] arnoschoenmakerswsrtinfo:sensoralarmdescription [2009/08/24 07:11] (current) arnoschoenmakers
Line 32: Line 32:
   * Setting the alarmstatus of all the associated sensors to ''on'' in the Sensor database(s).   * Setting the alarmstatus of all the associated sensors to ''on'' in the Sensor database(s).
  
-Before obtaining the values, we first check if the sensor database values are recent enough to trust. This limit is set at 10 minutes, i.e., only if the database contains values less than 10 minutes old, the alarmconditions will be evaluated. All values are taken from the local MySQL database (the one running on wop33, that is).+Before obtaining the values, we first check if the sensor database values are recent enough to trust. This limit is set at 10 minutes, i.e., only if the database contains values less than 10 minutes old, the alarmconditions will be evaluated. All values are taken from the local MySQL database (the one running on wop10, that is).
  
 In the ''alarmconditions.cfg''-file is a column that gives the amount of individual samples/measurements of a sensor value to take into account. This is done in the following way: In the ''alarmconditions.cfg''-file is a column that gives the amount of individual samples/measurements of a sensor value to take into account. This is done in the following way:
Line 84: Line 84:
 ==== Used Python modules ==== ==== Used Python modules ====
  
-The wop33 runs an old version of Python, Python 2.3.4. This limits the availablity of advanced interfaces and modules. For ''sensorAlarm'', we have used the following Python modules:+For ''sensorAlarm'', we have used the following Python modules:
   * For string handling: ''string''   * For string handling: ''string''
   * For date and time issues: ''time'' and ''datetime''   * For date and time issues: ''time'' and ''datetime''
Line 92: Line 92:
   * For MySQL connections: ''MySQLdb'' (see [[http://mysql-python.sourceforge.net/MySQLdb.html| the manual]] and [[https://sourceforge.net/projects/mysql-python| the project page]]).   * For MySQL connections: ''MySQLdb'' (see [[http://mysql-python.sourceforge.net/MySQLdb.html| the manual]] and [[https://sourceforge.net/projects/mysql-python| the project page]]).
    
 +
 ==== The configuration file ==== ==== The configuration file ====
  
Line 126: Line 127:
 ===== Alarmconditions ===== ===== Alarmconditions =====
  
-This is the Alarm conditions table that is used in the software. It originates from the file ''/wsrt/config/alarmconditions.cfg'' on wop33.+This is the Alarm conditions table that is used in the software. It originates from the file ''/wsrt/config/alarmconditions.cfg'' on wop10.
  
 ^ Sensor ^ Type/Unit^ Alarm Condition(s) ^ Nr. of samples ^ Mail/SMS who ^ (Software) Action ^ ^ Sensor ^ Type/Unit^ Alarm Condition(s) ^ Nr. of samples ^ Mail/SMS who ^ (Software) Action ^

QR Code
QR Code wsrtinfo:sensoralarmdescription (generated for current page)