I've recently set up a Ubuntu server and installed a couple of 4k cameras around my home.
I have zoneminder working well and I've got ZMNinja working well on my Note 10+. I was having an issue with Event replays not working in ZMNinja, but I have figured that out and I can now view event footage on my phone.
I have one last thing I think I need to fix. When I get a push notification on my phone it seems like there should be a preview image. I can expand the push notification and there seems to be a spot for the image, but there is no image there.
Anyone have any ideas what I can look at to try and resolve this?
Thanks!
Larry
Should ZMNinja Show Image Preview With Event Notification?
Re: Should ZMNinja Show Image Preview With Event Notification?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Re: Should ZMNinja Show Image Preview With Event Notification?
Thank you very much for that info. I looked around for a while and could not find anything on it.
I have tried various settings in the /etc/zm/zmeventnotification.ini file
I still can not get it to work. I currently have the image url example hardcoded in the .ini file that is used in the link you provided. Could you take a look at my settings below and let me know if you see anything?
FYI, I currently do NOT have a SSL installed. I also have DDNS setup and running correctly on the server. (alarm images did not work before DDNS was setup either) I have replaced part of my image_url and ZM password with HIDDEN bellow for security.
Also, nothing is jumping out at me in logs in the ninja app, or zm.
===
# include picture in alarm (mobile devices only) (default: yes).
include_picture = yes
# URL to access the event image
# This URL can be anything you want
# What I've put here is a way to extract an image with the highest score given an eventID (even one that is recording)
# This requires the latest version of index.php which was merged on Oct 9, 2018 and may only work in ZM 1.32+
# https://github.com/ZoneMinder/zoneminde ... /index.php
# If you use this URL as I've specified below, keep the EVENTID phrase intact.
# The notification server will replace it with the correct eid of the alarm
# BESTMATCH should be used only if you are using bestmatch for FID in zm_detect_wrapper.sh
# objdetect is ONLY available in ZM 1.33+
# ** DO NOT PUT PASSWORD AND USERNAME IN URL, see below **
#picture_url = !ZMES_PICTURE_URL
#picture_url = http://HIDDEN.ddns.net/zm/index.php?vie ... &width=600
#picture_url = http://HIDDEN.ddns.net/zm/index.php?vie ... &width=600
#picture_url = http://HIDDEN.ddns.net/zm/index.php?vie ... &width=600
picture_url = https://upload.wikimedia.org/wikipedia/ ... n_2014.jpg
# You need ot specify your ZM portal username and password here. They will be appended to the picture_url
# to be able to load the image. DO NOT put the password in the URL because it may have special characters
# like "&@# etc that will be considered as URL params/segments/invalid characters
picture_portal_username=admin
picture_portal_password=HIDDEN
[hook]
# Shell script name here to be called every time an alarm is detected
# the script will get passed $1=alarmEventID and $2=alarmMonitorId
# script needs to return 0 to send alarm (default: none)
#
#hook_script = '/var/lib/zmeventnotification/bin/zm_detect_wrapper.sh'
#
# If 1, the text returned by the script
# overwrites the alarm header
# useful if your script is detecting people, for example
# and you want that to be shown in your notification
use_hook_description = no
I have tried various settings in the /etc/zm/zmeventnotification.ini file
I still can not get it to work. I currently have the image url example hardcoded in the .ini file that is used in the link you provided. Could you take a look at my settings below and let me know if you see anything?
FYI, I currently do NOT have a SSL installed. I also have DDNS setup and running correctly on the server. (alarm images did not work before DDNS was setup either) I have replaced part of my image_url and ZM password with HIDDEN bellow for security.
Also, nothing is jumping out at me in logs in the ninja app, or zm.
===
# include picture in alarm (mobile devices only) (default: yes).
include_picture = yes
# URL to access the event image
# This URL can be anything you want
# What I've put here is a way to extract an image with the highest score given an eventID (even one that is recording)
# This requires the latest version of index.php which was merged on Oct 9, 2018 and may only work in ZM 1.32+
# https://github.com/ZoneMinder/zoneminde ... /index.php
# If you use this URL as I've specified below, keep the EVENTID phrase intact.
# The notification server will replace it with the correct eid of the alarm
# BESTMATCH should be used only if you are using bestmatch for FID in zm_detect_wrapper.sh
# objdetect is ONLY available in ZM 1.33+
# ** DO NOT PUT PASSWORD AND USERNAME IN URL, see below **
#picture_url = !ZMES_PICTURE_URL
#picture_url = http://HIDDEN.ddns.net/zm/index.php?vie ... &width=600
#picture_url = http://HIDDEN.ddns.net/zm/index.php?vie ... &width=600
#picture_url = http://HIDDEN.ddns.net/zm/index.php?vie ... &width=600
picture_url = https://upload.wikimedia.org/wikipedia/ ... n_2014.jpg
# You need ot specify your ZM portal username and password here. They will be appended to the picture_url
# to be able to load the image. DO NOT put the password in the URL because it may have special characters
# like "&@# etc that will be considered as URL params/segments/invalid characters
picture_portal_username=admin
picture_portal_password=HIDDEN
[hook]
# Shell script name here to be called every time an alarm is detected
# the script will get passed $1=alarmEventID and $2=alarmMonitorId
# script needs to return 0 to send alarm (default: none)
#
#hook_script = '/var/lib/zmeventnotification/bin/zm_detect_wrapper.sh'
#
# If 1, the text returned by the script
# overwrites the alarm header
# useful if your script is detecting people, for example
# and you want that to be shown in your notification
use_hook_description = no
Re: Should ZMNinja Show Image Preview With Event Notification?
looks ok. Please enable debug logs in the event server (the docs tell you now) and see what it is trying to send in the push message, validate the URL is the public wikimedia url.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
-
- Posts: 4
- Joined: Thu Feb 13, 2020 11:13 am
Re: Should ZMNinja Show Image Preview With Event Notification?
I'm having the same problem but I have yet to resolve it. I think the problem is because its not using SSL. I think android had enforced usage of HTTPS at some stage and maybe this has something to do with it.
Re: Should ZMNinja Show Image Preview With Event Notification?
I never got it to work and then something weird happened with the app on my phone. I pretty much gave up on it. I'll try to fix it someday in the future. lol
Re: Should ZMNinja Show Image Preview With Event Notification?
There is a FAQ:
https://zmeventnotification.readthedocs ... how-images
https://zmeventnotification.readthedocs ... how-images
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs