While I realise that the thread sort of went off the rails
I can now say, after getting my head around this for 5 minutes, it was straight forward. … sort of.
On a pristine OHv2 install via apt-get, there will be two folders present:
/etc/openhab2/html/
/var/lib/openhab2/
The ‘old’ Yahoo folder called weather-data needs to be copied into
/etc/openhab2/html/ resulting in
/etc/openhab2/html/weather-data/
I created the required webapps in /var/lib/openhab2/
, like so:
sudo mkdir /var/lib/openhab2/webapps
resulting in:
/var/lib/openhab2/webapps/
Instead of copying files to the second location, I created a symbolic link, like so:
sudo ln -s /etc/openhab2/html/weather-data /var/lib/openhab2/webapps/weather-data
Then changed the ownership to OH, like so:
sudo chown openhab:openhab /var/lib/openhab2/webapps
In the widget file, in various posts here referred to as example.html, add the string static/
before all references to weather-data/
as described here.
In case you had a webview in your sitemap, it will just work.
Good luck @trhessel