Hello, I am trying to send a snapshot of my cam when there is motion to my iPhone.
Already tried many solutions with yaml and node red and the message pops in my iPhone and opens the companion app, but never shows me any image.
I am trying with a static image but no luck:
yo can i see your ND setup? I am using ND to send a jpeg when my dog door is opened BUT I am getting an error in the IOS notification in the image! I think it has something to do with a cert error but I dont know enough here and need some help.
HA works fine on my IOS app (local and remote)
So I am not sure why I am getting this message below.
Any help would be greatly appreciated.
==================================
Call Service Node
data:
{
"message":"Doggy door left open",
"data" : {
"attachment": {
"content-type": "jpeg",
"url": "https://ipaddress:8123/media/dogcamhd_snapshot.jp"
}
}
}
===================================
Error message - it shows as an image but displays this text:
Failed to load attachment
URLSessionTask failed with error: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “my-ipadress” which could put your confidential information at risk.
For what I see I believe iOS sees your address as a risk and won’t open it. I use direct path for where picture was produced (telegram_bot/send_photo), here is my code if it helps:
{
"file": "/config/www/images/snapshot_camera.garagem",
"caption": "Garagem aberta fora de horas"
}
Damn apple… Do you know of anyway to mark this address as safe? on an IOS device
Ok thanks for sharing that code. I am not sure exactly where to put it, I pasted it into my “call service” nodes “data” section… the node that notifies my iphone. Is that where you put it? I dont think im doing it right cuz no image showed up on my phone.
So I need that “/authSig=kljsdnflsdn” after the URL in my node in NodeRed. I dont know much about certs and all that but I think somewhere here is my issue? maybe
Everything in the /local folder is available externally but cannot be listed remotely. So if you want some level of security for preventing people browsing common image names change /some_directory to a random string like /asdQQLopHDlgp342nd892/. Then the chance of someone randomly browsing to it is very slim.
This was before the media folder was a thing. I believe I read that it can be exposed to external networks but am not sure how.