double-take icon indicating copy to clipboard operation
double-take copied to clipboard

Allow picture download from internet.

Open cunninr2 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

This is a feature request.

At present, I can send notification to a notification service of choice by referencing the picture filename correctly. This is given in the example below. http://localhost:3000/api/storage/matches/.

However, when away from home my home assistant is secured behind a firewall and SSL protected. I therefore use an external domain name and SSL port for all access to home assistant functions.

I could open up port 3000 on my router to access double take directly, but would prefer not to expose port 3000 to the internet. From some investigations it looks as though I should be able to obtain direct access to the media folder through home assistant using signed tokens. However, I think double take would need to issue the signed token for each picture. See conversation on this thread: https://community.home-assistant.io/t/how-to-play-mp3-from-media-browser-folder/298206/17

Describe the solution you'd like I would like double take to construct the signed access token so that I have all the correct information to provide a direct link through home assistant to my picture. This would be a better and more secure way, rather than opening port 3000 on my router.

Additional context I use the pushover notification service which doesn't seem to accept attachments, so instead I send a message with a link to the picture as below:

person detected in kitchen: Time: Thu 01-12-22 7:56 AM Identification match: emma Confidence level: 98.22 http://192.168.1.20:3000/api/storage/matches/d11f0c9f-bfc0-41b1-be73-f070d651c2c5.jpg

cunninr2 avatar Dec 01 '22 08:12 cunninr2