Page 1 of 1

@ALERT_PATH has old data

Posted: Sun Sep 03, 2023 7:24 am
by ZSasha
Hi guys,

wondering if someone else came across this strange problem.
I setup a script to send me an alarm and the picture that triggered the alarm via pushover (following published manual here).
Occasionally I hit this problem - when the camera sees something it send a notification with the correct date/time but the picture it attaches is from the old alarm.
To debug this further I also run a simple .bat file that saves the current date, time and value of @ALERT_PATH into a txt file.

Todat I got a notification saying that camera "vigigarage" deteced "nothing" at 11:44:26.821
This message indeed was delivered at 11:44 but the image that it had attached was taken two days ago!

I checked my debug file and found this:

Code: Select all

"New run at:" 
Sun 03/09/2023 
11:44
Got argument:C:\BlueIris\Alerts\vigigarage.20230901_180409.0.3-1.jpg 
===================================== 
"New run at:" 
Sun 03/09/2023 
13:40
Got argument:C:\BlueIris\Alerts\vigigarage.20230903_114426.0.3-1.jpg 
===================================== 
In this particular instance when it was triggered at 11:44 the content of @ALERT_PATH was taken from a few days ago - 20230901_180409
However when it was triggered the second time - the content of @ALERT_PATH was set from the previous event - 20230903_114426 (exactly 11:44:26)

I can confirm I have "Hi-Res JPEG files" option selected when triggered.

Did I just miss something, any option I need to select/check/tick?


I am pretty much ready to write another script that would capture the image directly from BI URL but it won't have an overlay with marked movement I guess.

Thank you!!

Re: @ALERT_PATH has old data

Posted: Sat Sep 09, 2023 5:38 am
by ZSasha
So - no ideas? Anyone, please?

Here is what I got today:
Screenshot_20230909-152108.jpg
Screenshot_20230909-152108.jpg (191.76 KiB) Viewed 3325 times
Three separate alerts.
Each alert has a picture from the previous alert so like @ALERT_PATH was updated either after the alert was sent or with some delay.
It was NOT a delay in deliverying the notification - timestamp on the notification matches the time when it arrived.

Here are my settings for this camera - maybe you could spot some obvious mistake I made?:
01.jpg
01.jpg (71.09 KiB) Viewed 3325 times
02.jpg
02.jpg (106.35 KiB) Viewed 3325 times

Re: @ALERT_PATH has old data

Posted: Sat Sep 09, 2023 5:42 am
by ZSasha
04.jpg
04.jpg (57.37 KiB) Viewed 3325 times
03.jpg
03.jpg (67.18 KiB) Viewed 3325 times
Email alerts come with perfectly correct pictures.

Re: @ALERT_PATH has old data

Posted: Sat Sep 09, 2023 9:19 am
by TimG
I'm afraid it's one for Support, but - is the old image the latest jpg image for that camera found in that C:\BlueIris\Alerts\vigigarage folder when this happens ?

Re: @ALERT_PATH has old data

Posted: Sat Sep 09, 2023 7:10 pm
by IAmATeaf
Do you guys save images in trigger? I used to ages ago but then found 10s of thousands of image in the designated folder so unticked the option for all my cams.

What is the benefit of saving a trigger image?

Re: @ALERT_PATH has old data

Posted: Sun Sep 10, 2023 12:38 pm
by Pogo
TimG wrote: Sat Sep 09, 2023 9:19 am I'm afraid it's one for Support...
Or a careful review of the script.