initial commit; version 22.5.12042
This commit is contained in:
34
html/includes/graphs/sensor/illuminance.inc.php
Normal file
34
html/includes/graphs/sensor/illuminance.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFFF99";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$scale_min = 0;
|
||||
$graph_max = 1;
|
||||
$unit_text = "lux";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes"; }
|
||||
if (is_numeric($sensor['sensor_limit_low'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes"; }
|
||||
|
||||
$graph_return['descr'] = 'Illuminance sensor measured in lux.';
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user