Sorry this has taken so long... I didn't see the reply
asker wrote: ↑
Tue Mar 24, 2020 3:25 pm
When you have time, please share any mods you had to make to either pyzm or detection to get it to work - I'll try and incorporate options so the code doesn't have to be touched (I hope you used the updated packages I posted in another thread that allows configuration based overrides in objectconfig.ini)
But I just had to find this thread as I've just updated zmeventnotification and needed to remember what I did to get it working again for use in a freenas jail.
in pyzm/ZMLog.py change
for f in glob.glob(config['conf_path']+'/conf.d/*.conf'):
for f in glob.glob(config['conf_path']+'/zoneminder/*.conf'):
config_table = meta.tables['Config']
log_table = meta.tables['Logs']
config_table = meta.tables['config']
log_table = meta.tables['logs']
and of course in the newer version of objectconfig.ini;
plus fixing config paths in zm_event_start.sh
also a few places where I needed to change the shebang line to #!/usr/local/bin/python3 or bash
I think that's it other than normal configuration.
For ref again, this is zoneminder installed using "pkg install zoneminder" in a (now) Truenas (aka freenas) jail
really not sure how much you could do to sort the overrides tbh, especially for those tables with lower cases and on a smaller userbase like freenas.
But hopefully this helps people.... and I'll use it to refresh my memory next time I update!
I played around a lot today so I might have missed something here, but I'll add anything I spot on the next update too.
Many thanks again for such a great piece of software!