Dear all,
I have HA and MotionEye integration in a RP PI 4. I can send pictures attachments to telegram when the file is in the www directory (/config/www). But MotionEye don’t allow to save the pictures in other file than …/share/motioneye/CameraX.
I tried to fix this whith all the following options:
1.- Modify the storage folder in motioneye integration, for example I put in the file storage section “/config/www/motioneye/Camera1” or “/local/motioneye/Camera1” and others to try. Then I restart, and dont works. Motioneye dont save the picures in this new folder.
2.- Modify configuration.yaml to add the following options:
2.1.-
whitelist_external_dirs:
- '/share/motioneye/Camera1'
2.2.-
allowlist_external_dirs:
- /share/motioneye/Camera1
allowlist_external_urls:
- https://xxxxxx.duckdns.org:8123/share/motioneye/Camera1/jose.jpg
I am very desperate with this problem, testing and cheking for houres, and imposible to find a solution.
The only solution for send pictures is when these pictures are in the ww folder, then all works fine. In my case I cand send notifications to telegram with this format:
Automations:
- id: 4b4b073ca86b42519bc2f542e823d211
alias: Envio telegram cuando se detecta movimiento
trigger:
- platform: webhook
webhook_id: '123321'
action:
- data:
data:
photo:
caption: PruebaFoto
url: https://xxxxxxxxxx.duckdns.org:8123/local/jose.jpg
message: holahola
title: Home Assistant
service: notify.telegram
Node red:
Where the function node:
msg.payload = {"caption": "PruebaFoto", "url": "https://josemsubcnas.duckdns.org:8123/local/jose.jpg"}
return msg;
and the Send Phot Node is:
Please any help about this?. Thanks in advance…
Jose