covrig / homeassistant-iframe-card Goto Github PK
View Code? Open in Web Editor NEWA simple custom Iframe state card for Home Assistant
A simple custom Iframe state card for Home Assistant
Did you get a chance to update this for the new experimental UI?
https://developers.home-assistant.io/docs/en/lovelace_index.html
https://github.com/home-assistant/home-assistant-polymer/tree/master/src/panels/lovelace
I tried, but could not get it to work. Here's the modified file.
Following instructions for Lovelace, I downloaded the lovelace-iframe.html file and copied it to config/www/custom_ui/. Checked perms. Added the following to my configuration.yaml:
frontend:
extra_html_url:
- /local/custom_ui/lovelace-iframe.html
Restarted hass.io and attempted to use the same example you provided as a test:
- type: "custom:lovelace-iframe"
url: https://embed.windy.com/embed2.html?lat=48.234&lon=8.598&zoom=5&level=surface&overlay=radar&menu=&message=&marker=&calendar=&pressure=&type=map&location=coordinates&detail=&detailLat=48.234&detailLon=8.598&metricWind=default&metricTemp=default&radarRange=-12
height: 700
title: WEATHER
title-color: white
title-background-color: darkgrey
title-font-size: 15px
title-font-weight: 500
When I refresh I get the following error:
I saw another user with the same issue in the forums. Are we both missing something?
Hej,
any idea why the height isn't correctly set on mobile devices (browser and iOS App)? Only the title (which we cleared out with ' ') is shown. The actual iframe does not appear. Works with desktop browser
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.