- Home
- Deutsch
- Skripten / Logik
- Regenvorhersage mit Swiss-Weather-Adapter
Regenvorhersage mit Swiss-Weather-Adapter
-
Hallo zusammen
Ich habe bei mir den Swiss-Weather-Adapter installiert (https://github.com/baerengraben/iobroker.swiss-weather-api). Dieser funktioniert grundsätzlich prächtig und ich kann visualisieren, wie das Wetter der einzelnen Tage ausschaut.
Nun würde ich aber am Morgen sehr gerne mittels Hue-Lampe signalisieren, wenn es regnen sollte. Das zu machen wäre kein Problem, nur fehlt leider beim Adapter einen Wert, ob es regnet oder nicht, weshalb mir der Trigger fehlt. Anhang der Bild-URL's könnte ich herleiten, ob es ein Bild mit Regen ist. Leider hat es keine Zusammenstellung aller Bilder-URLs (zumindest habe ich keine gefunden), weshalb ich das nicht manuell machen kann.
Hat jemand eine Idee, wie ich das machen könnte?
Danke für eure Hilfe.
Danielos
-
Hat keiner eine Idee, oder hat etwas ähnliches mit einem anderen Adapter realisiert? Danke für die Hilfe....
-
@danielos Anfrage ist schon etwas her, vielleicht suchst Du ja trotzdem noch immer.
Ich habe es mit Wunderground gelöst.
Ich prüfe auf das Wetter der nächsten 2 Stunden. Wetter gut = Grün, Starker Wind = Rot, Regen = Blau
Dafür nutze ich einen LED-Stripe direkt auf die Tür geklebt.
<block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="fLUeLA@!9ZMDjGhy%^.g" x="-3013" y="-812"> <field name="SCHEDULE">*/10 * * * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="39luy0dBlz0L(NLtimjM"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="jDq=miX*9B1z?zuyD-21"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="CIurW=Miy6lFA(s*tYhP"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="gq4B.gy8BrV-8].ZH{R`"> <field name="ATTR">val</field> <field name="OID">javascript.0.manuell_angelegte_Datenpunkte.Licht.Wetterlicht.Dauerhaftanzeigen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="+q|M8(,3)rU}yneAWLik"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="o1OL-.)SD?qg_0`=B3!T"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="kY0MPQ/WA5.4{Y*V!7@`"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="7[:4#UiB_@d.8$n!Nv;g"> <field name="ATTR">val</field> <field name="OID">javascript.0.manuell_angelegte_Datenpunkte.Licht.Wetterlicht.nurzuvorgegebenenZeitenanzeigen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Je4z1zFpL(e%MD2iLFN)"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="Kk~#It9q}?Z$(v{9Lt2!"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="iQ|rPPV{Vw6IEogcNE$H"> <field name="OP">GT</field> <value name="A"> <block type="time_get" id="yw.L3Zq+`{t`t}aEjz#w"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm</field> </block> </value> <value name="B"> <block type="text" id="ENoQqS:HuRy2j/Jc-yY5"> <field name="TEXT">06:45</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Z+{33*]gnc0h(PT.Q^(E"> <field name="OP">LT</field> <value name="A"> <block type="time_get" id="fs3@dhE@EL~f7J37oVHH"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm</field> </block> </value> <value name="B"> <block type="text" id="JFjzsDq[RatyH#J|r:nU"> <field name="TEXT">09:45</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="/Fs*c6V6EaCe[9nkFK5_"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Cb]u-!B-AIP[MJ1O)g;9"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="VDX$zHsY9eORo?6MKzpQ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="%{cJV=DZrjSf`HlH!Vxd"> <field name="NUM">1</field> </block> </value> <next> <block type="controls_if" id="zM^*^TU8E[e4TT)i=QWE"> <value name="IF0"> <block type="logic_operation" id=";k%3yOlMBB@hJ|*eK-L@"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="a!FEO:3DV56s~?=N;fB_"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id=",Quy[{M}v=ga](rE-#zO"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="h?g@NAx_pZY|+lDMr@h3"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="{-1|ks?ri`~{ozR(1jzP"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="qg]T^]#VtLO(K?R,KC6r"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="mtc2S4PYCSAVdoXQf3+!"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="lgs}|-+(;cp`(n=R%[xC"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="({WR|U.+I4aq]5zq4p5C"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="$*(%5OQcNnrL+4]q)`ZF"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="4?dy!:%lA5}A9%x6cK{W"> <field name="NUM">23</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="l?ej$*!dL.I*tl?#+jwR"> <field name="COMMENT">blau</field> <next> <block type="control" id="c+8$Gdj5._~g1K1EeDm*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="Prj*kqPf!mBTKR:B}i26"> <field name="TEXT">#1409e0</field> </block> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="gx#6KowG[|GixSf|80_r"> <value name="IF0"> <block type="logic_operation" id="(6|0uKyc5U{.[L#VRp]c"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="kyce[[T+IJS(0hH[IC)Q"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="A_2SLD-R_[dzyofRF(Jz"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id=")D9U,}3[QkaN(TkXu_}["> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="`7gmvzr}~gcMUz@l~@t("> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="5OGy6(A^WljM:0;Qu:`A"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="b|G`{=Rt(^/VOwPJz2cg"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="bL1Whav(@I|/N$[*Bzo;"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="uh/srGyi|T!)}fDSsQv3"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="Gz2z_,`:wxXo}|(U(2#W"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="0i|XFtc/Ex5=ymiMYch)"> <field name="NUM">23</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="AU?x2ZN8lf0`Cj|armRq"> <field name="COMMENT">Blau</field> <next> <block type="control" id="),[sHu23u4rlguth0,4|"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="vD/K}gdI$Oij,?qHtVy]"> <field name="TEXT">#1409e0</field> </block> </value> </block> </next> </block> </statement> <next> <block type="comment" id="TKl-lG/yT{o$2cIE{g,+"> <field name="COMMENT">Sturm und kein Regen = Rot</field> <next> <block type="controls_if" id="DDJ*j(]zd]00-++$dc};"> <value name="IF0"> <block type="logic_operation" id="K(_7%2-gx!3|Qj/DvZlk"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="V4(eFz^R,IU8^YCk8vav"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="p!DK@Yw^[o2MhhbH]/ov"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id=")u/=P0yJt[|8]$EDZu!N"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="t4m0}G{PgORfxVInG/FD"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="hR[l%oLyj$Ub22rX`q6@"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="7=}0Zl-/|~1T{!Df87)A"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="FMBp@b/b65/oxsrosSW)"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="foXU/(pst:[[Rmto%pmT"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=")dRIY*{a5/VCbFy?9.O."> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="pdC2`cNk*iABB-JKD62w"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="r0G%o+.[zNc(/x@t]XAa"> <field name="COMMENT">Rot</field> <next> <block type="control" id="}3b$@@S@-e@4TZIt*nl#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="@_hPEANWbR$1UHEK=B8v"> <field name="TEXT">#E30022</field> </block> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="XiZLK{[SP893$A@@KKv1"> <value name="IF0"> <block type="logic_operation" id="!/IPN}V=3bGFDN-LGNw."> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="77Swf8U/!Ppr~C;F{Pd."> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="([j29J7rHCLjr_Oz[{{g"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="Z+E:ap%V1#VGfan7$4S0"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="wx_r(*IHiM8:1J)*[=[x"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="18S:o;9CoK.IG921O%Q9"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@hYE#~h0EE7M0-q0_7@`"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="%Du_S1+J2h=7B=c,yUO,"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="AnmIc!}|PD-p%hr0xZS,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="h]P0~@e3[:1M/82z)N-."> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="oGSy?vH:6V2v66Q5h@kd"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="o4m9.5-yaSQ`*euO?um?"> <field name="COMMENT">Rot</field> <next> <block type="control" id="=9=pwSzm6$@S[o{F^pqK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="T)]*^zyFkTUT/Xtf;+PP"> <field name="TEXT">#E30022</field> </block> </value> </block> </next> </block> </statement> <next> <block type="comment" id="+z}+FrF[g+5JEpC:}0/f"> <field name="COMMENT">Sturm und Regen</field> <next> <block type="controls_if" id="of5%qYz}@QFqv;%-xLJd"> <value name="IF0"> <block type="logic_operation" id="sJfl(}fiv5Xy`By;K}]D"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="Bam^N{7Sr[wRZq[xNn9Y"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="cy^BMbAX|P$SI.w?m%:6"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="jwrj^PLjl8cGP]]FR@6x"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="0OxP{]L^P0c^*9!`AI*`"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="n9``ccBY9S`-Ov%/^!|~"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="~]m4f{HL1BOyc04yD3b{"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="xk[#IkZBz7E1DqN%%(0J"> <field name="COMMENT">Violett</field> <next> <block type="control" id="l5|2YN8N8{gnn7Y_fr:."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="j+!QSful+{19OH^R{T)."> <field name="TEXT">#BF3EFF</field> </block> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="IXzVF1Af)#c,%D;v8^mW"> <value name="IF0"> <block type="logic_operation" id="fx6SGYt9Q:D=1GXl%|{;"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="cw}gKQ`5,~8[*fm%!%sE"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="ep@aj~|A@@]GaXbHmXcj"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="Y0Sm8Fjb[A`.O6}LyGJu"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="6$-:pJ_9aTq.tE*M.LBA"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="/Q${G9:h-=7zuai-Sgp)"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="}=7u3R9!Oa:#-0c_[#,%"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="us5~1Xz$~A{hvv7O9fX9"> <field name="COMMENT">Violett</field> <next> <block type="control" id="=W2j2?Ory`vT:FtMy|6_"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="eJ%pgM~!@XjS:FC1:O[f"> <field name="TEXT">#BF3EFF</field> </block> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="HnvIsIFDwD+5C}QL14ld"> <value name="IF0"> <block type="logic_operation" id="uT.Jh-IWek6)S7n/`6gW"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="`B_zajLi}r1)`RP1SS%M"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="]t9@.9h3qk]G#;1u5H3)"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="kGL?siP[$Y?];]GiqJZj"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id=":qSUMPINoNEYC-BI#Dv."> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="-71-b/CzYy/R)i;7;$?`"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="+YS#paA/vZ31b1i4(8]v"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="fQLe@1i!4_bprGqjRU:L"> <field name="COMMENT">Violett</field> <next> <block type="control" id="xG6qvEy=Kn:0zV8h=)TC"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="sVQdYk3y4kHZrrytnaZQ"> <field name="TEXT">#BF3EFF</field> </block> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="({[r9~:`p34WQ/b+x-lg"> <value name="IF0"> <block type="logic_operation" id=",G;u6}!#tM|v2x#s$%MB"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="H[cfd4}{!9V3z=I!{{X2"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="[}RDAN.^xyp^snd@{{z!"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="Kdyw#%BM95}T_7TJ*oLI"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="H*z%rTgr|K3y/Q540O;8"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="~SY;mJfth^OcF;SV{E#q"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="F3~R.C8PCNe]bAc5-|?q"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="}].wiHRHm2e2o5S4EA;?"> <field name="COMMENT">Violett</field> <next> <block type="control" id="UK50I7UHY6lxXa|43kK@"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="Ih5c*3z}G5#K}+xn?rUp"> <field name="TEXT">#BF3EFF</field> </block> </value> </block> </next> </block> </statement> <next> <block type="comment" id="|9^IWpB(0v=~v1y:UUND"> <field name="COMMENT">Kein Regen, kein Sturm = Grün</field> <next> <block type="controls_if" id="6aO6#]EbnU(%-:t+@mDV"> <value name="IF0"> <block type="logic_operation" id=")Vr7Kru0,2|I!*7z/aJA"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="2-8U@2?Z0h{fKQ)u$,qn"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="q:wwbg@((H`RI./dCt1+"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="yWANJ05NLtT0E,+z6-c|"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="kqN5^I3X}t6p0_1pRJ-{"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="e*58x10ec3nYourSu/U|"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="TRoL`aIXT%dELq!0#UMt"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="kC$fPalYW199$1:OQInV"> <field name="NUM">23</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="d/aS;%8xo``,`z[:fYX5"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="7bu|`~NmUU@Rf7IKj-/:"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="T}2}K63k3z^h{J]HCeA1"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="T6]s7U,#cG6)5T*8D)Xg"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="9K1FNaP4qc+|SI9]R2gw"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="$D]qp~SoVW(^5#-A?,zl"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="$)AaS2=Ag]jItJf!Pc]5"> <field name="NUM">23</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="-%sC]!8ys0fC?L]KxAsK"> <field name="COMMENT">Grün</field> <next> <block type="control" id="I+Dm~QBmTP{Z(D*2Jod^"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="VK*:z:p0m]iipkHO!01N"> <field name="TEXT">#319e35</field> </block> </value> </block> </next> </block> </statement> </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> <statement name="ELSE"> <block type="control" id="=S*0=~nz.lj0r5#hyUTF"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.1.7cb03eaa00a5b421.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="|94*R))tRY$I5Z@w{BqR"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block>```
-
@patrickfro Spannend, danke für die Info! Kannst du damit auch eine Vorschau für den ganzen Tag geben? Mein Wunsch wäre ja, beim Frühstückstisch darauf hingewiesen zu werden, ob ich heute einen Regenschirm mitnehmen soll. Es reicht da natürlich nicht aus, nur die nächsten 2 Stunden abzufragen.
-
....ich habe den Adapter soeben installiert und gesehen, dass man hier deutlich mehr Daten rausholen kann als nur die nächsten 2 Stunden. Coole Sache, danke für den Tipp!!
Ich muss mir nun nur noch überlegen, wie ich die Daten interpretiere. Die "PrecipitationChance" ist ja die Regenwahrscheinlichkeit. Gerade bei 10% schon den Schirm aufgedrückt zu kriegen ist vielleicht etwas übertrieben...aber allenfalls nur vielleicht.
-
@danielos Ich bekomme momentan keine Daten für Regenwahrscheinlichkeit für den ganzen Tag geliefert, egal welche Station ich auswähle. Sollte es bei Dir ähnlich sein, kann man ja die stündliche n Daten auswerten per blockly etc.
Mir ging es mit den 2 Stunden auch darum, dass ich ohne Regenüberraschung als Radfahrer zur Arbeit komme. Mehr brauchte ich nicht
-
@danielos Schau mal ob es noch andere Adapter gibt.
Ich würde Dir ja DarkSky empfehlen - wenn ich könnte - die stellen ihren Dienst aber ein.
Da gibt so was wie einen Tages Forecast.
Musst halt mal bei den anderen Adaptern noch schauen - kann Dir leider nichts konkretes empfehlen, aber kann mir nicht vorstellen, dass DarkSky hier so einzigartig war.
Hab gerade bissi rumgegooglt, die Yahoo Wetter API macht so Tagesvorhersagen:
"forecasts":[ { "day":"Tue", "date":1546934400, "low":52, "high":61, "text":"Rain", "code":12 }, { "day":"Wed", "date":1547020800, "low":51, "high":62, "text":"Scattered Showers", "code":39 }, { "day":"Thu", "date":1547107200, "low":46, "high":60, "text":"Mostly Cloudy", "code":28 }, { "day":"Fri", "date":1547193600, "low":48, "high":61, "text":"Showers", "code":11 }, { "day":"Sat", "date":1547280000, "low":47, "high":62, "text":"Rain", "code":12 }, { "day":"Sun", "date":1547366400, "low":48, "high":58, "text":"Rain", "code":12 }, { "day":"Mon", "date":1547452800, "low":47, "high":58, "text":"Rain", "code":12 },
Dieser Weatherunderground Adapter vielleicht auch, aber das kann ich nicht sehen. Aber dafür gibt es einen Adapter im iobroker und ist ebenfalls hier unter den Top 5 Wetter APIs gelistet.
Diese Acu Weather API scheint gut zu sein: http://apidev.accuweather.com/developers/forecastsAPIParameters
Vielleicht probier ich die mal und sag Bescheid.
-
Also ich habe nun den Weather-Underground-Adapter genommen und der passt ganz gut. Ich lasse nun am Morgen den Text vom Objekt "weatherunderground.0.forecastPeriod.0p.state" über die Alexa vorlesen und dann habe ich auf der Tonspur gerade die wichtigsten Infos.
-
@danielos Ich sehe diese Frage erst jetzt. Evtl. hilft das ja noch:
Der Swiss-Weather-Adapter liefert die Regenwarscheinlichkeit in % auch mit. Unter "24hForecast">hour[0-7]>values>pr"
Du hast damit jeweils die Regenwarscheinlichkeit für die jeweils nächsten 3h (hour0 - 7) zur Verfügung.
Noch wichtig: Der früheste Zeitpunkt um die Daten für den neuen Tag zu erhalten ist ab 0:00 Uhr. Es ist also erst ab 0:00 Uhr möglich, die Regenwahrscheinlichkeit für den neuen Tag auszuwerten. Das sollte aber bei deinem Use-Case (so wie ich ihn verstehe) reichen.