From 1dca8d1f3d3197dc86fdf1060d3fadd22c353f9e Mon Sep 17 00:00:00 2001 From: Vincent Date: Mon, 24 Aug 2020 12:42:01 +0200 Subject: [PATCH] . --- .idea/workspace.xml | 30 +++++++++++++++++++----------- config/sdb.php | 2 +- gradient.php | 2 +- scripts/lib/cachemedia.php | 2 +- scripts/lib/scenes.php | 8 ++++---- 5 files changed, 26 insertions(+), 18 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d00101e..5dad6c0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,6 +3,9 @@ + + + @@ -1250,11 +1258,11 @@ - + - + diff --git a/config/sdb.php b/config/sdb.php index 2b7416e..8292a68 100644 --- a/config/sdb.php +++ b/config/sdb.php @@ -31,7 +31,7 @@ if (DISPLAYINTERFACE) { ['type' => 'volume', 'volume' => '5%', 'increase' => '+', 'label' => ''], ['type' => 'volume', 'volume' => '5%', 'increase' => '-', 'label' => ''], ]; - $favoriteslights[] = array_merge($allmusics['France Info'], array('volume' => 30)); + $favoriteslights[] = array_merge($allmusics['France Info'], array('volume' => 50)); $favoriteslights = array_merge($favoriteslights, $c['favorites']); include "media.php"; include "default.php"; diff --git a/gradient.php b/gradient.php index db280cc..b73e3ef 100644 --- a/gradient.php +++ b/gradient.php @@ -41,7 +41,7 @@ css.backgroundImage = 'none'; //videoURL = data.data.video_path; videoURL = data.data.video_path.replace('/nas/', 'file:///Z:/'); - videoURL = videoURL.replace('file:///Z:/Videos/YoutubeDL', 'file:///C:/YoutubeDL'); + videoURL = videoURL.replace('file:///Z:/Videos/YoutubeDL', 'file:///D:/YoutubeDL'); startVideo = 1; if (data.data.start) { startVideo = data.data.start; diff --git a/scripts/lib/cachemedia.php b/scripts/lib/cachemedia.php index 3dd53b8..a9aa90f 100644 --- a/scripts/lib/cachemedia.php +++ b/scripts/lib/cachemedia.php @@ -12,7 +12,7 @@ function cacheMedia($url) $limit = time() - 604800; if (!file_exists($cachedFile) || filemtime($cachedFile) < $limit) { - copy($url, $cachedFile); + @copy($url, $cachedFile); } return $cachedURL; } \ No newline at end of file diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index 8d99143..feaaad9 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -562,8 +562,8 @@ $scenes = [ ], 'sdb/on' => [ ['type' => 'state', 'key' => 'sdb', 'value' => 1], - // ['type' => 'hue', 'group' => $sdb, 'scene' => ['effect' => 'none']], - ['type' => 'hue', 'group' => $sdb, 'scene' => '0L4cGh7y29uBBez'], + ['type' => 'hue', 'group' => $sdb, 'scene' => ['effect' => 'none']], + ['type' => 'hue', 'group' => $sdb, 'scene' => 'LmwN0cs0qsep2sA'], ], 'sdb/morning' => [ ['type' => 'state', 'key' => 'sdb', 'value' => 1], @@ -572,8 +572,8 @@ $scenes = [ ], 'sdb/nuit' => [ ['type' => 'state', 'key' => 'sdb', 'value' => 1], - //['type' => 'hue', 'group' => $sdb, 'scene' => ['effect' => 'none']], - ['type' => 'hue', 'group' => $sdb, 'scene' => 'ZTZBNRk6VZMlYvB'], + ['type' => 'hue', 'group' => $sdb, 'scene' => ['effect' => 'none']], + ['type' => 'hue', 'group' => $sdb, 'scene' => 'S59ayiWOy11L2tR'], ], 'sdb/spa' => [ ['type' => 'state', 'key' => 'sdb', 'value' => 1], -- 2.39.5