From 617100e13f38798aac0ff11c081f2f90e803d56e Mon Sep 17 00:00:00 2001 From: Vincent Date: Sat, 24 Oct 2020 19:20:55 +0200 Subject: [PATCH] . --- .idea/workspace.xml | 25 ++++++++++++------------- scripts/lib/hue.php | 2 +- servers/hue.php | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-) 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); } -- 2.39.5