Page 1 of 1

Cynical SecuritySpy Plugin request: Animal Detection

PostPosted: Fri Feb 10, 2023 4:08 pm
by boisy
Perry,

Do you plan on adding an option in the drop down to detect Animal motion? I see that's detected in the latest version of SecuritySpy.

Re: Cynical SecuritySpy Plugin request: Animal Detection

PostPosted: Sat Feb 11, 2023 4:54 pm
by durosity
I've not used SS in a while, but still have a valid licence for it mostly replaced by Unifi Protect).. does the animal detection work well.. and does it detect individual animals?

Re: Cynical SecuritySpy Plugin request: Animal Detection

PostPosted: Sat Feb 11, 2023 5:19 pm
by boisy
I haven't exercised it enough to know. "Animal" is now an option along with "Vehicle" and "Human" so I just checked it.

Re: Cynical SecuritySpy Plugin request: Animal Detection

PostPosted: Sun Feb 12, 2023 9:38 am
by boisy
I made the changes myself on my local copy of the plugin by adding the lines with "animal" in the following files:

plugin.py:

Code: Select all
DETECTION_REASONS = [
        ("any",                 "Anything"),
        ("animal",              "Animal detected in camera picture"),
        ("human",               "Human detected in camera picture"),
        ("vehicle",             "Vehicle detected in camera picture"),
        ("motion",              "Other motion in camera picture"),
        ("manual",              "Triggered manually"),
        ("audio",               "Sound detected"),
        ("applescript", "Triggered by Applescript"),
        ("camera",              "Reported by camera"),
        ("crosscamera", "Triggered by another camera"),
        ("web",                 "Triggered via web interface"),
]

spy/core.py:

Code: Select all
# motion report codes (translated to string sets)
MOTION_CODES = {
        1: "motion",
        2: "audio",
        4: "applescript",
        8: "camera",
        16: "web",
        32: "crosscamera",
        64: "manual",
        128: "human",
        256: "vehicle",
        512: "animal",
}

Re: Cynical SecuritySpy Plugin request: Animal Detection

PostPosted: Mon Feb 13, 2023 6:50 pm
by durosity
Nice work! I’ll have to have a look at it, see if I can get it to play nice with unifi protect.


Sent from my iPhone using Tapatalk Pro

Re: Cynical SecuritySpy Plugin request: Animal Detection

PostPosted: Sun May 14, 2023 6:40 am
by boisy
Hey Perry,

Your latest release of this plug-in didn't incorporate the modifications I made above to allow animal detection. When I updated to your plug-in, it blew away the changes I made to the local copy here.

Could you kindly add animal detection to the plug-in so that it's there the next time you release it?