ZoneMinder / pyzm

Python API, Log, Event Server and Memory wrapper for ZoneMinder
GNU General Public License v2.0
31 stars 20 forks source link

Update event names/notes #10

Closed tranzmatt closed 3 years ago

tranzmatt commented 3 years ago

I'd like to be able to use pyzm to update an event's name or notes. Is that possible? I can get an event name(). How can I set it?

pliablepixels commented 3 years ago

For now, you'll have to go low and use _make_request - See https://github.com/pliablepixels/zmeventnotification/blob/master/hook/zm_detect.py#L780-L831 - I added support in zm_detect.py to update notes with the detection string.