Dashboard image size

@patrick, is there anyway to make the image auto size to fit in a tile? My attribute tile for the Bloomsky imagine does not fit within a tile.

Thanks

Sure, fix the bloomsky code to fit the image in the tile. Unfortunately, that driver wraps the link in an img tag that needs to be set for the width and height values. Nothing dashboard can do in the attribute tile.

Of course, you could take the same link and put it in the actual image tile and it would work.

So I modified the driver to get the URL into a new attribute to contain the link to the image but it's not working. The dashboard is not showing the image.

imageURLnew : http://s3-us-west-1.amazonaws.com/bskyimgs/eaBJytnpS4raqJ1lqblablablabla (link modified :slight_smile: )

You missed my point, just create an Image Tile and use that URL. Unless the url changes, then you'll have to fix the bloomsky driver to follow CSS conventions to fill a Div for an img tag.

I get what you were saying. I am just not sure if the URL is dynamic or not which is why I am hoping that I can just update the attribute tag with the URL instead. For now I've set an image tile to use the URL so let see if the URL is dynamic or not.

You can also change the Bloomsky driver code to use the full width of the tile. There’s assuredly a better way to approach this, but I changed the following and it seems to be working.

From:
test = "<img src='" + imageURL + "' style='width:400px'/>"

To:
test = "<img src='" + imageURL + "' style='width:100%'/>"

2 Likes