- debug\n- webserver fonctionnel
This commit is contained in:
18
config/aliases.php
Normal file
18
config/aliases.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
function aliases($fn, $property)
|
||||
{
|
||||
global $aliases;
|
||||
logger(DEBUG, "Function aliases " . $fn . "/" . $property, __FILE__ . ":" . __LINE__);
|
||||
if (array_key_exists($fn . "/" . $property, $aliases))
|
||||
{
|
||||
logger(DEBUG, "exists " . $fn . "/" . $property, __FILE__ . ":" . __LINE__);
|
||||
return "/" . $aliases[$fn . "/" . $property];
|
||||
}
|
||||
}
|
||||
|
||||
$aliases = array(
|
||||
"rdc/wc-sdb/eclairage/state_l1" => "sdb",
|
||||
"rdc/wc-sdb/eclairage/state_l2" => "wc"
|
||||
)
|
||||
|
||||
?>
|
||||
@@ -1,10 +1,9 @@
|
||||
<?php
|
||||
$dashboards[] = array(
|
||||
RDC_SALON_ECLAIRAGE_PANNEAU => "state",
|
||||
RDC_SDB_WC_ECLAIRAGE => "state_l1",
|
||||
RDC_SDB_WC_ECLAIRAGE => "state_l2",
|
||||
RDC_CHAMBRE_AMBIANCE => "state",
|
||||
RDC_CHAMBRE_ECLAIRAGE => "state_l1"
|
||||
$dashboards[0] = array(
|
||||
array(RDC_SALON_ECLAIRAGE_PANNEAU, "state"),
|
||||
array(RDC_SDB_WC_ECLAIRAGE, "state_l1"),
|
||||
array(RDC_SDB_WC_ECLAIRAGE, "state_l2"),
|
||||
array(RDC_CHAMBRE_AMBIANCE, "state"),
|
||||
array(RDC_CHAMBRE_ECLAIRAGE, "state_l1")
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
@@ -18,7 +18,6 @@ $properties2log = array(
|
||||
"position" => null,
|
||||
"pressure" => 10,
|
||||
"occupancy" => null,
|
||||
"tamper" => null,
|
||||
"illuminance_lux" => function($value) {($value < 500?50:$value*10/100); return $value;},
|
||||
// "illuminance" => 8,
|
||||
"requested_brightness_level" => function($value) {($value < 500?50:$value*10/100);return $value;},
|
||||
|
||||
Reference in New Issue
Block a user