From: Neszt Tibor Date: Sun, 3 Dec 2017 16:44:53 +0000 (+0100) Subject: config read in function fix X-Git-Url: http://git.neszt.hu/?a=commitdiff_plain;h=5cc196f3a9a79c3a1e42466714737d7366a99847;p=yawep.git config read in function fix --- diff --git a/index.php b/index.php index b0235eb..cde0058 100755 --- 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";