Hello there,
I tried to install the weather binding, cause I want a weather widget at my sitemap.
I followed the steps of the weather binding.
i created at /var/lib/openhab2 the webapps folder.
After that, I created inside the webapps the weather-data -> layouts and put the example.html inside.
fully path:
/var/lib/openhab2/webapps/weather-data/layouts/example.html
then I go to /etc/openhab2/html
created the weather-data folder and put both folders from the retail download page of the weather binding inside.
/etc/openhab2/html/weather-data/images (with all images inside)
/etc/openhab2/html/weather-data/layouts (all layouts including the .css and example.html)
with the command
http://192.168.178.50:8080/weather?locationId=home&layout=example&iconset=colorful
it should be possible to open the .html… but it won’t…
So I tried to open the webview on the sitemap
Webview url="/weather?locationId=…&layout=example&iconset=colorful" height=7
I can see the correct temperature and the name of my city.
but none of those icons are filled.
I take a look at the .html for the correct path.
this is my includes.
link rel="stylesheet" type="text/css" href="html/weather-data/layouts/example.css" /> <script type="text/javascript" src="html/weather-data/layouts/example.js"></script>
<td rowspan="2"><img id="weather-icon" src="html/weather-data/weather-data/images/${param:iconset}/${weather:condition.commonId}.png"/></td>
<td><img src="html/weather-data/weather-data/images/${param:iconset}/${forecast(0):condition.commonId}.png"/></td> <td><img src="html/weather-data/weather-data/images/${param:iconset}/${forecast(1):condition.commonId}.png"/></td> <td><img src="html/weather-data/weather-data/images/${param:iconset}/${forecast(2):condition.commonId}.png"/></td>
I also tested the whole path like /etc/openhab2/html…/XXX but this won’t work too.
I don’t know, why the CSS or the images are not correctly recognized…
the normal items are correctly displayed at my sitemap
Text item=Temperature label=“Außen” icon=“temperature”
this works… only the widget doesn’t
can someone help?