44 lines
998 B
PHP
44 lines
998 B
PHP
<?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(
|
|
"availability" => null,
|
|
"action" => null,
|
|
"state" =>null,
|
|
"contact" => null,
|
|
"temperature" => 0.5,
|
|
"local_temperature" => 0.5,
|
|
"state_l1" => null,
|
|
"state_l2" => null,
|
|
"humidity" => null,
|
|
"current_heating_setpoint" => null,
|
|
"position" => null,
|
|
"pressure" => 10,
|
|
"occupancy" => null,
|
|
"tamper" => null,
|
|
"illuminance_lux" => '10%',
|
|
// "illuminance" => 8,
|
|
"requested_brightness_level" => '10%',
|
|
"tempf" => 0.5,
|
|
"humidity" => null,
|
|
"dewptf" => 0.5,
|
|
"windchillf" => 0.5,
|
|
"winddir" => 40,
|
|
"windspeedmph" => 20,
|
|
"windgustmph" => 20,
|
|
"rainin" => null,
|
|
//"dailyrainin" => null,
|
|
//"weeklyrainin" => null,
|
|
//"monthlyrainin" => null,
|
|
//"yearlyrainin" => null,
|
|
"solarradiation" => 10,
|
|
"UV" => null,
|
|
"indoortempf" => 0.5,
|
|
"indoorhumidity" => null,
|
|
"baromin" => 10
|
|
);
|
|
|