Open CHHE-ledtec opened 2 months ago
i am not getting any errors in the logs
Hi
to be sure that your detecor is set correctly, did you get alerts here?
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...
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.
Hello @alexbn71 thank you for this script.
Unfortunately, the connection with Telegram doesn't work for me. No content arrives in the chat.
Do you have any idea what I should check?
agentDVR is used as a docker on unraid surver.
Hi,
are you sure that the event is triggered in agentdvr? Did you have the captured screenshot visible inside alerts (top right)?
Il ven 18 ott 2024, 11:15 rrbb86 @.***> ha scritto:
Hello @alexbn71 https://github.com/alexbn71 thank you for this script.
Unfortunately, the connection with Telegram doesn't work for me. No content arrives in the chat.
Do you have any idea what I should check?
agentDVR is used as a docker on unraid surver.
— Reply to this email directly, view it on GitHub https://github.com/alexbn71/AgentDVR-Telegram/issues/6#issuecomment-2421933208, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAGQLSRLQN4OXFWQSHIGU3Z4DGTXAVCNFSM6AAAAABO4HPCKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRRHEZTGMRQHA . You are receiving this because you were mentioned.Message ID: @.***>
Hi! Please help i receive next errors in log it means "The specified file cannot be found" i make some correction in telegramsendphoto.sh for example /AgentRemoveDVR/Commands/grabs/grab64${ID}.jpg because path to agent is C:\Program Files\Agent\Commands, not AgentDVR and run again but it not helped and grabs folder is empty please check
19:54:56 Camera 2: ProcessAlertEvent: Processing EXE (telegram_sendphoto.sh)
19:54:56 RunScript: /bin/bash -c "C:\Program Files\Agent\Commands\telegram_sendphoto.sh 2 'Manual Alert'
**blablabla"
19:54:56 ProcessAlertEvent: Не удается найти указанный файл at System.Diagnostics.Process.StartWithCreateProcess
(ProcessStartInfo startInfo) at CoreLogic.Utilities.Helper.RunScript(String filename, String args, Boolean noWindow) at
CoreLogic.Objects.Helpers.AlertProcessor.
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