From: Vincent Date: Sat, 24 Oct 2020 17:20:55 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=617100e13f38798aac0ff11c081f2f90e803d56e;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 1366b27..932a20b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,9 @@ - - + @@ -1283,11 +1282,11 @@ - + - + diff --git a/scripts/lib/hue.php b/scripts/lib/hue.php index 01372ff..5d00583 100644 --- a/scripts/lib/hue.php +++ b/scripts/lib/hue.php @@ -28,7 +28,7 @@ function hueCommand($action, $transitionTime) $command['transitionTime'] = $transitionTime; $queue[] = $command; $redis->igbset('hue_queue', $queue); - $redis->publish('hue_queue', 'handle_queue'); + $redis->publish('hue_event', 'handle_queue'); } function _hueCommand($action) diff --git a/servers/hue.php b/servers/hue.php index 9a7bd89..0dcaba8 100644 --- a/servers/hue.php +++ b/servers/hue.php @@ -37,7 +37,7 @@ function handleHueQueue() $command = array_shift($queue); $redis->igbset('hue_queue', $queue); - echo 'Run command ' . $command . "\n"; + echo 'Run command ' . json_encode($command) . "\n"; _hueCommand($command); usleep(1000000 * 0.1); }