zmNinja still says Pending Auth and no object detection works when alarms are triggered.
If I push one manually to test that works.
No SSL - HTTP URLs only (all set in secrets also.
All modules installed.
OPT_USE_EVENTNOTIFICATION is enabled.
Just totally stuck on this for days. Not sure where to go from here.
Code: Select all
root@ZM:~# sudo -u www-data /usr/bin/zmeventnotification.pl --debug
12/13/21 10:40:24.753918 zmeventnotification[918].INF [main:338] [Running on WebSocket library version:0.004]
INF:2021-12-13,10:40:24 PARENT: using config file: /etc/zm/zmeventnotification.ini
12/13/21 10:40:24.786324 zmeventnotification[918].INF [main:1048] [PARENT: using config file: /etc/zm/zmeventnotification.ini]
INF:2021-12-13,10:40:24 PARENT: using secrets file: /etc/zm/secrets.ini
12/13/21 10:40:24.795384 zmeventnotification[918].INF [main:1048] [PARENT: using secrets file: /etc/zm/secrets.ini]
DBG-2:2021-12-13,10:40:24 PARENT: Got secret token !ZMES_PICTURE_URL
DBG-2:2021-12-13,10:40:24 PARENT: Got secret token !ZM_USER
DBG-2:2021-12-13,10:40:24 PARENT: Got secret token !ZM_PASSWORD
DBG-2:2021-12-13,10:40:24 PARENT: config string substitution: {{base_data_path}} is '/var/lib/zmeventnotification'
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 ................................. 9002
Address .............................. 192.168.1.245
Event check interval ................. 5
Monitor reload interval .............. 300
Skipped monitors...................... (undefined)
Auth enabled ......................... yes
Auth timeout ......................... 20
Use API Push.......................... yes
API Push Script....................... /var/lib/zmeventnotification/bin/pushapi_pushover.py
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-ninja-1105.cloudfunctions.net/send_push
FCM V1 Key.............................default
Token file ........................... /var/lib/zmeventnotification/push/tokens.txt
Use MQTT ............................. yes
MQTT Server .......................... 192.168.1.163
MQTT Topic ........................... zoneminder
MQTT Username ........................ user
MQTT Password ........................ (defined)
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 .......................... no
SSL cert file ........................ /path/to/cert/file.pem
SSL key file ......................... /path/to/key/file.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............yes
Monitor rules JSON file................(undefined)
Use Hooks............................. yes
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................. (undefined)
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 .......................... http://192.168.1.245/zm/index.php?view=image&eid=EVENTID&fid=objdetect&width=600
Include picture....................... yes
Picture username ..................... user
Picture password ..................... (defined)