Skip to content

Commit

Permalink
Merge pull request #3339 from AllskyTeam/3237-bug-roi-module-is-hard-…
Browse files Browse the repository at this point in the history
…coded-to-look-for-the-last-captured-image-as-a-jpg

#3237 Change way IMG_DIR is found
  • Loading branch information
Alex-developer authored Jan 22, 2024
2 parents 035a767 + 34fe5e0 commit 6577b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/includes/moduleutil.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function getModuleBaseData() {

$result['lat'] = $lat;
$result['lon'] = $lon;
$imageDir = get_variable(ALLSKY_CONFIG . '/config.sh', 'IMG_DIR=', 'current/tmp');
$imageDir = get_variable(ALLSKY_HOME . '/variables.sh', "IMG_DIR=", 'current/tmp');
$result['filename'] = $imageDir . '/' . $settings_array['filename'];

exec("sunwait poll exit set angle $angle $lat $lon", $return, $retval);
Expand Down

0 comments on commit 6577b0b

Please sign in to comment.