I have an iframe widget that is calling an animated .gif. in my layout I have tried to limit it to a 2x2, however it’s not shrinking the .gif to stay inside of the 2x2. inside of HA it shrinks it to fit in the frame, but not in HAhashboard. in hadashboard I have to drag it around to see what’s on it.
is there anyway to have the .gif shrink to fit? it’s get a new gif from weatherunderground so I can’t just resize the gif. I was hoping to have hadashboard shrink it to fit inside of the 2x2.
at this point you cant change the size from anything inside the iframe.
normally you get scrollbars if the page is bigger then the webpage.
but for pics you can resize. (and you say its a gif)
but the questions is if an animated gif also would work, but you could try.
in the docs https://appdaemon.readthedocs.io/en/dev/DASHBOARD_CREATION.html#iframe
ok thanks for the info. this is a animated gif I am getting from the weather station: https://icons.wxug.com/data/weather-maps/radar/united-states/columbus-georgia-region-current-radar-animation.gif
so they update it frequently.
which bring up the next question, I see lots of folks using a weather radar and forcast and they have it resized on their hadashboard. so where are they getting that from? or are they using something other another widget?
I went through this (kind of still am) and here are ones that I looked at and liked. I ended up creating a www folder in my main folder, and then creating an html page for each one. I then put them all on a dashboard and navigated with my iPad. It is important to note that the widgets looked different on my computer vs the iPad. Then I just picked the one I liked the most.
If you don’t already have a www directory in the same directory as your configuration.yaml file, go ahead and create one.
Almost all of the widgets will create the html code for you. Save this as a file with anyname.html inside the www folder you just created.
Now in your dashboard that you want put this in.
nameyouwant:
widget_type: iframe
refresh: 900 (you can put anything you want here...it is in seconds)
url_list:
- http://ipofhass:8123/local/anyname.html
and finally in your layout just reference it and give it an appropriate amount of space.
also if you want you can put two (or more) urls, one for the forecast and one for the weather, in the same iframe. The refresh time will then cycle through the included urls.
I am not very good with web coding. I used a “spare” dash I made for testing out things. Then I just mess around with the size until it looks good. Mine actually had 6 different weather widgets and I let my wife pick which one she liked the most. Buy in is a good thing!