@fogg Ich habe gerade gesehen, dass Du das auch auf GitHub verlinkt hast. Deshalb das Ganze hier nochmal "reday 4 import", so muss man es im Bedarfsfall nicht mühsam nachbauen. Es gibt noch mehr Werte die bei einigen Stationen offenbar nicht zurückgesetzt werden, wenn deren Wert "0" ist, UVraw z.Bsp. da ich die aber nicht nutze, habe ich sie auch nicht berücksichtigt. Im Bedarfsfall müssten diese auch noch "behandelt" werden.
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="on" id="LNyTQS.BvTh-Rt9==?Kp" x="-62" y="13">
<field name="OID">sainlogic.0.info.last_update</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="comment" id="an=XANa/0LYB%mYk%~~%">
<field name="COMMENT">rain</field>
<next>
<block type="controls_if" id="6czyxJR+2pq9EHlr/f6A">
<value name="IF0">
<block type="logic_compare" id="$bBmCt.uvpR!XD[dM*.D">
<field name="OP">GT</field>
<value name="A">
<block type="math_arithmetic" id="w5(18=Tt2d@5U_|QQ9@$">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="j3m$h0ULcH}t:!hbfO9O">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="oAu|pY%s2_^WoBbv0Qvh">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="TV~:P}@+u:n$rZnU$,l;">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="?o)vRNl+D.{/3Z5}~Uxc">
<field name="ATTR">ts</field>
<field name="OID">sainlogic.0.info.last_update</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="o!i~UuUlu7BTw/=lu%DT">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="l+UPcH1_Ia.$Nxt?xll-">
<field name="ATTR">ts</field>
<field name="OID">sainlogic.0.weather.current.rain</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="q`i17?|VKYfE5x}o8;;y">
<field name="NUM">6000</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="oS;a*H;^CR@64BMaH3`q">
<field name="NUM">30</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id=";3M$F_}:rOPw3mOuCX}k">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sainlogic.0.weather.current.rain</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="Q~dANYB]^-!CPjuTUjeR">
<field name="NUM">0</field>
</block>
</value>
</block>
</statement>
<next>
<block type="comment" id="Bqv-5+*nVvus6lBXw=X?">
<field name="COMMENT">solarradiation</field>
<next>
<block type="controls_if" id="|$h7nWjAd]~Yf6|:O2![">
<value name="IF0">
<block type="logic_compare" id="wx849liGGz4$n;f|RGoX">
<field name="OP">GT</field>
<value name="A">
<block type="math_arithmetic" id="~vy)ql0l(O%)U3hiLAn7">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="|lbR7]J)cv342Nzsu4Ao">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="*b~/DPrhimdCGtAA-0=e">
<field name="ATTR">ts</field>
<field name="OID">sainlogic.0.info.last_update</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="h?aHx;TG5VU]S)*hL()j">
<field name="ATTR">ts</field>
<field name="OID">sainlogic.0.weather.current.solarradiation</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="7jRQv.z8^tBy8li9nsDq">
<field name="NUM">6000</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="*)%H}!$JWY!L.x8D;}2_">
<field name="NUM">30</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="65zKOm(}=f8=3/Dt*Ilb">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sainlogic.0.weather.current.solarradiation</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="7-|M{G^ZY]zEgVjNWA:6">
<field name="NUM">0</field>
</block>
</value>
</block>
</statement>
<next>
<block type="comment" id="b;qGCpF7OdY1Y1k@t$C?">
<field name="COMMENT">uvi</field>
<next>
<block type="controls_if" id="YAPB9uywFoW*;q$v)5=o">
<value name="IF0">
<block type="logic_compare" id="%ID+[Zla|9E7-PQ^;Uw=">
<field name="OP">GT</field>
<value name="A">
<block type="math_arithmetic" id="$41u^tf!uv2|rlc.;3j)">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="]jj_|f=M8}aP?R$.jF@s">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="hq5g3BaqWe:K(hE/@*.8">
<field name="ATTR">ts</field>
<field name="OID">sainlogic.0.info.last_update</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="El-m(h~{Nw{6ixL;kd*_">
<field name="ATTR">ts</field>
<field name="OID">sainlogic.0.weather.current.uvi</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="OmzN*u?+k7Ko{zcA;aq[">
<field name="NUM">6000</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="jmLtbc$N+)@IHu0sw.HA">
<field name="NUM">30</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="K9qy/]Rq;O6UF.%CKfdE">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sainlogic.0.weather.current.uvi</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="[}vEL{=l2Y`=7~EjWGMv">
<field name="NUM">0</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="schedule" id="LN%,Hr1oMT:faAwx,ow@">
<field name="SCHEDULE">1 0 * * *</field>
<statement name="STATEMENT">
<block type="comment" id="+TM^s,iYmWV;;*x(L$3A">
<field name="COMMENT">dailyrain</field>
<next>
<block type="control" id="dnRQaJeg6I$GbKId071^">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sainlogic.0.weather.current.dailyrain</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="O-)w`IJXLZLj544/L8ZI">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="schedule" id="si?OSYOI=rQz;ngXZ,VM">
<field name="SCHEDULE">1 0 * * 0</field>
<statement name="STATEMENT">
<block type="comment" id="kDgZBec{YNRvZZt;w.%r">
<field name="COMMENT">weeklyrain</field>
<next>
<block type="control" id="[A1f?l6+(NuSV/:-;*w*">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sainlogic.0.weather.current.weeklyrain</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="q^AI(ML=L3wQWs3/1r(X">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="schedule" id="IbYvVtndr:oD)GuPQ8%h">
<field name="SCHEDULE">1 0 1 * *</field>
<statement name="STATEMENT">
<block type="comment" id="X#2Pd,4PWUq-(mC(ohrC">
<field name="COMMENT">monthlyrain</field>
<next>
<block type="control" id="Lh#UdC(++.^mNP6T[@.L">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sainlogic.0.weather.current.monthlyrain</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="isDgIA!h{:es/tEB(.#e">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="schedule" id="5Y,$op`8rIpNpC**;WRm">
<field name="SCHEDULE">1 0 1 1 *</field>
<statement name="STATEMENT">
<block type="comment" id="m:W!([@Pr`r-NdJ:[SLO">
<field name="COMMENT">yearlyrain</field>
<next>
<block type="control" id=".0+;eGUs2NfBax.ws2{M">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sainlogic.0.weather.current.yearlyrain</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="hV#u:T;7q1S7f8dr{?To">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
Grüße und DANKE für Deine Arbeit!