appdaemon icon indicating copy to clipboard operation
appdaemon copied to clipboard

Configurable location for custom dashboard assets

Open torkildr opened this issue 9 years ago • 3 comments

In the process of creating a new widget, I'm starting to see the need of having custom assets in my conf-folder.

I see that custom css is probably already covered, but it would be really nice to have custom images and javascript as well.

For images, this could probably be solved by just adding a new add_static in appdash.py pointing to a configurable location.

For javascript assets, I'm thinking you'd also like a head tag to be generated.

I'd be happy to implement this, but think maybe we need to figure out what direction we should take first.

torkildr avatar Aug 20 '17 18:08 torkildr

Yes, good idea, I'll have a think about it for the next release.

acockburn avatar Aug 20 '17 21:08 acockburn

Agreed, this would be helpful to have native support for. Right now I'm grabbing extra JS files from a local nginx webserver since I can't get it directly from hadashboard.

cgarwood avatar Nov 21 '17 21:11 cgarwood

I might use a few calories to implement this in a good way, seeing as there is interest for it.

torkildr avatar Nov 28 '17 15:11 torkildr