Open jubishop opened 1 month ago
so at least on my machine, line 207 of eventlistener.py needs to become:
datetime.strptime(created_at, "%Y-%m-%dT%H:%M:%SZ")
sorry i'm too much of a python noob to know how to run your tests to make a proper git commit here. i just know changing that line makes it work for me. my guess is, looking at the format that was failing, that for whatever reason my device is not providing milliseconds (thus no .%f at the end of the strptime format). You could check for that using a regex and then run the right one, or put this first one in a try and then run the second in a catch (or whatever the equivalent is in python). in any case, thanks for this library! once i fixed that line, it's working great for me to listen for events and then trigger a recording with a different security camera via ZoneMinder.
from running the
listen
command, on every event i get on the command line: