-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,107 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<xml xmlns="http://www.w3.org/1999/xhtml"> | ||
<toolbox>toolbox_arduino_all-esp8266</toolbox> | ||
<block type="base_setup_loop" id="06zEsew^U=VIeKbo+rO!" x="-640" y="10"> | ||
<statement name="DO"> | ||
<block type="wifi_init_sta" id="`?NS]:HuH|nfFiG,~$7E"> | ||
<field name="LOGIC">TRUE</field> | ||
<field name="SSID">tu wifi</field> | ||
<field name="PASSWORD">password de wifi</field> | ||
<next> | ||
<block type="ifttt_init" id="FFiELG$N4kPKGMOe,rB="> | ||
<field name="API_KEY">El api key de webhook de tus applets</field> | ||
</block> | ||
</next> | ||
</block> | ||
</statement> | ||
<statement name="LOOP"> | ||
<block type="ifttt_send" id="PdaDq|(Yyobg!HHj@NY1"> | ||
<value name="evento"> | ||
<block type="text" id="~:Q2k)o$`WKKh]Vub:a."> | ||
<field name="TEXT">Nombre Evento</field> | ||
</block> | ||
</value> | ||
<value name="value1"> | ||
<block type="text_join" id="%^4_Gp!~@_Aiey%N-MT%"> | ||
<mutation items="2"></mutation> | ||
<value name="ADD0"> | ||
<block type="text" id="+rQAI;_]uk093d%jfzVf"> | ||
<field name="TEXT">Este es el valor numerico</field> | ||
</block> | ||
</value> | ||
<value name="ADD1"> | ||
<block type="math_number" id="@{9Eb/GIIgu9gl/:NK`["> | ||
<field name="NUM">100.12</field> | ||
</block> | ||
</value> | ||
</block> | ||
</value> | ||
<value name="value2"> | ||
<block type="text" id="[[m00PJ#J9*NLo.Jn4,1"> | ||
<field name="TEXT">valor texto </field> | ||
</block> | ||
</value> | ||
<value name="value3"> | ||
<block type="text" id="jsyP$,($t@l/Ph,rUN(X"> | ||
<field name="TEXT">Otro texto</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="controls_repeat_ext" id="yC$Vs(v.2RRR#0_hR(m1"> | ||
<value name="TIMES"> | ||
<shadow type="math_number" id="RdnBC;,lRqpm.pX~Y1Bq"> | ||
<field name="NUM">6</field> | ||
</shadow> | ||
</value> | ||
<statement name="DO"> | ||
<block type="base_delay" id="^$B`=Q%UPlLuh530?y$]"> | ||
<field name="unite">s</field> | ||
<value name="DELAY_TIME"> | ||
<shadow type="math_number" id="!RZzUSSv_4kO~48e0Pi~"> | ||
<field name="NUM">10</field> | ||
</shadow> | ||
</value> | ||
</block> | ||
</statement> | ||
</block> | ||
</next> | ||
</block> | ||
</statement> | ||
</block> | ||
</xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
<xml xmlns="http://www.w3.org/1999/xhtml"> | ||
<toolbox>toolbox_arduino_all-esp8266</toolbox> | ||
<block type="base_setup_loop" id="06zEsew^U=VIeKbo+rO!" x="-482" y="11"> | ||
<statement name="DO"> | ||
<block type="variables_set_init" id="*-PhI^T`PUGRY2eq4sZl"> | ||
<field name="VAR">contador</field> | ||
<field name="VARIABLE_SETTYPE_TYPE">LARGE_NUMBER</field> | ||
<value name="VALUE"> | ||
<block type="math_number" id="0^ZT3.og6;TQ-@K2BCS`"> | ||
<field name="NUM">0</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="variables_set_init" id="OAqkI*/8X^iB,-n;#IWQ"> | ||
<field name="VAR">ReleText</field> | ||
<field name="VARIABLE_SETTYPE_TYPE">TEXT</field> | ||
<value name="VALUE"> | ||
<block type="text" id="q2]2$g;z+JFlB`W-`7Mn"> | ||
<field name="TEXT">OFF</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="variables_set_init" id="@*sIGOa9H=_6HoW,l/d."> | ||
<field name="VAR">AnguloServo</field> | ||
<field name="VARIABLE_SETTYPE_TYPE">UNUMBER</field> | ||
<value name="VALUE"> | ||
<block type="math_number" id="t?Wa]@lM(Kpx.~S}l2?b"> | ||
<field name="NUM">0</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="mqtt_init" id="ohgvXcPiq/KsJ]l=JRE{"> | ||
<field name="LOGIC">FALSE</field> | ||
<field name="SSID">tu red wifi </field> | ||
<field name="PASSWORD">tu password wifi</field> | ||
<field name="SERVER">io.adafruit.com</field> | ||
<field name="PORT">1883</field> | ||
<field name="USER">usuario en adafruit</field> | ||
<field name="APIKEY">Tu api de conexion</field> | ||
<field name="IDCLIENT">OTTO_</field> | ||
<next> | ||
<block type="mqtt_subscribe_num" id="kK-#lDKNFu9Vq8AS)n.P"> | ||
<field name="TOPIC">oscarlogix5/feeds/pote</field> | ||
<value name="variable"> | ||
<block type="variables_get" id="Y`h]w#@3uHq4+BEP;9+E"> | ||
<field name="VAR">AnguloServo</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="mqtt_subscribe_text" id="==)Gp]b7x2RooaU@m_HE"> | ||
<field name="TOPIC">oscarlogix5/feeds/rele</field> | ||
<value name="variable"> | ||
<block type="variables_get" id="k{kupUovKzWA6/-q[kA("> | ||
<field name="VAR">ReleText</field> | ||
</block> | ||
</value> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</statement> | ||
<statement name="LOOP"> | ||
<block type="mqtt_loop" id="$NHAlJfd[p=OvmHKG{z}"> | ||
<next> | ||
<block type="tempo_sans_delay" id="%5yY?C8KA@GN6v}8Njk8"> | ||
<field name="unite">s</field> | ||
<value name="DELAY_TIME"> | ||
<shadow type="math_number" id="-GolX#a:DUIk/g5C*)?*"> | ||
<field name="NUM">5</field> | ||
</shadow> | ||
</value> | ||
<statement name="branche"> | ||
<block type="mqtt_publish" id="b@LIbeg3TPp`j]ymlH^;"> | ||
<field name="TOPIC">oscarlogix5/feeds/temperaturaoscar</field> | ||
<value name="variable"> | ||
<block type="variables_get" id="?X(V6reaV`iX`L6M_M|!"> | ||
<field name="VAR">contador</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="variables_set" id="LLZ_Kq6smf=.VC_SY,0%"> | ||
<field name="VAR">contador</field> | ||
<value name="VALUE"> | ||
<block type="math_arithmetic" id="99NpAHXUmW*m4+u`q.8g"> | ||
<field name="OP">ADD</field> | ||
<value name="A"> | ||
<block type="variables_get" id="EKw0$X0X;9tqd1;g8wh@"> | ||
<field name="VAR">contador</field> | ||
</block> | ||
</value> | ||
<value name="B"> | ||
<block type="math_number" id="l-wiTNb]Uw4|%:m2pKA@"> | ||
<field name="NUM">1</field> | ||
</block> | ||
</value> | ||
</block> | ||
</value> | ||
</block> | ||
</next> | ||
</block> | ||
</statement> | ||
<next> | ||
<block type="controls_if" id="nA]|b(p~:;%FbHy_S`jX"> | ||
<mutation else="1"></mutation> | ||
<value name="IF0"> | ||
<block type="logic_compare" id="[*:Q|ETEk8+W#t7.NV]n"> | ||
<field name="OP">EQ</field> | ||
<value name="A"> | ||
<block type="variables_get" id="x.,0`8_JE6jyWFPU6k3!"> | ||
<field name="VAR">ReleText</field> | ||
</block> | ||
</value> | ||
<value name="B"> | ||
<shadow type="math_number" id="2)m$mmK:pHCs,QsSw1V`"> | ||
<field name="NUM">10</field> | ||
</shadow> | ||
<block type="text" id="Z?b?s2X/(s*orwpFvBl("> | ||
<field name="TEXT">ON</field> | ||
</block> | ||
</value> | ||
</block> | ||
</value> | ||
<statement name="DO0"> | ||
<block type="inout_buildin_led" id="lj;#=8K{boYyW1Bk8Vg("> | ||
<field name="STAT">LOW</field> | ||
</block> | ||
</statement> | ||
<statement name="ELSE"> | ||
<block type="inout_buildin_led" id="|3e.tZjX^I)i0zZJ7t_V"> | ||
<field name="STAT">HIGH</field> | ||
</block> | ||
</statement> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</statement> | ||
</block> | ||
</xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
<xml xmlns="http://www.w3.org/1999/xhtml"> | ||
<toolbox>toolbox_arduino_all-esp8266</toolbox> | ||
<block type="base_setup_loop" id="q~[LTgx7FuUsu0~FMR4W" x="-4" y="48"> | ||
<statement name="DO"> | ||
<block type="serial_init" id="(=],sS=1KdlnUDK|l%j/"> | ||
<field name="PINBAUDIOS">115200</field> | ||
<next> | ||
<block type="wifi_init_sta" id="r%_*e[dP0hI+N.,1[JME"> | ||
<field name="LOGIC">FALSE</field> | ||
<field name="SSID">xxxxxxxxx</field> | ||
<field name="PASSWORD">xxxxxxxxxxxxx</field> | ||
<next> | ||
<block type="Init_NTP" id="(WYBT%0i1./b(LWc$30U"> | ||
<field name="GMT">2</field> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</statement> | ||
<statement name="LOOP"> | ||
<block type="order_read_NTP_server" id="8+X,JdLV)I+]s3A{Pf_K"> | ||
<next> | ||
<block type="serial_println" id="9O=wW1ca[MSqcH+G,Ygg"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_NTP_server" id="dA_5s{hc+l{iSF][{%qS"> | ||
<field name="OUTPUT_VALUE">0</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="serial_println" id="=@#F^PesEhT@N-Jb[cSv"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_NTP_server" id="k!UrH:hGy=:~l2nnPTYb"> | ||
<field name="OUTPUT_VALUE">1</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="serial_println" id="@RvRSxe0x2iVfOAc:%wN"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_NTP_server" id="(3%Pk!JdHfE#Ub#-jYz?"> | ||
<field name="OUTPUT_VALUE">2</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="serial_println" id="pHS:78k-*g+q0wAzZ.@d"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_NTP_server" id="DuQQr~kKl7{S#R7!LNcL"> | ||
<field name="OUTPUT_VALUE">3</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="serial_println" id="q6FXMnrn:4mLtT9rgJW)"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_NTP_server" id=";$D|;[(gzoL=Q.9bt}n3"> | ||
<field name="OUTPUT_VALUE">4</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="serial_println" id="jryP$rVg%#lpuf?9oX~U"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_NTP_server" id="ShUWULxu:b9XIAY(@A)U"> | ||
<field name="OUTPUT_VALUE">5</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="serial_println" id=":e^%Lj2O_vM^#2:7MD?i"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_NTP_server" id="hZ)AH~Ms[;|;ZMJbHixE"> | ||
<field name="OUTPUT_VALUE">6</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="serial_println" id="g;CfuK`)beB1FrkfzQR#"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_text_NTP_server" id="9k(c!RF(rEPxS5x9cY[$"> | ||
<field name="OUTPUT_VALUE">0</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="serial_println" id="1i39cc+X)p=Pw6EP$|g2"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_text_NTP_server" id="5Tb5tu9cK+`v+?..Vb=%"> | ||
<field name="OUTPUT_VALUE">1</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="serial_println" id="`7yy~S?P?Rnt+gi^eF3y"> | ||
<value name="CONTENT"> | ||
<shadow type="text" id="!,h?vVODha5CIAbErH0q"> | ||
<field name="TEXT">text</field> | ||
</shadow> | ||
<block type="values_text_NTP_server" id="jAV[(%(JTPuXyM8/o=EL"> | ||
<field name="OUTPUT_VALUE">2</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="base_delay" id="^2GdZWQp*.o@FbS0aaRD"> | ||
<field name="unite">s</field> | ||
<value name="DELAY_TIME"> | ||
<shadow type="math_number" id="Gjir/5hkV0r@qNP8Qk8m"> | ||
<field name="NUM">5</field> | ||
</shadow> | ||
</value> | ||
</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> | ||
</xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.