added templates
This commit is contained in:
41
config/properties2log.php.template
Normal file
41
config/properties2log.php.template
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
// list of properties to log in database
|
||||
// key is property name => value is % of difference with stocked value. if new value is stored if
|
||||
// superior or inferior at value +/- x%
|
||||
|
||||
$properties2log = array(
|
||||
"action" => null,
|
||||
"state" =>null,
|
||||
"contact" => null,
|
||||
"temperature" => 0.5,
|
||||
"local_temperature" => 0.5,
|
||||
"state_l1" => null,
|
||||
"state_l2" => null,
|
||||
"current_heating_setpoint" => null,
|
||||
"position" => null,
|
||||
"pressure" => 10,
|
||||
"occupancy" => null,
|
||||
"illuminance_lux" => function($value) {$r = ($value < 500?50:$value*10/100); return $r;},
|
||||
"requested_brightness_level" => function($value) {$r = ($value < 500?50:$value*10/100);return $r;},
|
||||
"tempc" => 0.5,
|
||||
"humidity" => 2,
|
||||
"dewptc" => 0.5,
|
||||
"windchillc" => 0.5,
|
||||
"winddir" => 40,
|
||||
"windspeedkmh" => 5,
|
||||
"windgustkmh" => 5,
|
||||
"rainin" => 0.5,
|
||||
//"dailyrainin" => null,
|
||||
//"weeklyrainin" => null,
|
||||
//"monthlyrainin" => null,
|
||||
//"yearlyrainin" => null,
|
||||
"solarradiation" => 10,
|
||||
"UV" => null,
|
||||
"indoortempc" => 0.5,
|
||||
"indoorhumidity" => 0.5,
|
||||
"baromin" => 10,
|
||||
"presence" => null,
|
||||
"vibration" => null
|
||||
);
|
||||
|
Reference in New Issue
Block a user