#Media for dashboards

1 messages · Page 1 of 1 (latest)

merry urchin
#

I'm working on a few dashboards that require images that I add to my HA. I'm using Media to upload them, in my "My media" folder. Is there an easy way to get the URLs of these images for making the dashboard? Or is there a better way/location to save these images? I'm making the dashboard in YAML so I can't use the UI upload option the picture card has, and I think that creates too many duplicates and stuff anyways.

dark stag
#

I think that's actually kind of problematic, as to access those files it needs a login token included in the URL request.
So if you setup your dashboard to use those files, you'll have to edit the dashboard to fix the token every time you logout/refresh the token.

#

There's not good support for using general My Media files in dashboards (unless you use the upload UI in dashboard or the /www/ folder)

merry urchin
#

Ah ok, guess I can use the www folder and then just restrict it for the ha user

#

Though I'm not sure how to do that. It seems a new folder in www/ is not by default open to read...