NEWS
HABpanel Speicherort für zusätzliche Ressourcen
-
Hallo zusammen,
ich versuche gerade ein CustomWidget im HABpanel (0.4.3) unter ioBroker zum laufen zu bringen.
<div oc-lazy-load="['/widgets/thermoKnob/ng-knob-thermo.js','/app/widgets/thermoKnob/control-oh.js']" style="position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 20px);"> <div ng-controller="knobCtrlOH"> <ui-knob-thermo value="value" current="current" heating="heating" options="options" config="config"></ui-knob-thermo> </div> </div>
Es geht um die beiden Javascripts. Wenn ich die Seite laufen lasse, sagt der Inspector das die Ressource ng-knob-thermo.js und control-oh-js nit gefunden werden (404). Ich habe schon alle möglichen Ablageorte für die Skripte ausprobiert.
Frage: Wo liegt das root-Verzeichnis vom ioBroker.web Adapter? Wo muss ich die Ressource ablegen und wie baut sich der Pfad zusammen (gibt es nur einen globalen Pfad, oder ist das auch Adapter/Widget abhängig)?
-
I have the exakt same issue. Using habpanel with openhab2, i can put the scripts in the openhab2 directory as explained in the Reader and the Demo widget is displyed correctly.
However Wien im using the iobroker habpanel, I don't know where to put the scripts and how to Reference them,. Openhab habpanel and iobroker habpanel run on different ports. So where is the correct location for the Java scripts? -
@roland-hofstetter
Did anybody found an answer in the meantime?
I have the exakt same issue.