<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; "><div><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; ">Hallo Zusammen</span></div><div><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; "><br></span></div><div>Ich arbeite mich gerade ein wenig in die Struktur des dSS ein. Dabei versuche ich im Moment gerade über eine externen Event, welcher mittels Tastendruck ausgelöst wird (sceneID = 50) eine Java-File aufzurufen. Im Java-File selbst ist lediglich ein kleiner Timer implementiert. Nach Ablauf dieses wird das Java-file wieder verlassen. </div><div>Um besagtes zu realisieren, habe ich im File "subskriptions.xml" folgende Zeilen geschrieben:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(217, 40, 35); "><span style="color: #000000"> </span><span style="color: #c22a9c"><subscription </span><span style="color: #977d40">event-name</span><span style="color: #c22a9c">=</span>"callScene"<span style="color: #c22a9c"> </span><span style="color: #977d40">handler-name</span><span style="color: #c22a9c">=</span>"javascript"<span style="color: #c22a9c">></span><span style="color: #000000"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(194, 42, 156); "><span style="color: #000000">    </span><parameter></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">      <span style="color: #c22a9c"><parameter </span><span style="color: #977d40">name</span><span style="color: #c22a9c">=</span><span style="color: #d92823">"filename"</span><span style="color: #c22a9c">></span>../data/recall_freezer_A.js<span style="color: #c22a9c"></parameter></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(194, 42, 156); "><span style="color: #000000">    </span></parameter><span style="color: #000000">    </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(194, 42, 156); "><span style="color: #000000">    </span><filter <span style="color: #977d40">match</span>=<span style="color: #d92823">"all"</span>></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(194, 42, 156); "><span style="color: #000000">       </span><property-filter <span style="color: #977d40">type</span>=<span style="color: #d92823">"matches"</span> <span style="color: #977d40">value</span>=<span style="color: #d92823">"50"</span> <span style="color: #977d40">property</span>=<span style="color: #d92823">"sceneID"</span> /></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(194, 42, 156); "><span style="color: #000000">    </span></filter></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(194, 42, 156); "><span style="color: #000000"> </span></subscription></div></div><div><br></div><div>Wenn ich den dSS nun starte und besagten Event auslöse erhalte ich folgende Konsolenausgabe:</div><div><br></div></span><div><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; ">[2011-12-07 19:30:25][Debug][Apartment] OnDeviceCallScene: dsMeter-id '3504175fe000001000000936' for device '744' scene: 50<br>[2011-12-07 19:30:25][Info][EventInterpreter] Queue: New event 'callScene' in queue...<br>[2011-12-07 19:30:25][Debug][EventInterpreter] Got event from queue: 'callScene'<br>[2011-12-07 19:30:25][Debug][EventInterpreter] Parameter 'sceneID' = '50'<br>[2011-12-07 19:30:25][Debug][EventInterpreter] Subscription 'callScene_javascript' matches event<br>[2011-12-07 19:30:25][Debug][EventInterpreter] Found handler 'javascript' calling...<br>[2011-12-07 19:30:25][Error][EventInterpreter] Caught exception while handling event: EventInterpreteRPluginJavascript::handleEvent: missing argument filename1<br>[2011-12-07 19:30:25][Debug][EventInterpreter] called.<br>[2011-12-07 19:30:25][Debug][EventInterpreter] Done processing event 'callScene'</span></div><div><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; ">Was für ein Argument "filename1" wird hier vermisst? Muss ich das js-file ggf. noch vorgehend irgendwo laden?</span></div><div><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; ">Vielen Dank für eure Hilfe</span></div><div><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-size: 12px; line-height: 15px; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; ">Gruss Manu</span></div></body></html>