- Home
- Deutsch
- Skripten / Logik
- Node-Red
- Aquarium Futter Dosierung
Aquarium Futter Dosierung
This topic has been deleted. Only users with topic management privileges can see it.
-
Ich habe eine Blockly Steuerung die ich gerne umbauen möchte auf Node-Red.
Dieses ist für mich nicht wirklich einfach. Da benötige ich Hilfe.
Die Futter Automatik setzt sich aus 2 Steuerungen zusammen.
Futterautomatik
<block xmlns="https://developers.google.com/blockly/xml" type="procedures_defnoreturn" id="jE$gVVpa7!Xtx{X@H^Fd" x="-1887.44" y="-1412.32"> <field name="NAME">Futter</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="timeouts_settimeout" id="7O%%*MgLlE71t(^B=u!N"> <field name="NAME">timeout</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id="9kptcK|P^2:}bKZXyZ8f"> <field name="VAR" id="u)9}*R19v/Qs3Rt)$4,W">Dauer</field> <value name="VALUE"> <block type="convert_tonumber" id="Tj/%:}sl8v})GfkG,zO:"> <value name="VALUE"> <block type="get_value" id=".,XzJi)h(f$9$~(`H$I!"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Futterautomatik.Futterautomatik_Faktor_1</field> </block> </value> </block> </value> <next> <block type="control" id="%}iPzHc5tUi.(P1_MvRo"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Aqua_Control.POWER5</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="SM.e~4#O=p?c/SXA|JX%"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="y_Y]xT#qZqZCX#n?iIsk"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="Od}|Jw/NX=B9~P;c8:5b"> <field name="TEXT">Futter wurde dosiert</field> </shadow> </value> <next> <block type="telegram" id="*;%UBv=e[knMKE}#u@+d"> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="E5rRQJqSl@PY`Jmg#uR)"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="S1P{c)rhN8:4*@lW+J4R"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="y[3#?W{/JZnzjqb-_P2;"> <field name="TEXT">Futter wurde dosiert</field> </block> </value> <value name="ADD1"> <block type="text" id="0iTpP5Hy@AWy/EXfB4Lw"> <field name="TEXT">Futterautomat ist </field> </block> </value> <value name="ADD2"> <block type="get_value" id="OxYis2FV#Yx,2x^H-GPG"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Aqua_Control.POWER5</field> </block> </value> </block> </value> <next> <block type="comment" id="KV;?nPX*TAluqR-qF9f+"> <field name="COMMENT">Intervalldauer = Faktor</field> <next> <block type="timeouts_setinterval" id="1+dIQ5^rJM?nkaI[6WN}"> <field name="NAME">Intervall</field> <field name="INTERVAL">300</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="math_change" id="!*zN$DgW0K=76_[.1*]X"> <field name="VAR" id="u)9}*R19v/Qs3Rt)$4,W">Dauer</field> <value name="DELTA"> <shadow type="math_number" id="e_D7=bSd65:`]Q{qWSZD"> <field name="NUM">-1</field> </shadow> </value> <next> <block type="controls_if" id="=/[;A-M~WF?KXEx~W0z?"> <value name="IF0"> <block type="logic_compare" id=";qY,PC)CB~{1#4iVHaj,"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="2k;4KgTu$A3wF)@V`ulP"> <field name="VAR" id="u)9}*R19v/Qs3Rt)$4,W">Dauer</field> </block> </value> <value name="B"> <block type="math_number" id="?bnhw6qVm`$}~NCKlw2P"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_clearinterval" id=";dz/hf`o4]4(2pDSH)I3"> <field name="NAME">Intervall</field> <next> <block type="control" id="SeaFI}%xNdyzRbLV,6HN"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Aqua_Control.POWER5</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="1_[)-;0}n;LMH}tCmhi:"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="v!wr~{/(Po?Vs/4DT_`6"> <field name="NAME">timeout</field> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block>
Pumpensteuerung
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="@=+U2[(O1vOaVVP`M#H~">clock</variable> <variable id="Q7*Gw)fesXb}OUBj1{`;">Uhrzeit</variable> <variable type="cron" id="schedule1">schedule1</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="procedures_callnoreturn" id="3a)9A+{U=BTerQFdk^7e" x="-2962" y="-1237"> <mutation name="setUhr"> <arg name="clock"></arg> </mutation> <value name="ARG0"> <block type="get_value" id="Rmv(=Tg+:6/}8B(?~nI#"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Futterautomatik.Futterautomatik_Uhrzeit_1</field> </block> </value> <next> <block type="on_ext" id="X}o|@dWx#6!BiHho8e)o"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="dXPC7;GFYg(#~T78}@mB"> <field name="oid">0_userdata.0.Futterautomatik.Futterautomatik_Uhrzeit_1</field> </shadow> </value> <statement name="STATEMENT"> <block type="schedule_clear" id="nt-N]NBg?,fY%.)hYJ4D"> <field name="NAME">schedule1</field> <next> <block type="procedures_callnoreturn" id="yvhs4uL6uUxnW!c$UF/{"> <mutation name="setUhr"> <arg name="clock"></arg> </mutation> <value name="ARG0"> <block type="on_source" id="SfI,}teG@`dg#_g%Zp#:"> <field name="ATTR">state.val</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> <block type="procedures_defnoreturn" id="jE$gVVpa7!Xtx{X@H^Fd" x="-2187" y="-1263"> <field name="NAME">Pumpe</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="control" id="%}iPzHc5tUi.(P1_MvRo"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Aqua_Control.POWER8</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="SM.e~4#O=p?c/SXA|JX%"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="y_Y]xT#qZqZCX#n?iIsk"> <field name="Severity">debug</field> <value name="TEXT"> <shadow type="text" id="Od}|Jw/NX=B9~P;c8:5b"> <field name="TEXT">Pumpe wurde ausgeschaltet</field> </shadow> </value> <next> <block type="telegram" id="IDu`.E%a6}j/CPT`||ZH"> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="`2|%*yztt9Ufut^d6bfx"> <field name="TEXT">text</field> </shadow> <block type="text" id="v)9|JulAPH;wC$8M4pS!"> <field name="TEXT">Pumpe wurde ausgeschaltet</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="lxF7r)2e9zNr(AFsju!Y"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="Zo`%V6LOFOV/aNgoj-G4"> <field name="NAME">timeout</field> <field name="DELAY">20</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="SeaFI}%xNdyzRbLV,6HN"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Aqua_Control.POWER8</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="1_[)-;0}n;LMH}tCmhi:"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="8w#ifj?}1{$`LpC0JcE2"> <field name="Severity">debug</field> <value name="TEXT"> <shadow type="text" id="ZQ*jrn:uk!};#mbSv[qR"> <field name="TEXT">Pumpe wurde eingeschaltet</field> </shadow> </value> <next> <block type="telegram" id="os@]7lZyktJ1/B0;I.$t"> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="`2|%*yztt9Ufut^d6bfx"> <field name="TEXT">text</field> </shadow> <block type="text" id="MSL{Ha7RDboC6xSM):12"> <field name="TEXT">Pumpe wurde eingeschaltet</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> <block type="procedures_defnoreturn" id="fK5kmsd)LwZ7|P2xa^9U" x="-2951" y="-938"> <mutation> <arg name="clock" varid="@=+U2[(O1vOaVVP`M#H~"></arg> </mutation> <field name="NAME">setUhr</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="variables_set" id="aOx5`vU/=f;#)rmrW[|7"> <field name="VAR" id="Q7*Gw)fesXb}OUBj1{`;">Uhrzeit</field> <value name="VALUE"> <block type="lists_split" id="XnqDHu5JM{#WIs8~S,M-"> <mutation mode="SPLIT"></mutation> <field name="MODE">SPLIT</field> <value name="INPUT"> <block type="variables_get" id="4`T;i0Hg@f?=Gq^,J6.~"> <field name="VAR" id="@=+U2[(O1vOaVVP`M#H~">clock</field> </block> </value> <value name="DELIM"> <shadow type="text" id="]v!xP8l3r?{D;(m_QyNL"> <field name="TEXT">:</field> </shadow> </value> </block> </value> <next> <block type="schedule_create" id="6x%+6G+PaD[w*{FuFm=K"> <field name="NAME">schedule1</field> <value name="SCHEDULE"> <shadow type="field_cron" id="m4F75|F$}NA}2;e/avWa"> <field name="CRON">* * * * *</field> </shadow> <block type="cron_builder" id="q6(U2T{7uu}mYF)9QMKr"> <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation> <field name="LINE">FALSE</field> <field name="WITH_SECONDS">FALSE</field> <value name="DOW"> <shadow type="text" id=")8oVcqHY5re?jv#0QsO8"> <field name="TEXT">*</field> </shadow> </value> <value name="MONTHS"> <shadow type="text" id="GfQ!DoE|TZTliq*)8,@j"> <field name="TEXT">*</field> </shadow> </value> <value name="DAYS"> <shadow type="text" id="S6hVuxIjcYJMlS^~:zE5"> <field name="TEXT">*</field> </shadow> </value> <value name="HOURS"> <shadow type="text" id="NP{*G*@dWEP9M9mNlZFF"> <field name="TEXT">*</field> </shadow> <block type="lists_getIndex" id="-0gZ}|H=8/}~St}d%rl;"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="8U#M]$`MHq(~A]~(v{2R"> <field name="VAR" id="Q7*Gw)fesXb}OUBj1{`;">Uhrzeit</field> </block> </value> <value name="AT"> <block type="math_number" id=")zFTxG~Gpp`eZw8r2,8w"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="MINUTES"> <shadow type="text" id="I(LCmtz/NJ%:Tvp,*;JL"> <field name="TEXT">*</field> </shadow> <block type="lists_getIndex" id="0([.HRKLsVPA.X:jwVI@"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="8#E0pY-UET(BcZH]~qB:"> <field name="VAR" id="Q7*Gw)fesXb}OUBj1{`;">Uhrzeit</field> </block> </value> <value name="AT"> <block type="math_number" id=";UF-jK:^cV#hui?GDL/V"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="STATEMENT"> <block type="procedures_callnoreturn" id="/6qq{?/)+*vm:UnA$x,0"> <mutation name="Pumpe"></mutation> </block> </statement> </block> </next> </block> </statement> </block> </xml>
-
@aphofis Wolltest Du nicht erst mal Deine anderen Steuerungen so fertig machen, dass alles funktioniert.? Ich würde halt nicht soviele Baustellen auf einmal aufmachen.