Smart_Home is a home automation project suited for ESP boards family (including NodeMCU). It supports PWA; supports tons of sensors; has modern and elegant UI; is easily customizable; is multilangual.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
824 B

<?php
define('DBHOST','');
define('DBNAME','');
define('DBUSER','');
define('DBPASS','');
define('BASEDIR','');
//Leade record newer than XX days
define('RECORDTIMOUT', 90);
//HOME IP ADRESS
//Restrict acess to API
define('HOMEIP', '');
//Randomizet Security Keys
define('FIRSTKEY','');
define('SECONDKEY','');
//show debug codes
define('DEBUGMOD',0);
/** Unit Definition **/
const UNITS = [
''=> '',
'temp' => "°C",
'humi' => "%",
'light' => "",
'on/off' => ""
];
//Graph Setting
const RANGES = [
'' => [
'min' => 0,
'max' => 100,
'scale' =>20,
],
'temp' => [
'min' => 10,
'max' => 45,
'scale' =>20,
],
'humi' => [
'min' => 0,
'max' => 100,
'scale' =>20,
],
'light' => [
'min' => 0,
'max' => 1,
'scale' =>1,
],
'on/off' => [
'min' => 0,
'max' => 1,
'scale' =>1,
],
];
?>