BARRAUX Arthur 2 years ago
parent
commit
ee208430b0
  1. 5
      api/light.php
  2. 4
      api/temp.php
  3. 0
      scripts/Test extension RPI.py
  4. 0
      scripts/blink.sh
  5. 0
      scripts/get_temp.sh
  6. 1
      scripts/temp.sh
  7. 1
      start_dev.sh

5
api/light.php

@ -0,0 +1,5 @@
<?php
$light_id = $_GET["d"]
$output = shell_exec('bash ../scripts/temp.sh '+$light_id);
echo $output
?>

4
api/temp.php

@ -0,0 +1,4 @@
<?php
$output = shell_exec('bash ../scripts/temp.sh');
echo $output
?>

0
Test extension RPI.py → scripts/Test extension RPI.py

0
blink.sh → scripts/blink.sh

0
get_temp.sh → scripts/get_temp.sh

1
scripts/temp.sh

@ -0,0 +1 @@
echo "test"

1
start_dev.sh

@ -0,0 +1 @@
php -S localhost:8080 -t .
Loading…
Cancel
Save