Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AM/PM and no image with notification #1010

Closed
plysdyret opened this issue Oct 29, 2020 · 3 comments
Closed

AM/PM and no image with notification #1010

plysdyret opened this issue Oct 29, 2020 · 3 comments

Comments

@plysdyret
Copy link

plysdyret commented Oct 29, 2020

Platform & OS Version

Android 8.0.0

The version of zmNinja you are reporting:

1.6.0

The version and OS of ZoneMinder you are using:

CentOS Linux release 7.8.2003 (Core)

Device details:

Samsung Galaxy S7

What is the nature of your issue

Bug

Details

No image with notification, using:

include_picture = yes
picture_url = https://upload.wikimedia.org/wikipedia/commons/5/5f/Chinese_new_year_dragon_2014.jpg

zmNinja Debug Logs


Sent by email

Zoneminder Logs (if applicable)

In comment below

Thanks!

@plysdyret
Copy link
Author

10/29/2020 10:36:12.162685 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 DB Event notes contain detection text, all good]
10/29/2020 10:36:12.163111 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 Adding event path:/zoneminder//1/2020-10-29/925983 to hook for 
image storage]
10/29/2020 10:36:12.163502 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 Invoking hook on event end:'/var/lib/zmeventnotification/bin/zm
_event_end.sh' 925983 1 "Front" "[s] detected:person:93%  Motion: Most zone" "/zoneminder//1/2020-10-29/925983"]
10/29/2020 10:36:12.175252 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 parse of hook:[s] detected:person:93%  Motion: Most zone and []
]
10/29/2020 10:36:12.175714 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 hook end returned with text:[s] detected:person:93%  Motion: Mo
st zone  json:[] exit:0]
10/29/2020 10:36:12.176216 zmeventnotification[1207].DBG [ZoneMinder::Memory::Mapped:84] [zmMemAttach already attached at 140149655949312 for 1]
10/29/2020 10:36:12.176695 zmeventnotification[1207].DBG [ZoneMinder::Memory:302] [Shared data appears valid for monitor 1: 1]
10/29/2020 10:36:14.177891 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 rules: Checking rules for alarm caused by eid:925983, monitor:1
, at: Thu Oct 29 10:36:14 2020 with cause:[s] detected:person:93%  Motion Most zone]
10/29/2020 10:36:14.178313 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 rules: No rules found for Monitor, allowing:1]
10/29/2020 10:36:14.178712 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 Matching alarm to connection rules...]
10/29/2020 10:36:14.179981 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 isAllowedChannel: got type:event_end resCode:0]
10/29/2020 10:36:14.180824 zmeventnotification[1207].INF [main:975] [|----> FORK:Front (1), eid:925983 Sending event_end notification over FCM]
10/29/2020 10:36:14.186264 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 fcmv1: Snapshot frame matched, changing picture url to:https://
upload.wikimedia.org/wikipedia/commons/5/5f/Chinese_new_year_dragon_2014.jpg ]
10/29/2020 10:36:14.186874 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 legacy client, NOT setting channel to zmninja]
10/29/2020 10:36:14.188007 zmeventnotification[1207].DBG [main:963] [|----> FORK:Front (1), eid:925983 fcmv1: Final JSON using FCMV1 being sent is: {"android":{"prior
ity":"high","icon":"ic_stat_notification"},"data":{"notification_foreground":"true","mid":"1","eid":925983},"body":"[s] detected:person:93%  Motion: Most zone ended a
t 10:36, 29-Oct","badge":1,"image_url":"https://upload.wikimedia.org/wikipedia/commons/5/5f/Chinese_new_year_dragon_2014.jpg","title":"Ended:Front Alarm (925983)","to
ken":"dOeSYcMzxwo:APA91bF_NHtn8TLJpbd8LlSvAwqFut44QNVSXiVgKe-V5OAYfguhzcuR8vCOwkLBEMvBKG1bZoDRgIFmV15IuAh9oKL6Xck58EExsI7Q9EYJGx0LvUD0jsGyf79CbNdB1fzr3DmoY3Ld","sound
":"default"} to token: ...moY3Ld]
10/29/2020 10:36:15.509899 zmeventnotification[32402].DBG [main:963] [PARENT: ---------->Tick START<--------------]
10/29/2020 10:36:15.510131 zmeventnotification[32402].DBG [main:963] [PARENT: After tick: TOTAL: 1,  ES_CONTROL: 0, FCM+WEB: 0, FCM: 1, WEB: 0, MQTT:0, invalid WEB: 0
, PENDING: 0]
10/29/2020 10:36:15.511128 zmeventnotification[32402].DBG [main:963] [PARENT: RAW TEXT-->fcm_notification--TYPE--dOeSYcMzxwo:APA91bF_NHtn8TLJpbd8LlSvAwqFut44QNVSXiVgK
e-V5OAYfguhzcuR8vCOwkLBEMvBKG1bZoDRgIFmV15IuAh9oKL6Xck58EExsI7Q9EYJGx0LvUD0jsGyf79CbNdB1fzr3DmoY3Ld--SPLIT--1--SPLIT--370--SPLIT--9]
10/29/2020 10:36:15.511323 zmeventnotification[32402].DBG [main:963] [PARENT: GOT JOB==> update badge to 1, count to 370 for: dOeSYcMzxwo:APA91bF_NHtn8TLJpbd8LlSvAwqF
ut44QNVSXiVgKe-V5OAYfguhzcuR8vCOwkLBEMvBKG1bZoDRgIFmV15IuAh9oKL6Xck58EExsI7Q9EYJGx0LvUD0jsGyf79CbNdB1fzr3DmoY3Ld, at: 9]
10/29/2020 10:36:15.511495 zmeventnotification[32402].DBG [main:963] [PARENT: There are 1 active child forks...]
10/29/2020 10:36:15.511622 zmeventnotification[32402].DBG [ZoneMinder::Memory::Mapped:84] [zmMemAttach already attached at 140149655932928 for 6]
10/29/2020 10:36:15.511792 zmeventnotification[32402].DBG [ZoneMinder::Memory:302] [Shared data appears valid for monitor 6: 1]
10/29/2020 10:36:15.512038 zmeventnotification[32402].DBG [ZoneMinder::Memory::Mapped:84] [zmMemAttach already attached at 140149655941120 for 4]
10/29/2020 10:36:15.512242 zmeventnotification[32402].DBG [ZoneMinder::Memory:302] [Shared data appears valid for monitor 4: 1]
10/29/2020 10:36:15.512508 zmeventnotification[32402].DBG [ZoneMinder::Memory::Mapped:84] [zmMemAttach already attached at 140149655949312 for 1]
10/29/2020 10:36:15.512744 zmeventnotification[32402].DBG [ZoneMinder::Memory:302] [Shared data appears valid for monitor 1: 1]
10/29/2020 10:36:15.512940 zmeventnotification[32402].DBG [ZoneMinder::Memory::Mapped:84] [zmMemAttach already attached at 140149655928832 for 9]
10/29/2020 10:36:15.513121 zmeventnotification[32402].DBG [ZoneMinder::Memory:302] [Shared data appears valid for monitor 9: 1]
10/29/2020 10:36:15.513455 zmeventnotification[32402].DBG [ZoneMinder::Memory::Mapped:84] [zmMemAttach already attached at 140149655945216 for 2]
10/29/2020 10:36:15.513655 zmeventnotification[32402].DBG [ZoneMinder::Memory:302] [Shared data appears valid for monitor 2: 1]
10/29/2020 10:36:15.513871 zmeventnotification[32402].DBG [ZoneMinder::Memory::Mapped:84] [zmMemAttach already attached at 140149655937024 for 5]
10/29/2020 10:36:15.514029 zmeventnotification[32402].DBG [ZoneMinder::Memory:302] [Shared data appears valid for monitor 5: 1]
10/29/2020 10:36:15.514305 zmeventnotification[32402].DBG [main:963] [PARENT: checkEvents() new events found=0]
10/29/2020 10:36:15.514500 zmeventnotification[32402].DBG [main:963] [PARENT: There are 0 new Events to process]
10/29/2020 10:36:15.514628 zmeventnotification[32402].DBG [main:963] [PARENT: ---------->Tick END<--------------]
10/29/2020 10:36:20.509960 zmeventnotification[32402].DBG [main:963] [PARENT: ---------->Tick START<--------------]
10/29/2020 10:36:20.510244 zmeventnotification[32402].DBG [main:963] [PARENT: After tick: TOTAL: 1,  ES_CONTROL: 0, FCM+WEB: 0, FCM: 1, WEB: 0, MQTT:0, invalid WEB: 0
, PENDING: 0]

@pliablepixels
Copy link
Member

For the image, use a smaller one. The new FCM protocol has a max limit of 1MB. I've updated the documentation.

For AM/PM, https://github.com/pliablepixels/zmeventnotification/blob/master/zmeventnotification.ini#L88-L94

@plysdyret
Copy link
Author

Thanks, works like a charm now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants