#Looking for some help getting image
1 messages · Page 1 of 1 (latest)
So, in configuration.yaml, I have
homeassistant:
allowlist_external_dirs:
- "/config/www/snapshots"
media_dirs:
reolink: "/config/reolink"
so if I create a snapshot called doorbell.jpg and put it into /config/www/snapshots/doorbell.jpg, then the public url is
https:// mydomain[.]com/local/snapshots/doorbell.jpg
and that works perfectly
but if I put the snapshot into /config/reolink/doorbell.jpg, then it's my understanding that the URL should be
https:// mydomain[.]com/media/reolink/doorbell.jpg
is that correct? The docs aren't super helpful in trying to understand how directory paths get mapped to URL paths
A file stored in /media/file.jpg on-disk is represented by /media/local/file.jpg in the notification. Note the addition of the local part of the path.
it's not clear where the "local" part is coming from, but it seems like that's just the default mapping, and the fact that I specified
media_dirs:
reolink: "/config/reolink"
means that it should be inserting "reolink" instead of "local"