hjoon0510 / SmartSecretary

:partly_sunny: [KOI 2018] SmartSecretary tells users current weather and important schedule in front of door as a secretary.
Other
2 stars 1 forks source link

[완료, PIR Sensor] auto start error at boot time #14

Open lsy0314 opened 6 years ago

lsy0314 commented 6 years ago
lsy0314 commented 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"
lsy0314 commented 6 years ago