In sendOverFCM1 the variable $alarm->{End}->{State} isn't defined.
I am not using hooks. I am also not sending out event end notices.
Relevant output from running in debug:
Code: Select all
11/13/2024 18:43:29.019283 zmeventnotification[184321].INF [main:3282] [1 is in hook skip list, not using hooks]
11/13/2024 18:43:31.020014 zmeventnotification[184321].INF [main:2954] [Sending event_start notification over FCM]
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3457.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3596.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3675.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3457.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3596.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3675.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3457.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3596.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3675.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3457.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3596.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3675.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3457.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3596.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3675.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3457.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3596.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3675.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3457.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3596.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3675.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3457.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3596.
Use of uninitialized value in string eq at /usr/bin/zmeventnotification.pl line 3675.
11/13/2024 18:43:47.281333 zmeventnotification[184321].INF [main:3693] [Event 67231 for Monitor 1 has finished]
11/13/2024 18:43:49.281851 zmeventnotification[184321].INF [main:3461] [1 is in hook skip list, not using hooks]
11/13/2024 18:43:51.282212 zmeventnotification[184321].INF [main:2954] [Sending event_end notification over FCM]
11/13/2024 18:48:29.015144 zmeventnotification[184297].INF [main:1441] [Re-loading monitors]
Code: Select all
Configuration (read /etc/zm/zmeventnotification.ini):
Secrets file.......................... /etc/zm/secrets.ini
Base data path........................ /var/lib/zmeventnotification
Restart interval (secs)............... 0
Use admin interface .................. no
Admin interface password.............. (undefined)
Admin interface persistence file ..... /var/lib/zmeventnotification/misc/escontrol_interface.dat
Port ................................. 9000
Address .............................. [::]
Event check interval ................. 5
Monitor reload interval .............. 300
Skipped monitors...................... (undefined)
Auth enabled ......................... yes
Auth timeout ......................... 20
Use API Push.......................... no
API Push Script....................... (undefined)
Use FCM .............................. yes
Use FCM V1 APIs....................... yes
FCM Date Format....................... %I:%M %p, %d-%b
Only show latest FCMv1 message........ no
Android FCM push priority............. high
Android FCM push ttl.................. (undefined)
Log FCM message ID.................... NONE
Log RAW FCM Messages.................. no
FCM V1 URL............................ https://us-central1-zoneminder-ninja.cloudfunctions.net/send_push
FCM V1 Key............................ default
Token file ........................... /var/lib/zmeventnotification/push/tokens.txt
Use MQTT ............................. no
MQTT Server .......................... 127.0.0.1
MQTT Topic ........................... zoneminder
MQTT Username ........................ (undefined)
MQTT Password ........................ (undefined)
MQTT Retain .......................... no
MQTT Tick Interval ................... 15
MQTT TLS CA .......................... (undefined)
MQTT TLS Cert ........................ (undefined)
MQTT TLS Key ......................... (undefined)
MQTT TLS Insecure .................... no
SSL enabled .......................... yes
SSL cert file ........................ /etc/letsencrypt/live/<my server>/fullchain.pem
SSL key file ......................... /etc/letsencrypt/live/<my server>/privkey.pem
Verbose .............................. yes
ES Debug level........................ 4
Read alarm cause ..................... yes
Tag alarm event id ................... yes
Use custom notification sound ........ no
Send event start notification......... yes
Send event end notification........... no
Monitor rules JSON file............... (undefined)
Use Hooks............................. no
Max Parallel Hooks.................... 0
Hook Script on Event Start ........... '/var/lib/zmeventnotification/bin/zm_event_start.sh'
User Script on Event Start............ (undefined)
Hook Script on Event End.............. (undefined)
User Script on Event End.............. (undefined)
Hook Skipped monitors................. 1,2,3,4
Notify on Event Start (hook success).. all
Notify on Event Start (hook fail)..... none
Notify on Event End (hook success).... fcm,web,api
Notify on Event End (hook fail)....... none
Notify End only if Start success...... yes
Use Hook Description.................. yes
Keep frame match type................. yes
Store Frame in ZM..................... yes
Picture URL .......................... https://<my server path>/index.php?view=image&eid=EVENTID&fid=snapshot&width=600
Include picture....................... yes
Picture username ..................... <custom>
Picture password ..................... (defined)