Files
power-consumption/config/config.php

27 lines
822 B
PHP

<?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;