…ist zwar schon ein paar Tage her, aber ich kann ja mal das Blockly posten, das ich nutze.
Ich habe das für 4 Datenpunkte gemacht.
Zudem habe ich es in eine Funktion gepackt, damit die URL's nicht nur bei Änderung, sondern auch beim Start des Scriptes aktualisiert werden.
Es werden immer alle 4 URLs neu ermittelt, sobald sich ein Datenpunkt ändert. Kann man sicherlich eleganter machen, aber da war ich zu faul dafür
! <xml 1999/xmlns="<URL url=" http:/www.w3.org/xhtml"="">http://www.w3.org/1999/xhtml">
! <block type="procedures_defnoreturn" id=";2E7ZXK5sEpvp@xbi/q" x="63" y="13"><field name="NAME">etwas tun</field>
! <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
! <statement name="STACK"><block type="variables_set" id="4na(^.{Hy(K)tEU.+1XX"><field name="VAR">1</field>
! <value name="VALUE"><block type="get_value" id="#eQvMK@(A+pJK_Qt!I@2"><field name="ATTR">val</field>
! <field name="OID">daswetter.0.NextHours.Location_1.Day_1.iconURL</field></block></value>
! <next><block type="variables_set" id="{9r^{t?KS[D!r#JXsRr"><field name="VAR">Stelle</field>
! <value name="VALUE"><block type="text_indexOf" id="@k?9E%UVmWtc!|y65D]"><field name="END">LAST</field> ! <value name="VALUE"><block type="variables_get" id=".O5;E*}bIS_V]vr#B6(N"><field name="VAR">1</field></block></value> ! <value name="FIND"><shadow type="text" id="D]*Ubf*h9,3|jY}@e/G^"><field name="TEXT">/</field></shadow></value></block></value> ! <next><block type="variables_set" id="lx-Lcl*t}K]]cP%WG{%i"><field name="VAR">Länge</field> ! <value name="VALUE"><block type="text_length" id="g%4DUE_|:7unmn4QE8):"><value name="VALUE"><shadow type="text" id="Xa5y16*KaXzTLTmJU*+["><field name="TEXT">abc</field></shadow> ! <block type="variables_get" id="Vv}?g(@6?Aw
6;O0Lakz"><field name="VAR">1</field></block></value></block></value>
! <next><block type="variables_set" id="y|=8:K)WM.#aK@D@:yC"><field name="VAR">1</field>
! <value name="VALUE"><block type="text_getSubstring" id="Z]frexxVM.o~wjXKb~-"><mutation at1="true" at2="true"></mutation>
! <field name="WHERE1">FROM_START</field>
! <field name="WHERE2">FROM_START</field>
! <value name="STRING"><block type="variables_get" id="%x^J6k_e%PnVg(KOC~tE"><field name="VAR">1</field></block></value>
! <value name="AT1"><block type="variables_get" id="#%a^@|6.Ks#TGl_2K]Ja"><field name="VAR">Stelle</field></block></value>
! <value name="AT2"><block type="variables_get" id="MyBg;R[.*8u76[k{xqU"><field name="VAR">Länge</field></block></value></block></value> ! <next><block type="variables_set" id="8d(Kbhsk:?K_Prz!Gea|"><field name="VAR">1</field> ! <value name="VALUE"><block type="text_join" id="VKu#,pKh2Ktln::ZyN*U"><mutation items="2"></mutation> ! <value name="ADD0"><block type="text" id="jcJ[O,wChI@d;]uB|CYw"><field name="TEXT">/vis.0/main/img</field></block></value> ! <value name="ADD1"><block type="variables_get" id="m=s^mZ?P+f1K9NF3
-HK"><field name="VAR">1</field></block></value></block></value>
! <next><block type="update" id="#vU9DT(P/%x(Mmd[Qb;v"><mutation delay_input="false"></mutation>
! <field name="OID">111.0.Weather.1</field>
! <field name="WITH_DELAY">FALSE</field>
! <value name="VALUE"><block type="variables_get" id="4lTa(fG(YxAP]6k7AhAK"><field name="VAR">1</field></block></value>
! <next><block type="variables_set" id=",|/Z^)SR_)%DXa@maSg;"><field name="VAR">2</field>
! <value name="VALUE"><block type="get_value" id="7gj8e{]){w]TE,e#(0VR"><field name="ATTR">val</field>
! <field name="OID">daswetter.0.NextHours.Location_1.Day_2.iconURL</field></block></value>
! <next><block type="variables_set" id="e^qYK#n.OH_:1hYVn:J"><field name="VAR">Stelle</field> ! <value name="VALUE"><block type="text_indexOf" id="1[=,X^Ib2pG!fMv%74Jm"><field name="END">LAST</field> ! <value name="VALUE"><block type="variables_get" id="
UYyIqDrr-BS5)o^y)Dv"><field name="VAR">2</field></block></value>
! <value name="FIND"><shadow type="text" id="[nUR0|9W_R(jIecq+w*"><field name="TEXT">/</field></shadow></value></block></value> ! <next><block type="variables_set" id="dyML{8yvxopPUx:^Zj.l"><field name="VAR">Länge</field> ! <value name="VALUE"><block type="text_length" id="[-IdCz3CjL2d}7=m^MXP"><value name="VALUE"><shadow type="text" id="Xa5y16*KaXzTLTmJU*+["><field name="TEXT">abc</field></shadow> ! <block type="variables_get" id="^F{i~w(p8~4nprxpX7*O"><field name="VAR">2</field></block></value></block></value> ! <next><block type="variables_set" id="B4tS./Z-,oRooxUx89pW"><field name="VAR">2</field> ! <value name="VALUE"><block type="text_getSubstring" id="xx+iMNPzK|;9T~o*qb*{"><mutation at1="true" at2="true"></mutation> ! <field name="WHERE1">FROM_START</field> ! <field name="WHERE2">FROM_START</field> ! <value name="STRING"><block type="variables_get" id="%Q,Y1|[KAH-.
%|5YRHA"><field name="VAR">2</field></block></value>
! <value name="AT1"><block type="variables_get" id="L]omMOm?n~8F{PNLHh)~"><field name="VAR">Stelle</field></block></value>
! <value name="AT2"><block type="variables_get" id="sVV)!alLiOQ}dG.afG"><field name="VAR">Länge</field></block></value></block></value>
! <next><block type="variables_set" id="lQirSv[v@Al?+gU@Tq?T"><field name="VAR">2</field>
! <value name="VALUE"><block type="text_join" id="CU%6y+|?b_34!zy+JSC,"><mutation items="2"></mutation>
! <value name="ADD0"><block type="text" id="gR6S9CX0v)m/GE@~y45B"><field name="TEXT">/vis.0/main/img</field></block></value>
! <value name="ADD1"><block type="variables_get" id="yXP5z[U#MG/qlj?Sj_4"><field name="VAR">2</field></block></value></block></value> ! <next><block type="update" id="2]EiDCn?Rh]F7=iX=13m"><mutation delay_input="false"></mutation> ! <field name="OID">111.0.Weather.2</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="variables_get" id="VAZ}ZfJGUz3cYuF]h.S9"><field name="VAR">2</field></block></value> ! <next><block type="variables_set" id="B)ww,D2qKui6W!AgX[CZ"><field name="VAR">3</field> ! <value name="VALUE"><block type="get_value" id="xDS8!5ut_L*%%GeGuX(;"><field name="ATTR">val</field> ! <field name="OID">daswetter.0.NextHours.Location_1.Day_3.iconURL</field></block></value> ! <next><block type="variables_set" id="z[ID2ae{=HKf[07zQ{?z"><field name="VAR">Stelle</field> ! <value name="VALUE"><block type="text_indexOf" id="2;d4Zh.5Kq9#!JT]S|zs"><field name="END">LAST</field> ! <value name="VALUE"><block type="variables_get" id="2~xFoLlkia2Y)msWDJvB"><field name="VAR">3</field></block></value> ! <value name="FIND"><shadow type="text" id="m~C[UUz0Aq-MVqquE-:d"><field name="TEXT">/</field></shadow></value></block></value> ! <next><block type="variables_set" id="KhwcnpT%Drpxyg~z3L_T"><field name="VAR">Länge</field> ! <value name="VALUE"><block type="text_length" id="(XXK5]@E3,cyVSN.=o6X"><value name="VALUE"><shadow type="text" id="Xa5y16*KaXzTLTmJU*+["><field name="TEXT">abc</field></shadow> ! <block type="variables_get" id="}2w
qoh%TkWd)5h2,x!F"><field name="VAR">3</field></block></value></block></value>
! <next><block type="variables_set" id="la?vTvz@(lB*^niU7ski"><field name="VAR">3</field>
! <value name="VALUE"><block type="text_getSubstring" id="{Oq24%y1Pz)DCT-ju={"><mutation at1="true" at2="true"></mutation> ! <field name="WHERE1">FROM_START</field> ! <field name="WHERE2">FROM_START</field> ! <value name="STRING"><block type="variables_get" id="/qQ8alAfq^7LKErc=k[i"><field name="VAR">3</field></block></value> ! <value name="AT1"><block type="variables_get" id="5N[XQ!^{dx[YuznVc)Lt"><field name="VAR">Stelle</field></block></value> ! <value name="AT2"><block type="variables_get" id="%#JsYS{.:lY^umDH*Rv;"><field name="VAR">Länge</field></block></value></block></value> ! <next><block type="variables_set" id="–zPf}Oos];xo;NU~bAN"><field name="VAR">3</field> ! <value name="VALUE"><block type="text_join" id=";,eU1Xop2eJs_3Uq+(%K"><mutation items="2"></mutation> ! <value name="ADD0"><block type="text" id="bP*csd!Kz0p(x3vPr24P"><field name="TEXT">/vis.0/main/img</field></block></value> ! <value name="ADD1"><block type="variables_get" id="W?kG/[Ojcd:Jds_(wd;I"><field name="VAR">3</field></block></value></block></value> ! <next><block type="update" id="g{y;f].G)wBvTR_6ZFY2"><mutation delay_input="false"></mutation> ! <field name="OID">111.0.Weather.3</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="variables_get" id=":@b{A-Kg{-@9!yuGHUjQ"><field name="VAR">3</field></block></value> ! <next><block type="variables_set" id="DRfsnWLShD[p%J=3T8?w"><field name="VAR">4</field> ! <value name="VALUE"><block type="get_value" id="~(74JHvn:ossh1;Fe2t7"><field name="ATTR">val</field> ! <field name="OID">daswetter.0.NextHours.Location_1.Day_4.iconURL</field></block></value> ! <next><block type="variables_set" id="X!DW]btPcNF-oxA2;j|("><field name="VAR">Stelle</field> ! <value name="VALUE"><block type="text_indexOf" id="qenwKETo}ZuVVdwmy
8o"><field name="END">LAST</field>
! <value name="VALUE"><block type="variables_get" id="l-;dm#X4GrC(;0KMc%cV"><field name="VAR">4</field></block></value>
! <value name="FIND"><shadow type="text" id="#99)%bn+0m#7ji,7:|yX"><field name="TEXT">/</field></shadow></value></block></value>
! <next><block type="variables_set" id="rF7Mv/,a[RIOE{wH%p79"><field name="VAR">Länge</field>
! <value name="VALUE"><block type="text_length" id="ZLP8c!|eu!JdAQAKx*:9"><value name="VALUE"><shadow type="text" id="Xa5y16KaXzTLTmJU+["><field name="TEXT">abc</field></shadow>
! <block type="variables_get" id="_kgI[pAe{yZNDD~tQT!"><field name="VAR">4</field></block></value></block></value>
! <next><block type="variables_set" id="pWHjqyxi0m6no#|DEirF"><field name="VAR">4</field>
! <value name="VALUE"><block type="text_getSubstring" id="ANNEPB3:/w|yGH0huJjB"><mutation at1="true" at2="true"></mutation>
! <field name="WHERE1">FROM_START</field>
! <field name="WHERE2">FROM_START</field>
! <value name="STRING"><block type="variables_get" id="vUOjCgNsly-K2nKftJT7"><field name="VAR">4</field></block></value>
! <value name="AT1"><block type="variables_get" id="l4Hp2tfs-Y)?%cDO5)]+"><field name="VAR">Stelle</field></block></value>
! <value name="AT2"><block type="variables_get" id="KH=Wo?w:0st8IG[1]=v"><field name="VAR">Länge</field></block></value></block></value>
! <next><block type="variables_set" id="k3m9a|o_lk.D9?xq9Q:a"><field name="VAR">4</field>
! <value name="VALUE"><block type="text_join" id="J~~({kmYw7S;oR(L|527"><mutation items="2"></mutation>
! <value name="ADD0"><block type="text" id="7NGmNgFF~zQ*;3-6Sx?"><field name="TEXT">/vis.0/main/img</field></block></value> ! <value name="ADD1"><block type="variables_get" id="y@kr43r^%PF}C]U
).,%"><field name="VAR">4</field></block></value></block></value>
! <next><block type="update" id="AqdEN#rpR1J{#K[mg"><mutation delay_input="false"></mutation>
! <field name="OID">111.0.Weather.4</field>
! <field name="WITH_DELAY">FALSE</field>
! <value name="VALUE"><block type="variables_get" id="oe?x==G)PJ2OJ^+bhc^t"><field name="VAR">4</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block>
! <block type="procedures_callnoreturn" id="GypsXBL1H6s^TK~~~Rt" x="78" y="923"><mutation name="etwas tun"></mutation>
! <next><block type="on_ext" id="z)-vUxK/D4p42(.5*#k:"><mutation items="4"></mutation>
! <field name="CONDITION">ne</field>
! <value name="OID0"><shadow type="field_oid" id="M(:ab56^/v;2DA8VZcz0"><field name="oid">daswetter.0.NextHours.Location_1.Day_1.iconURL</field></shadow></value>
! <value name="OID1"><shadow type="field_oid" id="@53!!+Ez9;(1*nRyyQl+"><field name="oid">daswetter.0.NextHours.Location_1.Day_2.iconURL</field></shadow></value>
! <value name="OID2"><shadow type="field_oid" id="[llv#nT=|Da7R[baAzM"><field name="oid">daswetter.0.NextHours.Location_1.Day_3.iconURL</field></shadow></value> ! <value name="OID3"><shadow type="field_oid" id="tADz(8VZJ#RLX}DX+fR7"><field name="oid">daswetter.0.NextHours.Location_1.Day_4.iconURL</field></shadow></value> ! <statement name="STATEMENT"><block type="procedures_callnoreturn" id="-pOe@X|MzFOW
9/_gm!5"><mutation name="etwas tun"></mutation></block></statement></block></next></block>
! <shadow type="field_oid" id="A7VUmq1XwHXp=s{s#E0k" x="205" y="1065"><field name="oid">default</field></shadow></xml>
…und Danke an den Treadersteller !!! Ich hatte mir ebenfalls den Wolf gesucht und dank deiner Vorarbeit war es "nur noch" reine Fleissarbeit um das Script zu erstellen....
Gruss
gBonfire