Kalyax 2 years ago
parent
commit
932a000e6a
  1. 2
      api/set_light.php
  2. 1
      scripts/temp.sh

2
api/set_light.php

@ -1,5 +1,5 @@
<?php
$light = $_POST["light"];
$output = shell_exec('bash ../scripts/led.sh '+$light);
$output = shell_exec('bash ../scripts/led.sh '.$light);
echo $output
?>

1
scripts/temp.sh

@ -1 +0,0 @@
echo "test"
Loading…
Cancel
Save