PHP_SMART_HOME_V3/config_sample.php

60 lines
824 B
PHP
Raw Permalink Normal View History

2019-08-23 11:39:42 +00:00
<?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,
],
];
?>