Bonjour,
j’envoie des notifications depuis un scenario avec comme paramètres dans le titre :
title=CAM01 | gotoWidgetId=2 | gotoPageId=10 | files=#[Bgx][CAM01][Last event image PATH]#
avec « Last event image PATH » qui contient le path de l’image comme :
/var/www/html/plugins/hikvisioncameraevents/data/records/img-20220720-212427-CAM01-fielddetection-human.jpg
L’image s’affiche bien dans la notification de l’application jeedom connect, mais pas dans la notification Android.
le log:
[2022-07-20 23:16:45][INFO] : Send notification with data {"type":"DISPLAY_NOTIF","payload":{"cmdId":"225","title":"CAM01","message":"fielddetection (human) (region 5) (img) ","answer":null,"timeout":null,"notificationId":16583518050600,"otherAskCmdId":null,"options":{"gotoWidgetId":"2","gotoPageId":"10"},"files":["https:\/\/yyyyy:20443\/core\/php\/downloadFile.php?apikey=xxxxxx&pathfile=\/var\/www\/html\/plugins\/hikvisioncameraevents\/data\/records\/img-20220720-212427-CAM01-fielddetection-fielddetection_alarm-active-human.jpg&t=16583518050748"],"id":"defaultNotif","channel":"default","index":0,"update":false,"color":"#ff0000","image":{"source":"jc","name":"camera.png"},"time":1658351805}}
[2022-07-20 23:16:45][DEBUG] : Send output : 2022/07/20 23:16:45 {"multicast_id":6093552896883661262,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1658351805333864%5d4eda78f9fd7ecd"}]}
[2022-07-20 23:16:46][INFO] : Send notification with data {"type":"DISPLAY_NOTIF","payload":{"cmdId":"225","title":"CAM01","message":"fielddetection (human) (region 6) (img) ","answer":null,"timeout":null,"notificationId":16583518061359,"otherAskCmdId":null,"options":{"gotoWidgetId":"2","gotoPageId":"10"},"files":["https:\/\/yyyyy:20443\/core\/php\/downloadFile.php?apikey=xxxxxx&pathfile=\/var\/www\/html\/plugins\/hikvisioncameraevents\/data\/records\/img-20220720-212427-CAM01-fielddetection-fielddetection_alarm-active-human.jpg&t=16583518061482"],"id":"defaultNotif","channel":"default","index":0,"update":false,"color":"#ff0000","image":{"source":"jc","name":"camera.png"},"time":1658351806}}
[2022-07-20 23:16:46][DEBUG] : Send output : 2022/07/20 23:16:46 {"multicast_id":2601548543575267139,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1658351806388718%5d4eda78f9fd7ecd"}]}
[2022-07-20 23:16:56][DEBUG] : [API] HTTP Received {"method":"SET_APPSTATE","params":{"state":"background","apiKey":"xxxxxxx"},"jsonrpc":"2.0","id":1658351816865}
[2022-07-20 23:16:56][DEBUG] : [API] Send SET_APPSTATE -> null
Cela a déjà fonctionné. Je soupçonne que ca soit lié à une mise à jour précédente de jeedom ou jeedomconnect. Je suis actuellement en 4.2.20 & 2022-07-03 11:59:09
Je ne sais si c’est nécessaire mais l’url de l’image est bien accessible depuis internet sans authentification
La taille de l’image a t’elle une limite ?
merci de m’aiguiller sur ou chercher
Philippe