iOS notification: Screenshot not working since Nginx Proxy Manager

Since I installed Nginx Proxy Manager I can’t manage to have the screenshot attached to my notification

I’m using this script with used to work just fine :

snapshot (node red):

{
   "filename":"/config/www/front_snapshot.jpg"
}

– I can see the picture in the WWW directory

{
   "title": "Car outside",
   "message": "There is a car outside",
   "data": {
       "subtitle": "Side motion detector",
       "push": {
           "sound": "Alarm_Nightstand_Haptic.caf"
        },
       "attachment": {
           "content-type": "jpg",
           "url": "https:mysub.domain.com/local/front_snapshot.jpg"
        }
    }
}

whatever I add the port (443) or not its the same, I received the notification just fine but without any screenshot.

previous config was pointing to http(and not https).sub.domain.com:8433/local/front_snapshot.jpg

for info: I can access the snapshot with my local IP : https://192.168.5.33:8443/local/front_snapshot.jpg and also external https://sub.domain.com/local/front_snapshot.jpg

I was trying to see would the live feed would work

        push:
          category: camera
        entity_id: camera.front

but nope

also coming back to my snapshot issue, its weird cause the notification on the Appel Watch mention an attachment (but still no attachment…)

also tried with developer tools

service: notify.mobile_app_kevins_iphone
data:
  message: demo
  data:
    attachment:
      url: https:mysub.domain.com/local/front_snapshot.jpg
      content-type: jpg
      hide-thumbnail: false

To reopen this, did you find a workaround? Im having the same issue here

Sorry, I only saw your message now, I fixed this but I don’t use it anymore, and I use NabuCasa too so not sure that the right template, but It might be this

{
   "title": "Title",
   "message": "Message here",
   "data": {
       "attachment": {
           "content-type": "jpg",
           "url": "https://yourdomain.com/snapshot.jpg"
        }
    }
}
2 Likes