GithubHelp home page GithubHelp logo

covrig / homeassistant-iframe-card Goto Github PK

View Code? Open in Web Editor NEW
22.0 5.0 5.0 1.44 MB

A simple custom Iframe state card for Home Assistant

HTML 100.00%
home-assistant homeassistant iframe iframe-embeds state-card customization customui frontend

homeassistant-iframe-card's People

Contributors

covrig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

homeassistant-iframe-card's Issues

element.setConfig is not a function

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:

clipboard01

I saw another user with the same issue in the forums. Are we both missing something?

Wrong height on mobile

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.