diff --git a/scripts/config.php b/scripts/config.php index 104b481f..78a88235 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -147,7 +147,6 @@ function() { } } - $contents = file_get_contents("/etc/birdnet/birdnet.conf"); $contents = preg_replace("/SITE_NAME=.*/", "SITE_NAME=\"$site_name\"", $contents); $contents = preg_replace("/LATITUDE=.*/", "LATITUDE=$latitude", $contents); @@ -176,6 +175,10 @@ function() { function() { window.parent.document.location.reload(); }, 1000);"; + + shell_exec("sudo systemctl restart chart_viewer.service"); + // the sleep allows for the service to restart and image to be generated + sleep(5); } $fh = fopen("/etc/birdnet/birdnet.conf", "w"); @@ -649,6 +652,7 @@ function runProcess() {
Color scheme+ Note: when changing themes the daily chart may need a page refresh before updating. |