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

not working #6

Open
CHHE-ledtec opened this issue Sep 26, 2024 · 3 comments
Open

not working #6

CHHE-ledtec opened this issue Sep 26, 2024 · 3 comments

Comments

@CHHE-ledtec
Copy link

hi

i downloded and added the sh file to the commands folder and created the folder.

activate motion detection and added the task

execute command

telegram_sendphotot

with parameters

{ID} '{MSG}' {BASE64IMAGE}

but folder is empty

telegram bot is reciving/sending nothing

logs only tells me

8:06:40 AM Entre: LoadJson: getcameragrabs
8:06:40 AM Entre: LoadJson: getcameragrabs
8:08:07 AM Entre: LoadJson: getcameragrabs
8:08:07 AM Entre: LoadJson: getcameragrabs
8:08:10 AM Entre: LoadJson: getcameragrabs
8:08:10 AM Entre: LoadJson: getcameragrabs
8:08:23 AM Entre: LoadJson: getcameragrabs
8:08:23 AM Entre: LoadJson: getcameragrabs
8:08:26 AM Entre: LoadJson: getcameragrabs
8:08:26 AM Entre: LoadJson: getcameragrabs

and thats it

i am stuck soo need assistance

@CHHE-ledtec
Copy link
Author

i am not getting any errors in the logs

@alexbn71
Copy link
Owner

alexbn71 commented Sep 26, 2024

Hi

to be sure that your detecor is set correctly, did you get alerts here?

image

If AgentDvr try to run the script you should see something like this in the log:

08:40:10 MyCamera: ProcessAlertEvent: Processing EXE (telegram_sendphoto.sh)
08:40:10 RunScript: /bin/bash -c "/AgentDVR/Commands/telegram_sendphoto.sh 28 'Manual Alert' >>>etc etc
08:40:12 RunScript: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 >>>etc etc
08:40:12 RunScript: {"ok":true,"result":{"message_id" >>>etc etc

I think that your AgentDVR is not trying to execute the script since you should see at least some errors...

@CHHE-ledtec
Copy link
Author

yes i am getting alert have over 100 allerts and omages in agentdvr

but as you say i dont see any action of exectuing the script .

testes a thng just now ..

the action was set to IF alert in zone 1 execute command

i changed it to IF Motion Detected in zone 1 execute command <--- and thiw works now i get execution of the script

but getting

7:18:33 AM RunScript: /Agent/Commands/telegram_sendphoto.sh: line 15: /AgentDVR/Commands/grabs/grab64_3.jpg: No such file or directory /agent/Commands/telegram_sendphoto.sh: line 16: /AgentDVR/Commands/grabs/grab64d_3.jpg: No such file or directory curl: (26) Failed to open/read local data from file/application

i tried changing to lower case in the script but i am still getting

RunScript: /agent/Commands/telegram_sendphoto.sh: line 15: /agentDVR/Commands/grabs/grab64_3.jpg: No such file or directory /agent/Commands/telegram_sendphoto.sh: line 16: /agentDVR/Commands/grabs/grab64d_3.jpg: No such file or directory curl: (26) Failed to open/read local data from file/application

Edit : found the issue in the .sh file the folder is named agentDVR when it only should be agent in the docker version.

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

No branches or pull requests

2 participants