Initial commit to aggregate values and show monthly overviews.
This commit is contained in:
26
config/config.php
Normal file
26
config/config.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
$config = [];
|
||||
|
||||
$config['remote']['db_host'] = '127.0.0.1';
|
||||
$config['remote']['db_name'] = 'volkszaehler';
|
||||
$config['remote']['table'] = 'data';
|
||||
$config['remote']['power_sensor'] = 5;
|
||||
$config['remote']['electric_meter'] = 6;
|
||||
$config['remote']['db_user'] = 'root';
|
||||
$config['remote']['db_pass'] = '';
|
||||
$config['remote']['db_port'] = 3306;
|
||||
$config['local']['db_host'] = '127.0.0.1';
|
||||
$config['local']['db_name'] = 'consumption';
|
||||
$config['local']['table_aggregation'] = 'aggregation';
|
||||
$config['local']['table_production'] = 'production';
|
||||
$config['local']['db_user'] = 'root';
|
||||
$config['local']['db_pass'] = '';
|
||||
$config['local']['db_port'] = 3306;
|
||||
|
||||
if (is_file(__DIR__ . '/config_local.php')) {
|
||||
$config_local = require(__DIR__ . '/config_local.php');
|
||||
$config = array_merge($config, $config_local);
|
||||
}
|
||||
|
||||
return $config;
|
||||
Reference in New Issue
Block a user