Open lsy0314 opened 6 years ago
We have to modify /var/www/html/SmartSecretary/motion/pir-sensor.py.
$ git diff
diff --git a/motion/pir-sensor.py b/motion/pir-sensor.py
index eca4686..0138e69 100755
--- a/motion/pir-sensor.py
+++ b/motion/pir-sensor.py
@@ -28,7 +28,7 @@ import time
import os
#----------- Configuration area -------------------------------
-folder = "/var/www/html/motion/"
+folder = "/var/www/html/SmartSecretary/motion/"
GPIO_PIN = 4
count = 0
condition_rain = "Rain\n"