1
0

added some javascript to webserver\nsome debugging

This commit is contained in:
2022-03-06 01:30:33 +01:00
parent a2d2909a23
commit 9dde1c2d53
13 changed files with 230 additions and 179 deletions

View File

@@ -7,7 +7,12 @@ function aliases($fn, $property)
{
logger(DEBUG, "exists " . $fn . "/" . $property, __FILE__ . ":" . __LINE__);
return "/" . $aliases[$fn . "/" . $property];
}else
{
return "/" . _($property);
}
}
$aliases = array(

View File

@@ -1,9 +1,18 @@
<?php
$dashboards[0] = array(
$dashboards["Général"] = 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")
array(RDC_CHAMBRE_ECLAIRAGE, "state_l1"),
array(METEO, "tempc"),
array(METEO, "humidity"),
array(METEO, "winddir"),
array(METEO, "windspeedkmh"),
array(METEO, "windgustkmh"),
array(METEO, "rainin"),
array(METEO, "barominmb"),
array(METEO, "UV"),
array(METEO, "solarradiation")
);
?>

View File

@@ -21,13 +21,13 @@ $properties2log = array(
"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;},
"tempf" => 0.5,
"tempc" => 0.5,
"humidity" => null,
"dewptf" => 0.5,
"windchillf" => 0.5,
"dewptc" => 0.5,
"windchillc" => 0.5,
"winddir" => 40,
"windspeedmph" => 5,
"windgustmph" => 5,
"windspeedkmh" => 5,
"windgustkmh" => 5,
"rainin" => null,
//"dailyrainin" => null,
//"weeklyrainin" => null,
@@ -35,7 +35,7 @@ $properties2log = array(
//"yearlyrainin" => null,
"solarradiation" => 10,
"UV" => null,
"indoortempf" => 0.5,
"indoortempc" => 0.5,
"indoorhumidity" => null,
"baromin" => 10
);