Apr-03-2018, 08:46 AM
Nothing happens when I start script Start monitoring if I make photo cell dark nothing back to light nothing if I do it again I can hear motor try to start(real short)Kinda acts like open is closed and closed is open. When led on photocell is on Normally door open before script reads close
Output:================== RESTART: /home/pi/Desktop/buran4-1-c.py ==================
Start monitoring
Night. Close door
Start motor. Time is 03 Apr 2018 04:38:00.242837
STOP. Door closed. Time is 03 Apr 2018 04:38:00.325023
Day. Open door
Start motor. Time is 03 Apr 2018 04:38:40.633307
STOP. Door open. Time is 03 Apr 2018 04:38:40.713918
Traceback (most recent call last):
File "/home/pi/Desktop/buran4-1-c.py", line 55, in <module>
time.sleep(delay) # you may change this or replace it with just pass
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/Desktop/buran4-1-c.py", line 57, in <module>
except KeyboardInterupt:
NameError: name 'KeyboardInterupt' is not defined