projects
/
yawep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b5ecd2
)
config read in function fix
author
Neszt Tibor
<neszt.tibor@euronetrt.hu>
Sun, 3 Dec 2017 16:44:53 +0000
(17:44 +0100)
committer
Neszt Tibor
<neszt.tibor@euronetrt.hu>
Sun, 3 Dec 2017 16:44:53 +0000
(17:44 +0100)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
b0235eb
..
cde0058
100755
(executable)
--- a/
index.php
+++ b/
index.php
@@
-17,7
+17,8
@@
function read_json_config($filename) {
$player_script = '/tmp/yawep_screen_player_script.sh';
-$config = read_json_config('config.json');
+$config_file = 'config.json';
+$config = read_json_config($config_file);
$default_player_cmd = "sudo omxplayer -s -o alsa:plughw:0,1 -y --threshold %Buffer% --no-osd --layer 100 --timeout 3 --aspect-mode stretch '%URL%'";
$screenrc_file = "/tmp/yawep_player_screenrc";
$screenlog_file = "/tmp/yawep_screen.log";