Path to status.json in config

master
Bandie 1 year ago
parent be7608fb95
commit 3fcff9803e
Signed by: Bandie
GPG Key ID: 843D7FA93BA46312
  1. 1
      config.php
  2. 2
      update.php

@ -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);

Loading…
Cancel
Save