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
Webhook replaces Command #1062
Comments
@dgomes you're right; in fact, what motionEye does is to look for the word "webhook" in the list of commands to execute and, if found, considers that the command is in fact a webook configuration. We need to revise this and find a better way to tell regular commands from webooks. |
Can't this "automation" be simply disabled ? What was the initial purpose ? |
@dgomes Motion exposes an option called e.g. |
@ccrisan thank you for your insights :) in the current implementation, motioneye will simply call webhook and command one after the other, as commands as separated by ; in the on_movie_end call. To overcome this issue I've created a no operation webhook (NOOP), but I don't see why MotionEye couldn't simply remove the webhook call when no webhook is defined. Am I missing something ? |
@dgomes the problem is the presence of the word "webhook" in your URL. For now you can try change that to something else and it will work. |
I cannot change the URL. I can work a PR with a solution if you guide me towards the proper behaviour. |
Having the same issue here on motioneye in docker. @dgomes solution of a dummy webhook entry doesn't work for me either - motioneye disables my command no matter what. Wouldn't a good solution be to enable motioneye to upload files with the webhook option? |
For the prosperity of the internet, you can solve this by inserting a backslash in the middle of "webhook". Motion doesn't move the command to a webhook, and the backslash is escaped at some point before the command is run. My command for home assistant became:
|
With your solution now the image from motioneye is still working.
Now i configure a appdaemon dashboard where i need the image also. on widget_type the different posible camera entry like mjpeg / push does not work The camera.push option get an image, so this image is available in system. And how it is possible to debug appdaemon to see what happend? i hope my description is readable and will hold enough Informations for your to help. I dont find at www more information for motioneye and appdaemon using push. Thank you for your assistant. |
If your HA is running on https it will not display frame from http. So try |
Running:
motionEye Version | 0.39.3
Motion Version | 4.1.1
OS Version | Ubuntu 18.04
Issue
Whenever I setup "Run a command" with a command such as:
Motioneye disables my command and moves it into the web hook URL. Unfortunantely the webhook will not POST my image.
Expected behaviour
Leave "Run a command" alone
The text was updated successfully, but these errors were encountered: