@Max_G
This is also possible in OH2! (I use ‘weather’ in OH2 on a Windows system!)
Your weather configuration goes to (if you are on Windows, if not, see at the bottom):
\conf\services\weather.cfg
The weather.zip you have to devide up:
the folder “images” (and all subfolders) goes to:
\conf\html\weather-data\images
the folder “layouts” goes to:
\conf\html\weather-data\layouts
move the example.html from
\conf\html\weather-data\layouts
to
\userdata\webapps\weather-data\layouts
Edit the example.html
first change all “paths” inside (after the word “static”):
<link rel="stylesheet" type="text/css" href="static/weather-data/layouts/example.css" />
<script type="text/javascript" src="static/weather-data/layouts/example.js"></script>
<td rowspan="2"><img id="weather-icon" src="static/weather-data/images/${param:iconset}/${weather:condition.commonId}.png"/></td>
<td><img src="static/weather-data/images/${param:iconset}/${forecast(0):condition.commonId}.png"/></td>
<td><img src="static/weather-data/images/${param:iconset}/${forecast(1):condition.commonId}.png"/></td>
<td><img src="static/weather-data/images/${param:iconset}/${forecast(2):condition.commonId}.png"/></td>
<td><img src="static/weather-data/images/${param:iconset}/${forecast(3):condition.commonId}.png"/></td>
.
.sitemap: change “locationId” (if you are useing it) to your corresponding “locationId” from weather.cfg and “layout” =example (the name comes from example.html (without .html)
Webview url="/weather?locationId=home&layout=example&iconset=colorful" height=15
.
The rest should be the same like in OH1.
EDIT: (default file locations)
System Linux Linux Windows
===========================================================================================================
File Location Repository Installation Manual Installation
openHAB application /usr/share/openhab2 /opt/openhab2 C:\openHAB2\runtime
Additional add-on files /usr/share/openhab2/addons /opt/openhab2/addons C:\openHAB2\addons
Site configuration /etc/openhab2 /opt/openhab2/conf C:\openHAB2\conf
Log files /var/log/openhab2 /opt/openhab2/userdata/logs C:\openHAB2\userdata\logs
Userdata like rrd4j db /var/lib/openhab2 /opt/openhab2/userdata C:\openHAB2\userdata
Backups folder /var/lib/openhab2/backups /opt/openhab2/backups (not preconfigured)
Service configuration /etc/default/openhab2 (not preconfigured) C:\openHAB2\userdata\etc
.
.
Mine looks like:
.