diff --git a/server/ControlScripts/Common.php b/server/ControlScripts/Common.php index d48f64c..f3a9de8 100644 --- a/server/ControlScripts/Common.php +++ b/server/ControlScripts/Common.php @@ -2,6 +2,8 @@ namespace ControlScripts; +use \SHServ\Entities\Device; + trait Common { public function register_global_device_sync_map() { $this -> add_sync_connection([ diff --git a/server/ControlScripts/Scopes/SpotlightsScope.php b/server/ControlScripts/Scopes/SpotlightsScope.php index 5642fac..bc9e8e6 100644 --- a/server/ControlScripts/Scopes/SpotlightsScope.php +++ b/server/ControlScripts/Scopes/SpotlightsScope.php @@ -67,15 +67,15 @@ "description" => "Управление уличными прожекторами по времени", "author" => "Eugene Sukhodolskiy" ], function () { - $tz = new \DateTimeZone('Europe/Kyiv'); + // $tz = new \DateTimeZone('Europe/Kyiv'); - $now = new \DateTime('now', $tz); - $from = new \DateTime('9:00', $tz); - $to = new \DateTime('16:30', $tz); + // $now = new \DateTime('now', $tz); + // $from = new \DateTime('9:00', $tz); + // $to = new \DateTime('16:30', $tz); - if ($now >= $from && $now <= $to) { - $this -> all_spotlight_switch(false); - } + // if ($now >= $from && $now <= $to) { + // $this -> all_spotlight_switch(false); + // } }); }