summaryrefslogtreecommitdiff
path: root/localwebsite/handlers/InverterHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'localwebsite/handlers/InverterHandler.php')
-rw-r--r--localwebsite/handlers/InverterHandler.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/localwebsite/handlers/InverterHandler.php b/localwebsite/handlers/InverterHandler.php
index 7098e2c..5fa269f 100644
--- a/localwebsite/handlers/InverterHandler.php
+++ b/localwebsite/handlers/InverterHandler.php
@@ -93,10 +93,12 @@ class InverterHandler extends RequestHandler
protected function getClient(): InverterdClient {
global $config;
+ if (isset($_GET['alt']) && $_GET['alt'] == 1)
+ $config['inverterd_host'] = '192.168.5.223';
$inv = new InverterdClient($config['inverterd_host'], $config['inverterd_port']);
$inv->setFormat('json');
return $inv;
}
-} \ No newline at end of file
+}