Initial commit to aggregate values and show monthly overviews.

This commit is contained in:
2024-05-03 11:27:58 +02:00
commit a7a5955723
5 changed files with 432 additions and 0 deletions

26
config/config.php Normal file
View 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;