Pictures in Notifications

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
bodgit
Posts: 16
Joined: Sat Sep 28, 2019 12:38 pm
Location: St Lucia West Indies

Pictures in Notifications

Post by bodgit »

Due to a hardware failure (Dont buy cheap SSDs) I have done a clean install on a Raspberry Pi 4/4.
Ubuntu 20.04
Zoneminder 1.35.9
Event Server v5.15.6 (Not using hooks)
zmNinja Pro v1.4.009 (Android)


Every thing working well with the exception of pictures in Notifications
I am not even getting the white space in the notification for the picture.

As a test
Part of my zmeventnotification.ini

include_picture = yes
picture_url = https://upload.wikimedia.org/wikipedia/ ... n_2014.jpg
#picture_portal_username=!ZM_USER
#picture_portal_password=!ZM_PASSWORD

I read and reread the faq,s no luck even tried another phone with no luck, can any body help with this.

Thanks
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Pictures in Notifications

Post by asker »

Are you absolutely sure you are on 5.15.6 and not master? If you are on master, try a smaller image (1MB or less)
If you are on 5.15.6, you'll need to post DEBUG logs when the push is being sent out from the ES
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
bodgit
Posts: 16
Joined: Sat Sep 28, 2019 12:38 pm
Location: St Lucia West Indies

Re: Pictures in Notifications

Post by bodgit »

I assumed i am on version 5.15.6 because the first line of CHANGLOG.md reads:-

## [v5.15.6](https://github.com/pliablepixels/zmeven ... ee/v5.15.6) (2020-06-30)

Will post debug logs.
bodgit
Posts: 16
Joined: Sat Sep 28, 2019 12:38 pm
Location: St Lucia West Indies

Re: Pictures in Notifications

Post by bodgit »

CONSOLE DBG-2:2020-10-11,17:00:29 |----> FORK:Roaming (1), eid:903 fcmv1: FCM called when there is no start hook/or hooks are disabled, so making sure we do not use objdetect in url
CONSOLE DBG-2:2020-10-11,17:00:29 |----> FORK:Roaming (1), eid:903 fcmv1: Final JSON using FCMV1 being sent is: {"image_url":"https://upload.wikimedia.org/wikipedia/ ... jpg","body":" at 05:00 PM, 11-Oct","token":"dKlyUvjQ0Z4:APA91bE5FKk8gll0VMErygnKLoIdJZ0q_WGvxhxsgDqbBv66eijJsjIwawrrOTgSUfWiD3lHh2imNxaHekbRm7ZMQEVbXYfw3YuML9sXxtX2cuhOY3Fj1fhrnNB-dPFJj9do8bgZhNOS","data":{"mid":"1","notification_foreground":"true","eid":"903"},"sound":"default","badge":2,"title":"Roaming Alarm","android":{"icon":"ic_stat_notification","channel":"zmninja","priority":"high"}} to token: ...gZhNOS
CONSOLE DBG-1:2020-10-11,17:00:30 |----> FORK:Roaming (1), eid:903 fcmv1: FCM push message returned a 200 with body {"Success":"projects/ninja-1105/messages/0:1602450030290033%311426be311426be"}
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Pictures in Notifications

Post by asker »

No this is ES 6. I assume you are not getting any notifications. Not just images?

For now don’t check out master (which is what you did). Check out a stable release.
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
bodgit
Posts: 16
Joined: Sat Sep 28, 2019 12:38 pm
Location: St Lucia West Indies

Re: Pictures in Notifications

Post by bodgit »

Hi Asker

No I am getting notifications as normal just not the pictures.

I used:-
git clone https://github.com/pliablepixels/zmeven ... cation.git
cd zmeventnotification

From the installation instructions for stable release

I have just redownloaded and the CHANGLOD.md is the same

Am I doing something realy stupid (Not unknown)
bodgit
Posts: 16
Joined: Sat Sep 28, 2019 12:38 pm
Location: St Lucia West Indies

Re: Pictures in Notifications

Post by bodgit »

I think I have sused out what I have been doing wrong.

I thought that for a new install you just had to do the first two lines of the instructions and the last two lines were for updating. Duh

I,m going away to bang my head on a brick wall and try again tomorrow.

Apologies for any trouble caused..
Post Reply