Path to status.json in config
This commit is contained in:
parent
be7608fb95
commit
3fcff9803e
@ -2,3 +2,4 @@
|
|||||||
$active = false;
|
$active = false;
|
||||||
$consumer_key = 'asdf';
|
$consumer_key = 'asdf';
|
||||||
$consumer_secret = 'qwer';
|
$consumer_secret = 'qwer';
|
||||||
|
$statusJSONFile = '../status.json';
|
||||||
|
@ -107,7 +107,7 @@ if(!$status["sensors"]["door_locked"][0]["value"] || !$status["sensors"]["door_l
|
|||||||
$json = json_encode($status);
|
$json = json_encode($status);
|
||||||
|
|
||||||
// Write this shit
|
// Write this shit
|
||||||
file_put_contents("../status.json", $json);
|
file_put_contents($statusJSONFile, $json);
|
||||||
|
|
||||||
// Show what we've done!
|
// Show what we've done!
|
||||||
echo($json);
|
echo($json);
|
||||||
|
Loading…
Reference in New Issue
Block a user