Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes user_motion_code.userMotionCode not running #132

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions source/pi-timolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3010,19 +3010,19 @@ def timolo():
)
logging.info("Next Pano at %s Waiting ...", next_pano_at)

if motionFound and motionCode:
# ===========================================
# Put your user code in userMotionCode() function
# In the File user_motion_code.py
# ===========================================
try:
user_motion_code.userMotionCode(filename)
dotCount = showDots(MOTION_DOTS_MAX)
except ValueError:
logging.error(
"Problem running userMotionCode function from File %s",
userMotionFilePath,
)
if motionFound and motionCode:
# ===========================================
# Put your user code in userMotionCode() function
# In the File user_motion_code.py
# ===========================================
try:
user_motion_code.userMotionCode(filename)
dotCount = showDots(MOTION_DOTS_MAX)
except ValueError:
logging.error(
"Problem running userMotionCode function from File %s",
userMotionFilePath,
)
else:
# show progress dots when no motion found
dotCount = showDots(dotCount)
Expand Down