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/MiscHandler.php | |
parent | 17b447646752cb141c30684046906961e8d0af9f (diff) | |
parent | d3a295872c49defb55fc8e4e43e55550991e0927 (diff) |
Merge branch 'master' of ch1p.io:homekit
Diffstat (limited to 'localwebsite/handlers/MiscHandler.php')
-rw-r--r-- | localwebsite/handlers/MiscHandler.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/localwebsite/handlers/MiscHandler.php b/localwebsite/handlers/MiscHandler.php index 10b4426..4c5a25e 100644 --- a/localwebsite/handlers/MiscHandler.php +++ b/localwebsite/handlers/MiscHandler.php @@ -33,6 +33,9 @@ class MiscHandler extends RequestHandler public function GET_pump_page() { global $config; + if (isset($_GET['alt']) && $_GET['alt'] == 1) + $config['pump_host'] = '192.168.5.223'; + list($set) = $this->input('set'); $client = new GPIORelaydClient($config['pump_host'], $config['pump_port']); @@ -165,4 +168,4 @@ class MiscHandler extends RequestHandler phpinfo(); } -}
\ No newline at end of file +} |