Alright, I made the necessary changes to support Sweet Home 3D 5.5 JS Viewer and updated the readme (it was pretty straightforward).
If you already tried this and simply want to upgrade:
- download the new directive at https://github.com/ghys/habpanel-3dview
- download http://prdownloads.sourceforge.net/sweethome3d/SweetHome3DJSViewer-5.5.zip and extract it in
- upload your Sweet Home 3D project’s .sh3d file on your openHAB server and change your HABPanel template to invoke the directive like so:
<div oc-lazy-load="'/static/sweethome3d.directive.js'"> <sweet-home-3d style="position: absolute; left: 0; right: 0; top: 0; bottom: 0" lib-url="/static/SweetHome3DJSViewer-5.5/lib" sh3d-url="/static/SweetHome3DJSViewer-5.5/default.sh3d"> </sweet-home-3d> </div>
Note, the example template from https://github.com/ghys/habpanel-3dview/blob/master/3d-view.tpl.html was changed to work with the default.sh3d example bundled with Sweet Home 3D JS Viewer. You can click on the TV, the microwave, the dishwasher, the lights etc.
Additionally, the mouse cursor and name display will now change only when hovering interactive objects.
Thanks @Puybaret for the heads-up!