mirror of
https://github.com/motioneye-project/motioneye.git
synced 2026-03-02 22:57:06 -05:00
"Run a Command" ; "Run a End Command" Question Help Wanted #1893
Labels
No labels
Android app
Arch Linux
CI/CD
CSS
FreeBSD
HTML/HTTP
Home Assistant addon
JavaScript
Python
Raspberry Pi
Stale No Activity 60 Days
bug
code format
dependencies
dev branch
docker
documentation
duplicate
enhancement
feature
help wanted
i18n/l10n
invalid
legacy motionEye
meta
motion
motionEyeOS
notourproblem
python update
question
question
security
troubleshooting
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/motioneye#1893
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lnxdread on GitHub (Feb 21, 2021).
I have motioneye running on a Rasp 3b+
I tried to run a Python script whenever a motion is detected.
/home/pi/motioneye-stuff/motion_info.py
This does not work.
Is this even possible with the "Run a Command" option?
@starbasessd commented on GitHub (Feb 21, 2021):
You may have to prefix your path with
python, python2, or python3 depending on which version of python it was
written in.
Also, instead, you could edit the python script to add as line #1
#!/usr/bin/env python
and set the executable bit
sudo chmod +x /home/pi/motioneye-stuff/motion_info.py
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Sun, Feb 21, 2021 at 6:16 PM lnxdread notifications@github.com wrote:
--
Thanks
Kevin Shumaker
Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel
N38° 19' 56.52"
W85° 45' 8.56"
Semper Gumby
“Don't tell people how to do things. Tell them what to do and let them
surprise you with their results.” - G.S. Patton, Gen. USA
Ethics are what we do when no one else is looking.
Quis custodiet ipsos custodes?
“There is no end to the good you can do if you don’t care who
gets the credit.” - C Powell
You know we're sitting on four million pounds of fuel, one nuclear weapon
and a thing that has 270,000 moving parts built by the lowest bidder. Makes
you feel good, doesn't it?
@lnxdread commented on GitHub (Feb 21, 2021):
You Sir solved my problem.
Make the Script executable and the correct prefix do the job.
python /home/pie/motioneye-stuff/motion_info.pyThanks for your help