Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[support] dlandon - Zoneminder 1.36

Featured Replies

Hi, I received some emails about the new docker image that was released with a (mostly) functioning machine learning system along with the ES.

 

I though I'd post a message so that everyone trying it out can follow along (I am the author of the ES+hook system):

 

1. When the ES (Event Server =/usr/bin/zmeventnotification.pl) sends a notification, you can choose to embed a picture in the notification (can't be http or self signed HTTPS). That URL setting is picture_url in /etc/zm/zmeventnotification.ini. Note that the default certificates generated by this docker image will not work if you want picture notifications. You need to replace them with proper certificates like those from Lets Encrypt.

 

2. If you want to enable "hook_pass_image_path" path in zmeventnotification.ini, you need to be running ZM 1.33 or above. This docker image (as of Sep 20, 2019) is for 1.32 - the last stable ZM release. In short, it won't work. What this option actually does is when the ES invokes the hook script (/usr/bin/detect.py), it lets the script know the file system path of the current event that is being passed for object detection. This path is retrieved by the ES using a feature only available in ZM 1.33+. When /usr/bin/detect.py runs & if it finds an object of interest in the image(s), then it will write an image file to that path called 'objdetect.jpg' which is basically the image where it found an object and a bounding box around the object of interest. This is then shown both in zmNinja and ZoneMinder as an image with boxes around the object. None of this will work for you in ZM 1.32. It will magically start working when this docker image  is upgraded to the next version of ZM.

 

3. Next up, after detection is run, and it found something, the result is sent back to the ES. Lets say its "detected: car". This is prefixed to the existing motion notes of ZM in the DB. This feature works in 1.32 as well as is _not_ related to hook_pass_image_path at all.

 

4. If you are having issues, please read the documentation on ES and the hooks - including how to run it in manual mode and enabling debug logs 

 

Yes, it's a little convoluted the way it is today. I could have made it simpler, but its what it is at the moment :)

 

I don't follow this forum at all  - stopped by to clarify a few things. If you have questions specific to the machine learning stuff, you may want to ask in the ZoneMinder slack forum incase you are not able to resolve it here.

 

Links of interest:

Event Notification docs

Machine Learning Hooks

ZM Slack Channel Joining Link

 

 

 

 

 

 

 

 

 

 

 

Edited by Pliable Pixels

  • 3 weeks later...
  • Replies 1.3k
  • Views 300.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I realize that Zoneminder 1.32.0 has been released and I will eventually update the Docker for this new release.  Please don't try to lobby me to update the Docker right away.  I won't update it for a

  • There is an update to the Zoneminder Docker.  This is still version 1.30.4.  I will be working on 1.32 soon. The update included: zmeventnotification updated to v1.6.  The zmeventnotificati

  • Map an external port to the Zoneminder docker port 80.

Posted Images

Hello, I am running Unraid /Zoneminder 1.32 When I set the system up I had failed to set the correct timezone in Unraid, it defaulted to Pacific time.

I installed the Zoneminder docker and it is wonderful except for my error. the events are marked as Pacific time.

I have changed the Unraid/Settings/Date and Time to the correct setting, restarted the Zoneminder docker, restarted the server but alas my screw up remains.

I am not an expert at this by any measure. I searched the forum and everything I found said that there are 3 php.ini files that need to have the same entry's, unfortunately I can't find the php.ini files.

 

Any help is appreciated.

 

Chas

  • Author
56 minutes ago, kysdaddy said:

Hello, I am running Unraid /Zoneminder 1.32 When I set the system up I had failed to set the correct timezone in Unraid, it defaulted to Pacific time.

I installed the Zoneminder docker and it is wonderful except for my error. the events are marked as Pacific time.

I have changed the Unraid/Settings/Date and Time to the correct setting, restarted the Zoneminder docker, restarted the server but alas my screw up remains.

I am not an expert at this by any measure. I searched the forum and everything I found said that there are 3 php.ini files that need to have the same entry's, unfortunately I can't find the php.ini files.

 

Any help is appreciated.

 

Chas

Click on the "Basic View" switch on the docker page to switch to advanced view in the upper right corner and then click "Force Update" on the docker.  Check the timezone on the docker start command and see if it is the correct timezone.

  • Author
On 10/12/2019 at 10:39 AM, ideaman924 said:

Hi @dlandon, There's a problem with the generated certificate - Chrome does not allow access to Zoneminder at all.

image.thumb.png.101cd3838946b6ba91a732a6092f6088.png

I'm guessing it's because of this? https://stackoverflow.com/questions/43665243/invalid-self-signed-ssl-cert-subject-alternative-name-missing/56530824#56530824

 

Any chance the generation could be fixed so that it includes that parameter?

Verify the 'ServerName' file in the appdata/zoneminder/keys/ folder contains 'localhost'.

1 hour ago, dlandon said:

Click on the "Basic View" switch on the docker page to switch to advanced view in the upper right corner and then click "Force Update" on the docker.  Check the timezone on the docker start command and see if it is the correct timezone.

Thank you that worked perfectly!

struggling to setup zoneminder in docker. Please help

I keep getting below error as soon as I try to add a camera (wyze). shm shows 0% on the UI

 

FAT-zm_monitor.cpp/522 [Can't open memory map file /dev/shm/zm.mmap.2, probably not enough space free: Permission denied]

zmwatch[4566]: ERR [Memory map file '/dev/shm/zm.mmap.2' does not exist.  zmc might not be running.]
 

  • Author
14 minutes ago, djkumar72 said:

struggling to setup zoneminder in docker. Please help

I keep getting below error as soon as I try to add a camera (wyze). shm shows 0% on the UI

 

FAT-zm_monitor.cpp/522 [Can't open memory map file /dev/shm/zm.mmap.2, probably not enough space free: Permission denied]

zmwatch[4566]: ERR [Memory map file '/dev/shm/zm.mmap.2' does not exist.  zmc might not be running.]
 

Sounds like a shm memory issue.  What value do you have set for shm in the docker template?  Click on "Show More Settings" to see.  How much memory do you have in your server?

doesnt seem to be ..i was trying with below docker compose file . Switched to your steps and it is working fine.

Not sure what is wrong. I am going to try again with docker compose and try again 

 zoneminder:
    privileged: true
    image: dlandon/zoneminder
    ports:
      - 8443:443
      - 9000:9000
    networks:
      - web
    environment:
      - TZ=${TZ}
      - INSTALL_HOOK="0"
      - INSTALL_FACE="0"
      - INSTALL_TINY_YOLO="0"
      - INSTALL_YOLO="0"
      - PUID=${PUID}
      - PGID=${PGID}
      - SHMEM="50%"
    volumes:
      - ${USERDIR}/docker/zoneminder/config:/config:rw
      - ${USERDIR}/docker/zoneminder/data:/var/cache/zoneminder
    labels:
      - traefik.enable=true
      - traefik.frontend.rule=Host:jayzm.${DOMAINNAME}
     # - traefik.frontend.redirect.entryPoint=https
      - traefik.docker.network=web
      - traefik.port=80
 

i tried with docker-compose - have same issue. rebuilding with direct docker pull.

On 10/20/2019 at 5:53 AM, dlandon said:

Verify the 'ServerName' file in the appdata/zoneminder/keys/ folder contains 'localhost'.

Yup, it's there. I switched back to Firefox anyway so it's a non-issue, though.

Firefox gives a warning but it lets me continue at least by adding an exception.

Edited by Guest

  • 3 weeks later...

With the recent update, I'm seeing this:


*** Running /etc/my_init.d/20_apt_update.sh...
Err:1 http://ppa.launchpad.net/iconnor/zoneminder-1.32/ubuntu xenial InRelease
Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed out
Err:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Unable to connect to ppa.launchpad.net:http:

Edited by joelones

  • Author
9 minutes ago, joelones said:

With the recent update, I'm seeing this:

 


*** Running /etc/my_init.d/20_apt_update.sh...
Err:1 http://ppa.launchpad.net/iconnor/zoneminder-1.32/ubuntu xenial InRelease
Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed out
Err:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Unable to connect to ppa.launchpad.net:http:

 

Working for me.  Try again.  Might be a temporary issue.

30 minutes ago, dlandon said:

Working for me.  Try again.  Might be a temporary issue.

Yeah I think it was. Thanks.

Can someone make a video showing how to add ip camera? Ive tried everything. I have blueiris running on vm and ive also tried some of the settings in blueiris and notting is working.

zone.png.d8620e03580d6133e10dffdb191ed6a9.png

zone1.png.8722da3449f003e936aaf6e53fd30f1b.png

Edited by M4ST3R-OWNER

  • Author
28 minutes ago, M4ST3R-OWNER said:

Can someone make a video showing how to add ip camera? Ive tried everything. I have blueiris running on vm and ive also tried some of the settings in blueiris and notting is working.

zone.png.d8620e03580d6133e10dffdb191ed6a9.png

zone1.png.8722da3449f003e936aaf6e53fd30f1b.png

That screen doesn't look like 1.32.

Zoneminder.png.58759db0bb29302a9fa7f384c08b833b.png

I am having a little bit of an issue with Zoneminder taking up a lot of space in my docker container and I am not sure why.  Here is my docker container sizes below.

 

image.png.4738970c36e75972feff240718bea19a.png

 

Also here is my config file...

 

image.thumb.png.5c5ab5044d4dc7120c11690274aa84eb.png

 

bere is one of the errors i am getting inside of zoneminder which i believe is contributing to it

 

DiskSpace: Event does not exist at /var/cache/zoneminder/events/4/2019-11-17/231099:ZoneMinder::Event: Cause => Continuous DefaultVideo => 231099-video.mp4 EndTime => 2019-11-17 06:20:00 Frames => 501 Height => 1072 Id => 231099 Length => 247.29 MonitorId => 4 Name => Event- 231099 Scheme => Medium StartTime => 2019-11-17 06:15:53 StateId => 1 Videoed => 1 Width => 1920

 

Edited by mgranger

  • Author
7 hours ago, mgranger said:

I am having a little bit of an issue with Zoneminder taking up a lot of space in my docker container and I am not sure why.  Here is my docker container sizes below.

 

image.png.4738970c36e75972feff240718bea19a.png

 

Also here is my config file...

 

image.thumb.png.5c5ab5044d4dc7120c11690274aa84eb.png

 

bere is one of the errors i am getting inside of zoneminder which i believe is contributing to it

 


DiskSpace: Event does not exist at /var/cache/zoneminder/events/4/2019-11-17/231099:ZoneMinder::Event: Cause => Continuous DefaultVideo => 231099-video.mp4 EndTime => 2019-11-17 06:20:00 Frames => 501 Height => 1072 Id => 231099 Length => 247.29 MonitorId => 4 Name => Event- 231099 Scheme => Medium StartTime => 2019-11-17 06:15:53 StateId => 1 Videoed => 1 Width => 1920

 

You are storing your data on a UD mounted disk.  I suspect there is a problem with that and the events are being stored in the docker image.  You should map your data to an array share.  Why are you using a UD disk for events?

2 hours ago, dlandon said:

You are storing your data on a UD mounted disk.  I suspect there is a problem with that and the events are being stored in the docker image.  You should map your data to an array share.  Why are you using a UD disk for events?

My thinking although it is probably wrong was that by using a UD the parity disks would not be spinning all the time.  I understand that it is outside the array so I would lose all the data if the disk went bad but I was willing to live with that.  But I see this is causing my docker image to become full.

My thinking although it is probably wrong was that by using a UD the parity disks would not be spinning all the time.  I understand that it is outside the array so I would lose all the data if the disk went bad but I was willing to live with that.  But I see this is causing my docker image to become full.


I use a UD disk and it works great for event storage.
8 minutes ago, Sic79 said:

 


I use a UD disk and it works great for event storage.

 

Is there something that you had to change to get event storage on UD disk.

Is there something that you had to change to get event storage on UD disk.


I just pointed to the UD disk in the docker settings. And then I checked the storage settings in the docker so it was ok there.
  • 2 weeks later...
On 10/19/2019 at 5:53 PM, dlandon said:

Verify the 'ServerName' file in the appdata/zoneminder/keys/ folder contains 'localhost'.

I have the same issue and localhost is present in the ServerName file. I cannot get past it to even get going. 

  • Author
31 minutes ago, ridewithjoe said:

I have the same issue and localhost is present in the ServerName file. I cannot get past it to even get going. 

What problem are you having?

Chrome is throwing NET::ERR_CERT_REVOKED error when trying to access the zoneminder url. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.