Good Weather widget with external URL for BasicUI webview?

Hi guys,

I wanted to ask if someone as coming across a good weather widget for BasicUI. The reason I’m asking for a widget and not want to implement it via a binding and route its information to a local formatted html file is, that I want to acess this widget via openhabcloud. And therefore the easiest way is to use a weather widget from an external website.

I looked at the https://darksky.net/widgets which are nicely configurable, but I unfortunately don’t get a static URL out of it. Other websites offer widget, bu they embedded it with scripting (java), which is not useable as I want to use the webview element on the sitemap directing to an external website.

So does anyone know of a good weather widget, which might be configurable and has a direct static link as output?

Hey that’s a cool idea

You can use darksky widgets if you want you just need to create your own static webpage.

ok
In the HTML folder in openhab create a file

weather.html

<html>
<script type='text/javascript' src='https://darksky.net/widget/default/42.360082,-71.05888/us12/en.js?height=500&title=Full Forecast&textColor=333333&bgColor=FFFFFF&skyColor=333&fontFamily=Default&units=us&htColor=333333&ltColor=C7C7C7&displaySum=yes&displayHeader=yes'></script>
</html>

You can use your own script you configure on dark sky

Then in your sitemap

Webview url="http://openhabianpi:8080/static/weather.html"

I use openhabian on pi but you can put your ip in.

I use OpenWeatherMap binding for my weather info.