-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatusEnergyValues.php
More file actions
31 lines (22 loc) · 956 Bytes
/
statusEnergyValues.php
File metadata and controls
31 lines (22 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
// NrgHomeVis - Energievisualisierung für zu Hause | Repository: <https://github.com/SvenoF54/home-energy-visualizer>
// Licensed under the GNU GPL v3.0 - see <https://www.gnu.org/licenses/gpl-3.0.en.html>
include_once("lib/appLibLoader.php");
// Prepare DB
$hourlyEnergyDataTbl = HourlyEnergyDataTable::getInstance();
$hourlyEnergyGaps = $hourlyEnergyDataTbl->getGaps();
$hourlyEnergyGapsGroupped = TableGapSet::groupByMonth($hourlyEnergyGaps);
$realtimeEnergyDataTbl = RealTimeEnergyDataTable::getInstance();
$realtimeEnergyStats = $realtimeEnergyDataTbl->getStatistics(true);
// configure VIEW
$pageTitle = "Status Übersichtsseiten";
$jsHeaderFiles = ["js/utils.js", "js/status-energy-values/documentReady.js"];
$jsFooterFiles = [];
$cssFiles = [];
$jsVars = [
"API_KEY" => json_encode(API_KEY)
];
$partialTop = null;
$partialBottom = "views/pages/status-energy-values/values-list.phtml";
include("views/partials/layout.phtml");
?>