Skip to content

Commit

Permalink
debugging calibration mode
Browse files Browse the repository at this point in the history
  • Loading branch information
src1138 committed May 23, 2024
1 parent 3339add commit 145f9e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion motioneye_scripts/VMFB-MC.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@
# Logs events as <timestamp>\t<eventType>\t<event>, casts areguments as strings
def logEvent(eventType=None,event=None,pin=None):
#print("Start logEvent()")
timestamp = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
with open("/data/log/VMFB_"+str(datetime.now().strftime("%Y-%m-%d"))+".log", "a+") as file:
file.write(str(datetime.now().strftime("%Y-%m-%d %H:%M:%S")) + " " + str(eventType) + " " + str(event) + " " + str(pin) + "\n")
file.write(timestamp + " " + str(eventType) + " " + str(event) + " " + str(pin) + "\n")
#print("End logEvent()")

# When PIR signal goes high, enables sensors
Expand Down

0 comments on commit 145f9e3

Please sign in to comment.