Cynical SecuritySpy Plugin request: Animal Detection

Posted on
Fri Feb 10, 2023 4:08 pm
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Cynical SecuritySpy Plugin request: Animal Detection

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.

Posted on
Sat Feb 11, 2023 4:54 pm
durosity online
User avatar
Posts: 4339
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Cynical SecuritySpy Plugin request: Animal Detection

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?

Computer says no.

Posted on
Sat Feb 11, 2023 5:19 pm
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: Cynical SecuritySpy Plugin request: Animal Detection

I haven't exercised it enough to know. "Animal" is now an option along with "Vehicle" and "Human" so I just checked it.

Posted on
Sun Feb 12, 2023 9:38 am
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: Cynical SecuritySpy Plugin request: Animal Detection

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",
}

Posted on
Mon Feb 13, 2023 6:50 pm
durosity online
User avatar
Posts: 4339
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Cynical SecuritySpy Plugin request: Animal Detection

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

Computer says no.

Posted on
Sun May 14, 2023 6:40 am
boisy offline
User avatar
Posts: 273
Joined: Jun 25, 2013

Re: Cynical SecuritySpy Plugin request: Animal Detection

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?

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest