Is there a way to import a widget (not a picture) in a dashboard tile?
For example https://widget.airnow.gov/aq-flag-widget/?a=today&z=98008&n=BELLEVUE is a widget that renders:
Is there a way to import a widget (not a picture) in a dashboard tile?
For example https://widget.airnow.gov/aq-flag-widget/?a=today&z=98008&n=BELLEVUE is a widget that renders:
You could try an iframe tile, something like this driver...
metadata{
definition( name: "HTML Device", namespace: "tchoward", author: "Thomas Howard") {
capability "Actuator"
// Indicate what capabilities the device should be capable of
attribute "html", "string"
command "setHTML", ["String"]
}
preferences{
}
}
def setHTML(str) {
def event = createEvent(name: "html", value: """<iframe style="width: 100%; height: 100%;" src="${str}"></iframe>""");
sendEvent(event);
}
That did the trick. Thanks a lot!
I figured it out ... eventually.
I had to enable cookies for the airnow API under the site settings of the Hubitat Dashboard in my browser.