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

Conversation

askpatrickw
Copy link

@askpatrickw askpatrickw commented May 18, 2023

fixes #130

The indent was off by one level and user_motion_code.userMotionCode would only run if you were using PANO.

I didn't test every permuation, but with no plugins, default config and uncommenting the prints in userMotionCode, this worked.

023-05-17 22:30:28 INFO     timolo     Motion Triggered Start(239,9)  End(145,21) trackLen=94/50 px

2023-05-17 22:30:30 INFO     takeNightImage 1280x768  TwilightThresh=92/90  MaxISO=800 uses framerate_range
2023-05-17 22:30:34 INFO     writeTextToImage Added White Text [ 1001  20230517_22:30:34 ]
2023-05-17 22:30:34 INFO     writeTextToImage Saved media/motion/mo-cam1-1001.jpg
2023-05-17 22:30:34 INFO     writeCounter Next Counter=1002 ./data/mo-pi-timolo.dat
2023-05-17 22:30:34 INFO     makeRelSymlink Saved at media/recent/motion/mo-cam1-1001.jpg
2023-05-17 22:30:36 INFO     timolo     Waiting for Next Motion Tracking Event ...
User Code Executing from userMotionCode function
file path is media/motion/mo-cam1-1001.jpg
2023-05-17 22:30:37 INFO     timolo     Track Timer 0.30 sec Exceeded. Reset Track
2023-05-17 22:30:40 INFO     timolo     Track Timer 0.30 sec Exceeded. Reset Track
2023-05-17 22:30:41 INFO     timolo     Track Timer 0.30 sec Exceeded. Reset Track
2023-05-17 22:30:44 INFO     timolo     Track Timer 0.30 sec Exceeded. Reset Track

@askpatrickw askpatrickw deleted the fix-130 branch September 11, 2023 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The pi-timolo.py does not executes user motion function, everything works somehow.
1 participant