Cynical SecuritySpy Plugin request: Animal Detection

To a blind optimist, an optimistic realist must seem like an Accursed Cynic.
User avatar
boisy
Posts: 274
Joined: Tue Jun 25, 2013 12:43 pm

Cynical SecuritySpy Plugin request: Animal Detection

Post 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.
User avatar
durosity
Posts: 4385
Joined: Thu May 10, 2012 3:21 pm
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Cynical SecuritySpy Plugin request: Animal Detection

Post 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?
Computer says no.
User avatar
boisy
Posts: 274
Joined: Tue Jun 25, 2013 12:43 pm

Re: Cynical SecuritySpy Plugin request: Animal Detection

Post 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.
User avatar
boisy
Posts: 274
Joined: Tue Jun 25, 2013 12:43 pm

Re: Cynical SecuritySpy Plugin request: Animal Detection

Post 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",
}
User avatar
durosity
Posts: 4385
Joined: Thu May 10, 2012 3:21 pm
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Cynical SecuritySpy Plugin request: Animal Detection

Post 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
Computer says no.
User avatar
boisy
Posts: 274
Joined: Tue Jun 25, 2013 12:43 pm

Re: Cynical SecuritySpy Plugin request: Animal Detection

Post 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?
Post Reply

Return to “Perry the Cynic”