diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-02-17 02:43:49 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-02-17 02:43:49 +0300 |
commit | c4ace358182d1f58724336714490e3caac6b60df (patch) | |
tree | a519d29e87e26d60c67e8646ebe133e5438d3986 /localwebsite/handlers/InverterHandler.php | |
parent | 17b447646752cb141c30684046906961e8d0af9f (diff) | |
parent | d3a295872c49defb55fc8e4e43e55550991e0927 (diff) |
Merge branch 'master' of ch1p.io:homekit
Diffstat (limited to 'localwebsite/handlers/InverterHandler.php')
-rw-r--r-- | localwebsite/handlers/InverterHandler.php | 4 |
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 +} |