ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
412 stars 128 forks source link

Configured image path not recognized #330

Closed zakamik closed 3 years ago

zakamik commented 3 years ago

Event Server version 6.0.5

The version of ZoneMinder you are using: v1.34.22

What is the nature of your issue After configuring new install of ES, I make test run: sudo -u www-data /mnt/video/zmeventnotification/bin/zm_event_start.sh 282547 2

and get: 10/23/20 22:09:45 zmesdetect_m2[29034] ERR zm_detect.py:239 [Error downloading files: [Errno 2] No such file or directory: '/var/lib/zmeventnotification/images/282547-alarm.jpg']

/etc/zm/objectconfig.ini: base_data_path=/mnt/video/zmeventnotification

If I create /var/lib/zmeventnotification/images folder, ES runs with no issues. However I expect files to be placed in the specified directory, not default one.

pliablepixels commented 3 years ago

Do you have an image_path specific in objectconfig.ini? You need to add an image_path attribute under general and make it

image_path={{base_data_path}}/images

I did not add it to the default config. I should.

zakamik commented 3 years ago

Thank you, adding this configuration parameter has helped