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

telegram notifications skip every 10 minutes feature #320

Open
xjustbmw opened this issue May 4, 2022 · 19 comments
Open

telegram notifications skip every 10 minutes feature #320

xjustbmw opened this issue May 4, 2022 · 19 comments

Comments

@xjustbmw
Copy link

xjustbmw commented May 4, 2022

Is it possible to receive only one positive notification every 10 minutes (for all cameras).
The rest should be skipped.
I have several cameras setup and when Im outside the phone beeps all the time while I move :)
Also made a tasker profile to silence the phone , but the battery drains like crazy from these photos coming in:)

Tried playing with cooldown time, but the photos are just delayed in this way.

@VorlonCD
Copy link
Owner

VorlonCD commented May 4, 2022

For any of the recent versions you can simply reply to the telegram message PAUSE 30 to pause all cameras 30 minutes. You may have to ask botfather to disable /setprivacy for this to work though.
https://github.com/VorlonCD/bi-aidetection/tree/master/src/UI/Installer

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

instant reply :)
many thanks for your help
i was using an old version of aitool indeed :) october 2020 (last release)
with latest deepstack im getting error when trying to start, yet the deepstack in debug mode seems to start , but http://127.0.0.1:50000/v1/vision/detection seems to load a 404 page
is it a different url now ?

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

the debug log of deepstack is this:
DeepStack: Version 2022.01.01
/v1/vision/detection


v1/backup

v1/restore

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

all good
had to manually kill server.exe

@VorlonCD
Copy link
Owner

VorlonCD commented May 4, 2022

Does that still happen with latest AITOOL version? It supports the latest 'Windows' deepstack release 2022.01.01.

@VorlonCD
Copy link
Owner

VorlonCD commented May 4, 2022

The latest version of deepstack doesnt use SERVER.EXE so you may have an old version in the mix. It does use DEEPSTACK.EXE, and REDIS-SERVER.EXE

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

i actually just updated deepstack as well.
i think server.exe was left behind running :)
redis-server / deepstack are running now
i will test the PAUSE feature, that sends message back to aitool or is it a telegram feature to stop the bot for x minutes ?

@VorlonCD
Copy link
Owner

VorlonCD commented May 4, 2022

Sends back to AITOOL. When working correctly upon startup AITOOL will send you a list of supported commands such as REBOOT, SHUTDOWN, PAUSE, etc.

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

just got the message back that all cameras are paused for x minutes :)
this is the only way to stop it sending messages ?

@VorlonCD
Copy link
Owner

VorlonCD commented May 4, 2022

No, cooldown should be working of course, not sure why you were having trouble. Try 600 or 1200 seconds. Also, you can simply go to Actions, and uncheck "Send alert images to telegram" if you dont want it to send images at all. And "Dynamic masking" will stop sending alerts if it keeps seeing an object in the same place, like a car in your driveway.

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

i was getting all the detected images but with delays of the cooldown set time
i will try it again in the new version, hopefully they get skipped
will report back

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

I tested again the general cooldown of the settings menu of telegram
the pictures are indeed just delayed by the cooldown time, not skipped
i receive all of them (lot later than they were taken) with cooldown seconds delay between them
can you please check ?

@VorlonCD
Copy link
Owner

VorlonCD commented May 4, 2022

Oh, maybe you want to use the per-camera COOLDOWN setting instead of the telegram specific one? Cameras tab > Action settings > Cooldown Seconds

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

auch :) I will try that as well. In the last stable version i think it behaved the same.

but, I have about 12 cameras pointing at the same garden :) that will trigger 12 times untill all of them ... cooldown :)

@VorlonCD
Copy link
Owner

VorlonCD commented May 4, 2022

Hmm try turning off the QUEUED checkbox for each camera. That could be related since queued actions behave a little different. If you hover over the checkbox you will see it says "it is possible this will affect how the telegram cooldown feature works"

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

indeed. queue was on for all cameras
you think this also affects the main telegram cooldown setting ?

@VorlonCD
Copy link
Owner

VorlonCD commented May 4, 2022

yes it does affect that. When queued it simply waits the cooldown time but doesnt actually skip it - just like you are seeing.
What I really need to set up are camera GROUPS so multiple cameras can have the same cooldown timing.

@xjustbmw
Copy link
Author

xjustbmw commented May 4, 2022

Yes. that would be amazing. :)
Also groups can handle same object detection : example cars in one, persons in others :)

I remember we spoke about 1 year ago about the object minimum size (I had in cats falsely detected as persons by deepstack, and was able to filter them out by their size after you added the feature)

Will test tomorrow the cooldown without queue. quite sure it will work though :)

@xjustbmw
Copy link
Author

xjustbmw commented May 6, 2022

little updated as promised. all is working perfectly:)

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