NEWS
Nach Update ioBrokerAdmins alle 3 Wochen knapp 20m³ mehr
-
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="create" id="O0.%:4f-:Pqkysp}DPdK" x="63" y="-37"> <field name="NAME">GaszaehlerStand</field> <value name="VALUE"> <block type="math_number" id="DhL1vz/Iy1;/}/)[k9FO"> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="$(AthiGYY3W!+XI%po/t"> <field name="TEXT">{"type": "number", "unit": "m³"}</field> </block> </value> <next> <block type="create" id="kt:st]g_7HQ~1,AVg(+C"> <field name="NAME">GaszaehlerStandkWh</field> <value name="VALUE"> <block type="math_number" id="#Pt*uq1EN[v.o|eC$}9c"> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="bWM6wLsF^Y~MSK#E$4}0"> <field name="TEXT">{"type": "number", "unit": "kWh"}</field> </block> </value> <next> <block type="create" id="c~W+Vn@gO~$w,H9,3xML"> <field name="NAME">GaszaehlerStandkWhAktuell</field> <value name="VALUE"> <block type="math_number" id="6~||2y3P4g=*Gap6xyu("> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="uv{-J@N8j|XPi-fZ;Lc]"> <field name="TEXT">{"type": "number", "unit": "kWh"}</field> </block> </value> <next> <block type="on" id="[Aae;WUw?/GQLLaSi|YP"> <field name="OID">rpi2.0.gpio.23.state</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="update" id="{Fr+[nvsyzsRW=R)4u{|" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.GaszaehlerStand</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="J$]R.`;08=+yt0]}Ii|*" inline="false"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="(8#e7nEvA)961d@}=f1e"> <field name="NUM">1</field> </shadow> <block type="get_value" id="CUh_iTk5%z6jmF=-I~}Y"> <field name="ATTR">val</field> <field name="OID">javascript.0.GaszaehlerStand</field> </block> </value> <value name="B"> <shadow type="math_number" id="UpA:b_2XlkBjbm_gL8bq"> <field name="NUM">0.01</field> </shadow> </value> </block> </value> </block> </statement> <next> <block type="on" id="|6!Nh%NKoNreoIx{kE(B"> <field name="OID">javascript.0.GaszaehlerStand</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="gz7=_OL%2?bU~j;XKk%R"> <field name="COMMENT">m³ * Zustandszahl * Brennwert</field> <next> <block type="update" id="8$E,+yL|3cVhOf:%4~@W" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.GaszaehlerStandkWh</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=":a7CEg1}#$XfI]rAO}2/"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="Cm#rg^1=.kzHerEE(q1G"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id="P~7p{TAN8J!hbi}wF=,s" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="_zw?QIdjf[qQd_(c(X(V"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="h/K]6epkq4eEmczq#XW4" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="cr[7/qN25UTSH_]kjR/S"> <field name="NUM">1</field> </shadow> <block type="on_source" id="-Vo;;;BDSiGRGu.Y~q0L"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <shadow type="math_number" id="UNm.pI?(Vmrk*-{~Q!hs"> <field name="NUM">0.9595</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="K=xmEI^vFAvsM0@aV]/G"> <field name="NUM">10.247</field> </shadow> </value> </block> </value> </block> </value> </block> </next> </block> </statement> <next> <block type="on" id="p6?`i9$CD@7{adfD}:X="> <field name="OID">javascript.0.GaszaehlerStand</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="-w)F88(KT~jIIR#NO3-I"> <field name="COMMENT">m³ * Zustandszahl * Brennwert</field> <next> <block type="update" id="}u?BJ{W0jL$`@jpcqGO:" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.GaszaehlerStandkWhAktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id=")h+LcW=80vV}aRvLgIST" inline="false"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="O!]xlfx~u*yAG@W/L8Yp" inline="false"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="Y;HNKZ~b$}0Yv3Sd{qyN"> <field name="NUM">1</field> </shadow> <block type="get_value" id=")O/%xa,c|yK}UxP*=I%N"> <field name="ATTR">val</field> <field name="OID">javascript.0.GaszaehlerStandkWh</field> </block> </value> <value name="B"> <shadow type="math_number" id="6hdg/Eh$E6Ze]y|UN-Zm"> <field name="NUM">1048.48</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="t]!r:c[xdiI8}:y~GHwu"> <field name="NUM">44148</field> </shadow> </value> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
MOD-EDIT: Code in code-tags gesetzt!
-
Für Code gibt es diese hübschen CodeTags...
Kann man viiiiiiiiiiiiiiiiiiieeeel besser lesen dann. -
@thomas-braun ```
code_text<block type="create" id="O0.%:4f-:Pqkysp}DPdK" x="63" y="-37"> <field name="NAME">GaszaehlerStand</field> <value name="VALUE"> <block type="math_number" id="DhL1vz/Iy1;/}/)[k9FO"> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="$(AthiGYY3W!+XI%po/t"> <field name="TEXT">{"type": "number", "unit": "m³"}</field> </block> </value> <next> <block type="create" id="kt:st]g_7HQ~1,AVg(+C"> <field name="NAME">GaszaehlerStandkWh</field> <value name="VALUE"> <block type="math_number" id="#Pt*uq1EN[v.o|eC$}9c"> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="bWM6wLsF^Y~MSK#E$4}0"> <field name="TEXT">{"type": "number", "unit": "kWh"}</field> </block> </value> <next> <block type="create" id="c~W+Vn@gO~$w,H9,3xML"> <field name="NAME">GaszaehlerStandkWhAktuell</field> <value name="VALUE"> <block type="math_number" id="6~||2y3P4g=*Gap6xyu("> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="uv{-J@N8j|XPi-fZ;Lc]"> <field name="TEXT">{"type": "number", "unit": "kWh"}</field> </block> </value> <next> <block type="on" id="[Aae;WUw?/GQLLaSi|YP"> <field name="OID">rpi2.0.gpio.23.state</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="update" id="{Fr+[nvsyzsRW=R)4u{|" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.GaszaehlerStand</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="J$]R.`;08=+yt0]}Ii|*" inline="false"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="(8#e7nEvA)961d@}=f1e"> <field name="NUM">1</field> </shadow> <block type="get_value" id="CUh_iTk5%z6jmF=-I~}Y"> <field name="ATTR">val</field> <field name="OID">javascript.0.GaszaehlerStand</field> </block> </value> <value name="B"> <shadow type="math_number" id="UpA:b_2XlkBjbm_gL8bq"> <field name="NUM">0.01</field> </shadow> </value> </block> </value> </block> </statement> <next> <block type="on" id="|6!Nh%NKoNreoIx{kE(B"> <field name="OID">javascript.0.GaszaehlerStand</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="gz7=_OL%2?bU~j;XKk%R"> <field name="COMMENT">m³ * Zustandszahl * Brennwert</field> <next> <block type="update" id="8$E,+yL|3cVhOf:%4~@W" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.GaszaehlerStandkWh</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=":a7CEg1}#$XfI]rAO}2/"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="Cm#rg^1=.kzHerEE(q1G"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id="P~7p{TAN8J!hbi}wF=,s" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="_zw?QIdjf[qQd_(c(X(V"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="h/K]6epkq4eEmczq#XW4" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="cr[7/qN25UTSH_]kjR/S"> <field name="NUM">1</field> </shadow> <block type="on_source" id="-Vo;;;BDSiGRGu.Y~q0L"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <shadow type="math_number" id="UNm.pI?(Vmrk*-{~Q!hs"> <field name="NUM">0.9595</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="K=xmEI^vFAvsM0@aV]/G"> <field name="NUM">10.247</field> </shadow> </value> </block> </value> </block> </value> </block> </next> </block> </statement> <next> <block type="on" id="p6?`i9$CD@7{adfD}:X="> <field name="OID">javascript.0.GaszaehlerStand</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="-w)F88(KT~jIIR#NO3-I"> <field name="COMMENT">m³ * Zustandszahl * Brennwert</field> <next> <block type="update" id="}u?BJ{W0jL$`@jpcqGO:" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.GaszaehlerStandkWhAktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id=")h+LcW=80vV}aRvLgIST" inline="false"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="O!]xlfx~u*yAG@W/L8Yp" inline="false"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="Y;HNKZ~b$}0Yv3Sd{qyN"> <field name="NUM">1</field> </shadow> <block type="get_value" id=")O/%xa,c|yK}UxP*=I%N"> <field name="ATTR">val</field> <field name="OID">javascript.0.GaszaehlerStandkWh</field> </block> </value> <value name="B"> <shadow type="math_number" id="6hdg/Eh$E6Ze]y|UN-Zm"> <field name="NUM">1048.48</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="t]!r:c[xdiI8}:y~GHwu"> <field name="NUM">44148</field> </shadow> </value> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
-
@krissie777 lässt sich nicht importieren.
-
@krissie777 sagte: code_text
Es fehlt die erste Zeile.
<xml xmlns="https://developers.google.com/blockly/xml">
-
@krissie777 sagte: Entprellzeit 0ms
Vorschlag mit Entprellzeit von 1000 ms:
@krissie777 sagte in Nach Update ioBrokerAdmins alle 3 Wochen knapp 20m³ mehr:
Blockzeit 1000ms.
Was ist Blockzeit?
-
@djmarc75 ```
code_text
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="create" id="O0.%:4f-:Pqkysp}DPdK" x="63" y="-37"> <field name="NAME">GaszaehlerStand</field> <value name="VALUE"> <block type="math_number" id="DhL1vz/Iy1;/}/)[k9FO"> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="$(AthiGYY3W!+XI%po/t"> <field name="TEXT">{"type": "number", "unit": "m³"}</field> </block> </value> <next> <block type="create" id="kt:st]g_7HQ~1,AVg(+C"> <field name="NAME">GaszaehlerStandkWh</field> <value name="VALUE"> <block type="math_number" id="#Pt*uq1EN[v.o|eC$}9c"> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="bWM6wLsF^Y~MSK#E$4}0"> <field name="TEXT">{"type": "number", "unit": "kWh"}</field> </block> </value> <next> <block type="create" id="c~W+Vn@gO~$w,H9,3xML"> <field name="NAME">GaszaehlerStandkWhAktuell</field> <value name="VALUE"> <block type="math_number" id="6~||2y3P4g=*Gap6xyu("> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="uv{-J@N8j|XPi-fZ;Lc]"> <field name="TEXT">{"type": "number", "unit": "kWh"}</field> </block> </value> <next> <block type="on" id="[Aae;WUw?/GQLLaSi|YP"> <field name="OID">rpi2.0.gpio.23.state</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="update" id="{Fr+[nvsyzsRW=R)4u{|" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.GaszaehlerStand</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="J$]R.`;08=+yt0]}Ii|*" inline="false"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="(8#e7nEvA)961d@}=f1e"> <field name="NUM">1</field> </shadow> <block type="get_value" id="CUh_iTk5%z6jmF=-I~}Y"> <field name="ATTR">val</field> <field name="OID">javascript.0.GaszaehlerStand</field> </block> </value> <value name="B"> <shadow type="math_number" id="UpA:b_2XlkBjbm_gL8bq"> <field name="NUM">0.01</field> </shadow> </value> </block> </value> </block> </statement> <next> <block type="on" id="|6!Nh%NKoNreoIx{kE(B"> <field name="OID">javascript.0.GaszaehlerStand</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="gz7=_OL%2?bU~j;XKk%R"> <field name="COMMENT">m³ * Zustandszahl * Brennwert</field> <next> <block type="update" id="8$E,+yL|3cVhOf:%4~@W" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.GaszaehlerStandkWh</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=":a7CEg1}#$XfI]rAO}2/"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="Cm#rg^1=.kzHerEE(q1G"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id="P~7p{TAN8J!hbi}wF=,s" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="_zw?QIdjf[qQd_(c(X(V"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="h/K]6epkq4eEmczq#XW4" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="cr[7/qN25UTSH_]kjR/S"> <field name="NUM">1</field> </shadow> <block type="on_source" id="-Vo;;;BDSiGRGu.Y~q0L"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <shadow type="math_number" id="UNm.pI?(Vmrk*-{~Q!hs"> <field name="NUM">0.9595</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="K=xmEI^vFAvsM0@aV]/G"> <field name="NUM">10.247</field> </shadow> </value> </block> </value> </block> </value> </block> </next> </block> </statement> <next> <block type="on" id="p6?`i9$CD@7{adfD}:X="> <field name="OID">javascript.0.GaszaehlerStand</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="-w)F88(KT~jIIR#NO3-I"> <field name="COMMENT">m³ * Zustandszahl * Brennwert</field> <next> <block type="update" id="}u?BJ{W0jL$`@jpcqGO:" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.GaszaehlerStandkWhAktuell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id=")h+LcW=80vV}aRvLgIST" inline="false"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="O!]xlfx~u*yAG@W/L8Yp" inline="false"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="Y;HNKZ~b$}0Yv3Sd{qyN"> <field name="NUM">1</field> </shadow> <block type="get_value" id=")O/%xa,c|yK}UxP*=I%N"> <field name="ATTR">val</field> <field name="OID">javascript.0.GaszaehlerStandkWh</field> </block> </value> <value name="B"> <shadow type="math_number" id="6hdg/Eh$E6Ze]y|UN-Zm"> <field name="NUM">1048.48</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="t]!r:c[xdiI8}:y~GHwu"> <field name="NUM">44148</field> </shadow> </value> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
-
@paul53
Guten Morgen Paul, ich habe die Entprellzeit und die Blockzeit auch in den Influxdb Einstellungen beim Skript in den Objekten finden können:
Diese ist immer noch Standardmässig eingestellt, also unverändert.Frage 1: Da ich noch nicht so gut in der Materie bin, wo an welcher Stelle füge ich Deinen Code in meinen ein? Könntest mir evtl den gesamten Code hier zum Importieren schicken und einfügen?
Frage 2: Zwicken sich dann evtl. die Einstellungen des Codes im Objekt Skript des Gassensors und der von Influxdb? Dort sind schon die 1000ms ausgewhält.
Herzlichen Dank nochmal an euch alle für die Hilfestellung.
Grüße
Chris -
@krissie777 sagte: Zwicken sich dann evtl. die Einstellungen des Codes im Objekt Skript des Gassensors und der von Influxdb?
Nein, Javascript-Adapter und InfluxDB haben nichts miteinander zu tun.
@krissie777 sagte in Nach Update ioBrokerAdmins alle 3 Wochen knapp 20m³ mehr:
den gesamten Code hier zum Importieren schicken und einfügen?
Enthält nicht die Erstellung der Datenpunkte unter "javascript.0", aber die sind ja schon vorhanden.
-
@paul53 Guten Morgen Paul,
danke Dir für die Antwort zu der 2ten Frage.
Zu Frage 1: Du kannst mir auch den geänderten Code per PN zuschickecken oder hier für die anderen mt einstellen. Evtl stehen auch andere User vor dem Thema
Vielen Dank für Deine Hilfe.
Grüße
Chris -
@paul53
Hallo Paul, nochmal herzlichen Dank für den Code, den ich jetzt endlich in dem Spoiler Button finden konnte. Bist klasse.Dieser Code von Dir ist aber nur ein Teil meines Skripts richtig? Das ist nur der Teil der Blockzeit von 1000ms, korrekt?
Wo genau, sprich an welcher Stelle füge ich den Code an/ein? Ist es evtl einfacher für Dich, wenn Du mir Deinen Code und meinen Code korrekt zusammenkopierst so wie es sein soll? Bin was Blockly angeht noch nicht so trittsicher und möchte mir mein Skript nicht verhauen
Vielen Dank für alles
LGR
Chris -
@krissie777 sagte: Dieser Code von Dir ist aber nur ein Teil meines Skripts richtig?
Nein, es ist der komplette Code nur ohne Erstellung der ohnehin bereits vorhandenen Datenpunkte.