+106
Discuss & Vote

iFrame Tiles (web page embedding)

dennybono 2 years ago in Panels (dashboards) / Special Tiles • updated by Terry (ActionTiles) (Co-Founder) 3 months ago 29 4 duplicates

It would be nice to be able to display a small iframe "tile" on my panel. For example my access points have apis that allow me to view their status. I'd like to show that on my panel.

Duplicates 4

+1
On Hold: Discussion Open

I see the utility of this, but have concerns.


I think we may be able to test and consider ways to do embedded iframes, but there are some serious security considerations.

+1

I too would like to see this.

Please allocate VOTES 👍🏽 to the Topic, please, instead of just agreement comments.


Everyone gets a budget ration of Votes, so it is the best way for us to rank Feature Requests. Thanks!!!

I dont understand the budget of votes. There is no way I'd be able to see all the possible vote topics before rationing off the votes.

We encourage you to spend time browsing the Feedback forum in order to see what the range and diversity of ideas - before allocating Votes. (But you can go back and remove votes from one Feature if you change your mind and decide to allocate them to a more important Feature).


We want votes to only be allocated to Topics that are the most valuable to each customer. Just like a monetary budget, that ensures customers don't spend all their votes on ice cream before getting to the produce section of the grocery store. If everybody got unlimited Votes, then everyone would want everything. You'd have your ice cream, salad, meat, potatoes, ... and then cake and more ice cream. Now you've made me hungry! 😋

Right but when you are getting ice cream you have all the flavors in front of you. You can even sample them before you pick. You don't have to go and see and search a side menu to see those flavors. I get you want users to go to the feedback forum but the organization if setup where you have several areas to find things. I was just curious on the reasoning.

Are there risks to actiontiles beyond the individual user? Could this just be a tile with disclaimer?

Not sure yet... that's why we're not touching this until we fully understand the impact.

The risk is if the site you are putting within the iframe contains malware.  For the typical uses for actiontiles that case should be nearly zero and since most malware is Windows based most tablets would not be bothered by this anyway.

You can see an alternate idea based on automatic, scheduled screenshots of webpages in this new thread here...

http://support.actiontiles.com/topics/779-a-safe-way-of-displaying-non-interactive-dynamic-external-web-content/

Would be very nice to have! Could see my Wattvision graph.

I agree an I Frame would be ideal. I would like to pull a local weather applet in and my front door access logs.

+1

This shouldn't be too hard to implement.


If I want to show simple bits of information in a panel, I wouldn't like to create static images and use the media tiles. Creating HTML output is very simple compared to creating images.

+1

Have you checked out the features I put together that allow some basic paging of news, weather, stocks and calendar?  It's not the iFrame you're looking for but it's a start.  If your front door access logs can be accessed as an RSS feed you could actually use the news functionality for that... http://jggdev.com/category/atiles/

At least I have checked John's tiles. They are a great start but IMHO the wrong start. Since the ActionTiles panels are HTML and the tiles themselves are HTML it feels so awkward to convert text and numbers into images in order to be able to use them in tiles.

I would hesitate to call something that works (quite effectively, may I add...) "awkward".


Encoding arbitrary html content so that it can be safely and consistently rendered into a Tile is not a trivial problem.


Encoding it as an image is a clever and flexible solution. It may not be the optimal solution —indeed, we're likely to come up with various workable implementations and figure out what fits the architecture best — but in the meantime, we're super happy and grateful that John has offered this to our customers!

+1

I totally agree that from a user's perspective it works and is great.


I was talking from a developer's point of view. It would be much easier for me as a developer to create a HTML snippet than an image. I'm not talking about arbitrary HTML content but content specifically created for ActionTiles.  


Allowing users to just add any HTML as iframes would be a trivial implementation even if not optimal or perfect. If I want to have a 4x4 tile with an embedded Google front page in a panel, I could just try it out. If it didn't work, I wouldn't use it. Allowing iframes as tile content would perhaps feel like a dirty hack, but it would quickly and easily enable loads of useful content to be shown in ActionTiles.


The optimal solution would be a template that I could use to create "almost native" tiles, e.g.


<st-tile st-tile-width="1" st-tile-height="1" st-tile-type="Temperature Measurement" st-tile-device="MyCustomAPI" data-delay="1" data-height="105" data-width="105"><div class="st-tile-header"><h3>My metric</h3></div><div class="st-tile-body layout-fill layout-align-center-center layout-column"><div><span>My value</span></div></div><div class="st-tile-footer"><span>From My Custom API</span></div></st-tile>

For this solution, I understand that you'd want to design, document, test and tweak the API, which would take some time.


For iframe content, you could just do it, mark it as an experimental feature, see how developers use it and watch the ecosystem flourish. :-)

+1

I appreciate your comment, Samuel; but we have a straightforward response:


At this time, ActionTiles must focus on the broad SmartThings consumer market; not "developers". The product is not, at this time, an "ecosystem".

+1

Thanks Terry for the fast and straightforward response!


I'll keep checking (both as a user and a developer) if things change. ActionTiles is a cool product already as it is.

The thing is, it would be SO easy to implement and SO useful, that I can't figure out why there is any resistance to doing this.

Add your Votes, Mike ... Add your Votes. 😉

(And nothing is as easy to implement as you might think..., and 100 "easy's" still add up.)

iframes would allow other developers to create content for ActionTiles which could help your product be more useful and potentially drive more sales.

Yup: We never actually envisioned ActionTiles as being a "portal" for widgets of arbitrary data sources; but seeing the real-world Customers' clever uses of Image Tiles (such as the popularity of Weather, Traffic and other ideas) is inspirational.


Our primary focus is SmartThings Things ... though will hit an inflection point soon in non-SmartThings related Feature Requests.

Hi to everyone,


I'm new to actiontiles and I am just getting started. I would have an alternative idea to this kind of integration: often a smart home system already has a NAS in the house for backups, camera and other stuff (I use it to integrate xiaomi stuff and chromecast devices into ST). 

Is there a product (like a docker container) that calls up a desired webpage and periodically transforms it to a picture/gif that gets than viewed inside actiontiles?
So there would be no risk of html code to run inside actiontiles, because it would be just an image or gif, which you already support. This would be than made publicly accessible via the public dyndns that synology, qnap,... provide for free even with HTTPS connections.

I'm trying my best to find something, but for now i just found an MIT project that calls a docker via a manual call and makes a screenshot out of that https://github.com/mafintosh/docker-browser-screenshot

Some day I want to experiment with ImageMagick on my pi to convert text (from some useful script) to an image...

http://www.imagemagick.org/Usage/text/



I started creating media tiles using SVG. An example of a tile can be found (at the moment) at https://sahko.seuranta.org/bars.php


Source code attached:

bars.php

No, it doesn't show me nearby restaurants but local energy prices in a simple bar chart.


The cool thing is that you can have a large image and only show a slice of it in a tile. I'm using the bars.php example as an 1x1 tile in my panel, which leaves room to at most 7 bars. When I click on the image I can see rest of the bars if they are available.


Unfortunately, links don't work. I have a working SVG link in the image, but it cannot be clicked when the (whole) image is shown by ActionTiles.

Interesting work, Samuel; thanks for sharing.


A generated image from a web page will certainly be extra justification for this Feature Request to allow Media Tiles to be Shortcuts to some particular website; i.e., such as the full site you are using as the source for the generated image.  https://support.actiontiles.com/communities/12/topics/3872-allow-information-media-tiles-to-act-as-shortcut-tiles