Path to status.json in config
This commit is contained in:
		@@ -2,3 +2,4 @@
 | 
			
		||||
$active = false;
 | 
			
		||||
$consumer_key = 'asdf';
 | 
			
		||||
$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);
 | 
			
		||||
 | 
			
		||||
// Write this shit
 | 
			
		||||
file_put_contents("../status.json", $json);
 | 
			
		||||
file_put_contents($statusJSONFile, $json);
 | 
			
		||||
 | 
			
		||||
// Show what we've done!
 | 
			
		||||
echo($json);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user