This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Singelton extends ArrayObject { | |
private static $_registry = null; | |
public static function getInstance() { | |
if (self::$_registry === null) { | |
self::$_registry = new Singelton(); | |
} |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MACHINE_IDENTIFIER;cfg;"RUB20:_Energie:Zähler:Bezug Total" | |
CLASS;cfg;"CounterUp" | |
UNIT;cfg;"kWh" | |
1190756700;x;0.000000000000000 | |
1190757600;x;0.122685185185190 | |
1190758500;x;0.245370370370370 | |
1190759400;x;0.368055555555560 | |
1190760300;x;0.490740740740740 | |
1190761200;x;0.613425925925930 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update sensor_data_aggregated_hour_min | |
set min_value=sensor_data.value, | |
min_timestamp=sensor_data.timestamp | |
where | |
sensor=sensor_data.sensor | |
and aggregation='hour' | |
and timestamp=DATE_FORMAT(sensor_data.timestamp, '%Y-%m-%d %H:00:00+0200'); | |
if sensor_data.value<min_value; | |
update sensor_data_aggregated_hour_max |