Path to status.json in config

This commit is contained in:
Bandie 2021-01-18 20:51:33 +01:00
parent be7608fb95
commit 3fcff9803e
Signed by: Bandie
GPG Key ID: 843D7FA93BA46312
2 changed files with 2 additions and 1 deletions

View File

@ -2,3 +2,4 @@
$active = false;
$consumer_key = 'asdf';
$consumer_secret = 'qwer';
$statusJSONFile = '../status.json';

View File

@ -107,7 +107,7 @@ if(!$status["sensors"]["door_locked"][0]["value"] || !$status["sensors"]["door_l
$json = json_encode($status);
// Write this shit
file_put_contents("../status.json", $json);
file_put_contents($statusJSONFile, $json);
// Show what we've done!
echo($json);