neilenns / node-deepstackai-trigger

Detects motion using Deepstack AI and calls registered triggers based on trigger rules.
MIT License
165 stars 28 forks source link

Glob pattern in trigger.watchPattern doesn't work... #412

Closed salcio closed 3 years ago

salcio commented 3 years ago

Describe the bug When trying to use a glob pattern like '/aiinput/*/Dog.jpg' in trigger.watchPattern exeption in verifyTriggerWatchLocation method is raised ( Unable to read contents of watch folder ${trigger.watchPattern} for trigger ${trigger.name}. Check and make sure the image folder is mounted properly. ${e})

Log entries Unable to read contents of watch folder ${trigger.watchPattern} for trigger ${trigger.name}. Check and make sure the image folder is mounted properly. ${e}

Installation details

Additional context

neilenns commented 3 years ago

Ahhhh good catch, fascinating. Totally forgot that glob patterns are a thing when I added that check because of the number of people specifying incorrect folder locations.

neilenns commented 3 years ago

I finally remembered this 😂 My bad! This is merged. Would you mind changing to the dev image in your docker config and confirming it works?

salcio commented 3 years ago

I'm not able to change that easily on my environment as I'm using image with my changes for archiving. but my image contains the changes from this issue and it works.

neilenns commented 3 years ago

Ok thanks!


From: salcio notifications@github.com Sent: Tuesday, January 19, 2021 12:40:08 PM To: danecreekphotography/node-deepstackai-trigger node-deepstackai-trigger@noreply.github.com Cc: Neil Enns info@danecreekphotography.com; State change state_change@noreply.github.com Subject: Re: [danecreekphotography/node-deepstackai-trigger] Glob pattern in trigger.watchPattern doesn't work... (#412)

I'm not able to change that easily on my environment as I'm using image with my changes for archiving. but my image contains the changes from this issue and it works.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/danecreekphotography/node-deepstackai-trigger/issues/412#issuecomment-763125747, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACIVHFQC5XMIUJ7RHI7QTRLS2XU2RANCNFSM4V5Q52LQ.