Fixes and updates to run out of container

This commit is contained in:
2018-01-15 17:18:16 +01:00
parent 3d0ea1adc7
commit e594676075
15 changed files with 2704 additions and 3442 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/local/bin/php
#!/usr/bin/php
<?php
require_once 'functions.php';
require_once 'rrd.php';
@@ -16,11 +16,6 @@ $aSystems = array(
'1206DS0163' => array('16e7a916d69656e354d00461a4da1d2e40cfa4f1', '12419')
);
/* Fake command line for debugging */
if (count($argv) < 5) {
$argv = array(null, 1.5, 1234, 230, '1206DS0163');
}
/* Fetch command line arguments */
$fToday = floatval($argv[1]); // Wh
$fPower = floatval($argv[2]); // W