forked from kernelcontrol/m5stack-smart-plant-watering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
drunken_plant.m5f
1 lines (1 loc) · 26.4 KB
/
drunken_plant.m5f
1
{"components":[{"id":"____screen","createTime":1609279795814,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1609279795814,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1609279795814,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1609279795814,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"EAvYLWfht^AQMKCG","createTime":1609282672451,"isCoreTwo":false,"name":"line0","x":44,"y":122,"x1":44,"y1":122,"x2":264,"y2":122,"width":50,"color":"#797979","lineWidth":1,"type":"line","layer":4},{"id":"F@GeKPO7R*Y4j^Fy","createTime":1609283038312,"isCoreTwo":false,"name":"line1","x":149,"y":51,"x1":149,"y1":51,"x2":149,"y2":190,"width":50,"color":"#797979","lineWidth":1,"type":"line","layer":5},{"id":"Nr*GF0GF0gnRZcTf","createTime":1609290123796,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"imgTemp","x":74,"y":42,"imagePath":"temp64.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":10},{"id":"D4BNN%Frxor%m7@L","createTime":1609290128137,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"imgPlant","x":74,"y":144,"imagePath":"pot64.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":11},{"id":"p1P4tI84mEOnFrUw","createTime":1609290133004,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"imgHum","x":165,"y":42,"imagePath":"humidity.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":12},{"id":"5HtCLKfQ9=HF64ie","createTime":1609290150764,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"imgPress","x":165,"y":152,"imagePath":"meter.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":13},{"id":"dZdP$CG2JaitmnVE","createTime":1609290415969,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"imgWarn","x":65,"y":200,"imagePath":"warning-24.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":14},{"id":"@rnBHFu^cUOHz5hV","createTime":1609290525260,"isCoreTwo":false,"isPaper":false,"name":"txtDeg","x":90,"y":42,"color":"#FFFFFF","text":"o","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":15},{"id":"&EK`S&kgqgsh63XB","createTime":1609290563336,"isCoreTwo":false,"isPaper":false,"name":"txtTemp","x":32,"y":75,"color":"#FFFFFF","text":"-","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":16},{"id":"6V+AC6rO9as_mEo!","createTime":1609290563336,"isCoreTwo":false,"isPaper":false,"name":"txtPress","x":235,"y":165,"color":"#FFFFFF","text":"-","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":18},{"id":"piguPyyv1E1F0`OG","createTime":1609290563336,"isCoreTwo":false,"isPaper":false,"name":"txtMoist","x":32,"y":165,"color":"#FFFFFF","text":"-","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":19},{"id":"EZ19C7BZgcX9A$Ue","createTime":1609290563336,"isCoreTwo":false,"isPaper":false,"name":"txtHum","x":244,"y":75,"color":"#FFFFFF","text":"-","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":20}],"type":"core","versions":"Beta","units":[{"id":"=`-xb@6!%ftoK0%A","createTime":1634584284727,"hidden":false,"type":"env2","name":"env20","port":"A","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"0","user_port":[21,22],"icon":"env2.png"},{"id":"h`ra-nQ7#sjfFWPt","createTime":1634584284727,"hidden":false,"type":"Watering","name":"Watering0","port":"B","default":["B","C","Custom"],"user_port":["21","22"],"icon":"watering.png"}],"hats":[],"blockly":"<variables><variable id=\".KyHX^Ik8QTRh;4i!Ud}\">moisture</variable><variable id=\"[N$wY3_=l)GW[[@U,V]%\">temperature</variable><variable id=\"-=(5Diw]5}e^Vrr0IE)8\">humidity</variable><variable id=\"nS0))#U7e,N^BJ:}9Eh6\">pressure</variable></variables><block type=\"procedures_defnoreturn\" id=\"bMKLG~)P8G*/GNq-$`~r\" x=\"1370\" y=\"-670\"><field name=\"NAME\">mqttPubConfig</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"mqtt_publish\" id=\"JN|4RtgkwV`N40G)m}:.\"><value name=\"FROM\"><shadow type=\"text\" id=\"%?KO}^1.Ck0OS.wcM?B|\"><field name=\"TEXT\">homeassistant/sensor/office/temperature/config</field></shadow></value><value name=\"MSG\"><shadow type=\"text\" id=\"vpYQfdyk7EN|._1+{qyP\"><field name=\"TEXT\">test</field></shadow><block type=\"dumps_json\" id=\"UG3?KA_:G?L`Y!(mj3%u\"><value name=\"JSON_VAR\"><block type=\"map_on_loop\" id=\"!,net!O!fe]zk`S`6B~D\"><statement name=\"LOOP\"><block type=\"create_map_key\" id=\"=pPmigrYTfC`zK[q-yCS\"><value name=\"key\"><block type=\"text\" id=\"w})9:sX7^NGDLNDc]|z^\"><field name=\"TEXT\">name</field></block></value><value name=\"value\"><block type=\"text\" id=\"dJLOz5LNIDONL52!-Mux\"><field name=\"TEXT\">temperature</field></block></value><next><block type=\"create_map_key\" id=\"JOA?1dy`O^29Vk5T?P22\"><value name=\"key\"><block type=\"text\" id=\"-;nkL9$/+~pUGv.5JmAA\"><field name=\"TEXT\">unique_id</field></block></value><value name=\"value\"><block type=\"text\" id=\")[qvH`))E=6)Qbc3lqBU\"><field name=\"TEXT\">temperature</field></block></value><next><block type=\"create_map_key\" id=\"iTv!yO|Lu0_HwMbgrJ]y\"><value name=\"key\"><block type=\"text\" id=\"2Y4ulyFGzs1LKbN22^Jl\"><field name=\"TEXT\">device_class</field></block></value><value name=\"value\"><block type=\"text\" id=\"_xO|Ro3)Z,W}vMuXUjBn\"><field name=\"TEXT\">temperature</field></block></value><next><block type=\"create_map_key\" id=\"%.`lCUUdhT{2*Hz6+52`\"><value name=\"key\"><block type=\"text\" id=\"IAfv(Mmc3S9zaZImOGrv\"><field name=\"TEXT\">state_topic</field></block></value><value name=\"value\"><block type=\"text\" id=\"ThM0nqnlzpkgLxO3[H%=\"><field name=\"TEXT\">office/m5stackplant/state</field></block></value><next><block type=\"create_map_key\" id=\"C!|`8S@T#tCcz_:kSv#0\"><value name=\"key\"><block type=\"text\" id=\"Qa#M:y^*ek5b!m:|-:T`\"><field name=\"TEXT\">unit_of_measurement</field></block></value><value name=\"value\"><block type=\"text\" id=\"1J5I/=CQ9:1K7XJG0g}W\"><field name=\"TEXT\">C</field></block></value><next><block type=\"create_map_key\" id=\"[1AJOcTVdh#?}?Dbz9kj\"><value name=\"key\"><block type=\"text\" id=\"Xn0EO8d~jj.en9svcHZI\"><field name=\"TEXT\">value_template</field></block></value><value name=\"value\"><block type=\"text\" id=\"^v!)Hon=H`.|@9$SUa*:\"><field name=\"TEXT\">{{value_json.temperature}}</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></value></block></value><next><block type=\"mqtt_publish\" id=\"FJcMA^Z05s/SP$Jc?E$X\"><value name=\"FROM\"><shadow type=\"text\" id=\"-_ql)0`/r2ayax-,~Gwx\"><field name=\"TEXT\">homeassistant/sensor/office/humidity/config</field></shadow></value><value name=\"MSG\"><shadow type=\"text\"><field name=\"TEXT\">test</field></shadow><block type=\"dumps_json\" id=\"!h2@({y;icRQ7zbg7OXf\"><value name=\"JSON_VAR\"><block type=\"map_on_loop\" id=\"q3*[Bs;6*N1#u,UsRM)Q\"><statement name=\"LOOP\"><block type=\"create_map_key\" id=\"k|vs3!I@`_mhH]~4UKOF\"><value name=\"key\"><block type=\"text\" id=\")Rrs,l6WXkRF9%G$2BTA\"><field name=\"TEXT\">name</field></block></value><value name=\"value\"><block type=\"text\" id=\"bEL[+8z33a~eGtfLG/oa\"><field name=\"TEXT\">humidity</field></block></value><next><block type=\"create_map_key\" id=\"2ty`x,jUCz|gsVOWlPql\"><value name=\"key\"><block type=\"text\" id=\":p(CxrTv!sX:/IRNVgV)\"><field name=\"TEXT\">unique_id</field></block></value><value name=\"value\"><block type=\"text\" id=\".f$^Z#TaLp9pD~$JKNw~\"><field name=\"TEXT\">humidity</field></block></value><next><block type=\"create_map_key\" id=\"`Vu:@zktN*hau95nr$e5\"><value name=\"key\"><block type=\"text\" id=\"|/ix#|i66/Wg^}q++ZB@\"><field name=\"TEXT\">device_class</field></block></value><value name=\"value\"><block type=\"text\" id=\"a^T|Mc5Q^VC)MrLY-dC,\"><field name=\"TEXT\">humidity</field></block></value><next><block type=\"create_map_key\" id=\"u3fX^.}W*cc}=jNoQQ=-\"><value name=\"key\"><block type=\"text\" id=\";MQJ?qdJ/:caz3Q:~WbZ\"><field name=\"TEXT\">state_topic</field></block></value><value name=\"value\"><block type=\"text\" id=\"UR=xrf8;9Gp*z4cW!O18\"><field name=\"TEXT\">office/m5stackplant/state</field></block></value><next><block type=\"create_map_key\" id=\"F1I@(_tagFhOn2]=W5Tw\"><value name=\"key\"><block type=\"text\" id=\")wb`[OrLG]$|dfc(?jV-\"><field name=\"TEXT\">unit_of_measurement</field></block></value><value name=\"value\"><block type=\"text\" id=\"KvT174R$|eK,aps?J%U|\"><field name=\"TEXT\">%</field></block></value><next><block type=\"create_map_key\" id=\"U#SXGwOb,4cGS1mCXLX-\"><value name=\"key\"><block type=\"text\" id=\"0#UHdJ(ctXc+0o]q.hEg\"><field name=\"TEXT\">value_template</field></block></value><value name=\"value\"><block type=\"text\" id=\"e+c@68fP#NA,JHWt%6to\"><field name=\"TEXT\">{{value_json.humidity}}</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></value></block></value><next><block type=\"mqtt_publish\" id=\"nK)V%Lf//!5Ves`h~_Ch\"><value name=\"FROM\"><shadow type=\"text\" id=\"R%_gqBFSu/A3e[%|I)_A\"><field name=\"TEXT\">homeassistant/sensor/office/pressure/config</field></shadow></value><value name=\"MSG\"><shadow type=\"text\"><field name=\"TEXT\">test</field></shadow><block type=\"dumps_json\" id=\"!D`jbm*K[v+IHLWfxQEO\"><value name=\"JSON_VAR\"><block type=\"map_on_loop\" id=\"1:~0#xJV*Jp{OM.Fil3V\"><statement name=\"LOOP\"><block type=\"create_map_key\" id=\"(kbAb_tiSw3RgrP,v@[e\"><value name=\"key\"><block type=\"text\" id=\"3qqcvQ%yoq#EI2q%Qedm\"><field name=\"TEXT\">name</field></block></value><value name=\"value\"><block type=\"text\" id=\"u=BeqJia#Wn[RqubMYSb\"><field name=\"TEXT\">pressure</field></block></value><next><block type=\"create_map_key\" id=\"V]HVJ)Jz5w0W8AY%-4KV\"><value name=\"key\"><block type=\"text\" id=\"1:d{#3?8~)FoRdj!Tpg`\"><field name=\"TEXT\">unique_id</field></block></value><value name=\"value\"><block type=\"text\" id=\"ru_7jch@P@)duWBZ`(b7\"><field name=\"TEXT\">pressure</field></block></value><next><block type=\"create_map_key\" id=\"9Q`vf9J)x0SS22p7z?Q+\"><value name=\"key\"><block type=\"text\" id=\"ZLb[,u|Ys{6nU{hAkao5\"><field name=\"TEXT\">device_class</field></block></value><value name=\"value\"><block type=\"text\" id=\"^~+@ymY9=NC@fta+(fAz\"><field name=\"TEXT\">pressure</field></block></value><next><block type=\"create_map_key\" id=\";oMi(*%*MX}0Z-psB~XF\"><value name=\"key\"><block type=\"text\" id=\"uX?)xBo|I2:gME+1|;:v\"><field name=\"TEXT\">state_topic</field></block></value><value name=\"value\"><block type=\"text\" id=\"b.YMx4i`abicJXS//@Sl\"><field name=\"TEXT\">office/m5stackplant/state</field></block></value><next><block type=\"create_map_key\" id=\"y/7kGKaJ`nxR.8[:;Rb(\"><value name=\"key\"><block type=\"text\" id=\"V+)(-.to$u,R{i4UDE|f\"><field name=\"TEXT\">unit_of_measurement</field></block></value><value name=\"value\"><block type=\"text\" id=\":Ct!YS@:_sxj3cPf5@Oc\"><field name=\"TEXT\">hPa</field></block></value><next><block type=\"create_map_key\" id=\"fiPPIc{Ys@7R?UQL5((!\"><value name=\"key\"><block type=\"text\" id=\"}4fz=PFa*+W0Y9P}dv%x\"><field name=\"TEXT\">value_template</field></block></value><value name=\"value\"><block type=\"text\" id=\"zh4h8ab$NRXaM}#K=4U9\"><field name=\"TEXT\">{{value_json.pressure}}</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></value></block></value><next><block type=\"mqtt_publish\" id=\"NufL|#RMZ$n/%m`[CB-V\"><value name=\"FROM\"><shadow type=\"text\" id=\"b]ULE2E1$y*3l,@/aU==\"><field name=\"TEXT\">homeassistant/sensor/office/moisture/config</field></shadow></value><value name=\"MSG\"><shadow type=\"text\"><field name=\"TEXT\">test</field></shadow><block type=\"dumps_json\" id=\"jBFWQ`3kRlPO}MV]2I(X\"><value name=\"JSON_VAR\"><block type=\"map_on_loop\" id=\"hE!{Ny[:VK;_HmXzmAP%\"><statement name=\"LOOP\"><block type=\"create_map_key\" id=\"T+q=d(tpsR$-SO?~H[|o\"><value name=\"key\"><block type=\"text\" id=\"e#7(Ri.IG{oAN1~P_Nm,\"><field name=\"TEXT\">name</field></block></value><value name=\"value\"><block type=\"text\" id=\"Ba,stcszPPfq[iv3g7ht\"><field name=\"TEXT\">moisture</field></block></value><next><block type=\"create_map_key\" id=\",1b,]L`?LCE8_nPi`Xm1\"><value name=\"key\"><block type=\"text\" id=\"dto_Ex#7D_ao@B-OQCf#\"><field name=\"TEXT\">unique_id</field></block></value><value name=\"value\"><block type=\"text\" id=\"{W%g_.nBzSoCYp7(i*~I\"><field name=\"TEXT\">moisture</field></block></value><next><block type=\"create_map_key\" id=\"v_wB]),2L!gDZ.u=1x1z\"><value name=\"key\"><block type=\"text\" id=\"0hy~kAGu_pLausSWE(u9\"><field name=\"TEXT\">device_class</field></block></value><value name=\"value\"><block type=\"text\" id=\"RV_`jQe0LPH0k[7QS#v-\"><field name=\"TEXT\">humidity</field></block></value><next><block type=\"create_map_key\" id=\"XAXz[k3[[CMY(EJ%I*{I\"><value name=\"key\"><block type=\"text\" id=\"B:@y~]{*WIa#UjAdc89d\"><field name=\"TEXT\">state_topic</field></block></value><value name=\"value\"><block type=\"text\" id=\"_E#P|h*5:iIjN,g-[Jpm\"><field name=\"TEXT\">office/m5stackplant/state</field></block></value><next><block type=\"create_map_key\" id=\"UHokgT_@Vi}bq.5wU@M)\"><value name=\"key\"><block type=\"text\" id=\"zFlxNL)N7oQ)2$73+l@?\"><field name=\"TEXT\">unit_of_measurement</field></block></value><value name=\"value\"><block type=\"text\" id=\"8s0.x*3~|CHhGM3yh??u\"><field name=\"TEXT\">%</field></block></value><next><block type=\"create_map_key\" id=\"$fB)Yg5f;A|XmpuS0jY`\"><value name=\"key\"><block type=\"text\" id=\"XejZar@9N~X@m5yXJh-I\"><field name=\"TEXT\">value_template</field></block></value><value name=\"value\"><block type=\"text\" id=\"IpK%|$*FDXQ)(),w1x_*\"><field name=\"TEXT\">{{value_json.moisture}}</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></value></block></value></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"90\" y=\"-590\"><next><block type=\"wifi_connect\" id=\"ff8|B3yp/!-doPEx=kw`\"><field name=\"wifi\">true</field><next><block type=\"image_hide\" id=\"rfG1Vs^Ej*H%^,[mbedd\"><field name=\"COMPONENT\">imgWarn</field><next><block type=\"mqtt_set_client\" id=\"je?c[?($hIGK8mw!PhS-\"><value name=\"ID\"><shadow type=\"text\" id=\"U_{2|H8C*-yW9!N?E,3R\"><field name=\"TEXT\">M5StackPlant</field></shadow></value><value name=\"SERVER\"><shadow type=\"text\" id=\"P)R(TVDWOF`0N[Oq5m$:\"><field name=\"TEXT\">homeserver.local</field></shadow></value><value name=\"PORT\"><shadow type=\"math_number\" id=\"VJ;.|LaR.,zW2(f0r%yh\"><field name=\"NUM\">1883</field></shadow></value><value name=\"USER\"><shadow type=\"text\" id=\"8y0EVs6zxxCg1Z]O[UG{\"><field name=\"TEXT\"></field></shadow></value><value name=\"PASSWORD\"><shadow type=\"text\" id=\"$6DvXdwBX+-gmR0B/Hx#\"><field name=\"TEXT\"></field></shadow></value><value name=\"KEEPALIVE\"><shadow type=\"math_slider\" id=\"X7nBV/`}??}9ZZ[0Vg3d\"><field name=\"NUM\" max=\"65536\" step=\"1\">300</field></shadow></value><next><block type=\"mqtt_start\" id=\"p^fT/Mrk_?180]6F#8;(\"><next><block type=\"procedures_callnoreturn\" id=\"4MH!$%SYD_GOW##$Ftkg\"><mutation name=\"mqttPubConfig\"></mutation><next><block type=\"basic_on_loop\" id=\";~ya@|2XcY!;wPm@TEs$\"><statement name=\"LOOP\"><block type=\"procedures_callnoreturn\" id=\"jb+qODB%~uuG$pMo*E.A\"><mutation name=\"readSensors\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"3DG+O`R,.vxI|bWa*[R0\"><mutation name=\"updateDisplay\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"aW=EA%9XT=(KS!CGwZDK\"><mutation name=\"mqttPubState\"></mutation><next><block type=\"timer_delay\" id=\"jK8Yc3sUo5=KQ`Q6KqQU\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\",$4LBW%+=IY**c$77:H.\"><field name=\"NUM\">30</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"procedures_defnoreturn\" id=\"~)(5#eZbu%(p%Rg1O:tp\" x=\"770\" y=\"-490\"><field name=\"NAME\">readSensors</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"variables_set\" id=\"n1=2U*/;y;6r~wC6US],\"><field name=\"VAR\" id=\".KyHX^Ik8QTRh;4i!Ud}\">moisture</field><value name=\"VALUE\"><block type=\"pins_set_map\" id=\"=J`=diltmq~zz`fat+[Y\"><value name=\"MAP\"><shadow type=\"math_number\" id=\"B[(PBFR?:f6LIa=_!mAv\"><field name=\"NUM\">0</field></shadow><block type=\"watering_get_adc_value\" id=\"OM=eS.U_8uN9BhcIwv|y\"><field name=\"NAME\">Watering0</field></block></value><value name=\"FROM_LOW\"><shadow type=\"math_number\" id=\"oKp.HPW3/;AJjV:k5=V2\"><field name=\"NUM\">1415</field></shadow></value><value name=\"FROM_HIGH\"><shadow type=\"math_number\" id=\"^FxQ|{I1a/w/-}9d9;,/\"><field name=\"NUM\">1950</field></shadow></value><value name=\"TO_LOW\"><shadow type=\"math_number\" id=\"lWm~ojQEIJKKd1R1BGmj\"><field name=\"NUM\">100</field></shadow></value><value name=\"TO_HIGH\"><shadow type=\"math_number\" id=\"Gmma2C_T.XQj?;(7$3JW\"><field name=\"NUM\">0</field></shadow></value></block></value><next><block type=\"variables_set\" id=\"Sg/do,m[]lHtHuHF/+1o\"><field name=\"VAR\" id=\"[N$wY3_=l)GW[[@U,V]%\">temperature</field><value name=\"VALUE\"><block type=\"math_round\" id=\"RP*(YolEg7i]e;TG7lnq\"><field name=\"OP\">ROUND</field><value name=\"NUM\"><block type=\"dht12_get_temperature\" id=\"yG;}4k(tkSfj`-Ud1MX1\"><field name=\"VARNAME\">env20</field></block></value></block></value><next><block type=\"variables_set\" id=\"$bP0YvL{Tb8qyz*[G90W\"><field name=\"VAR\" id=\"-=(5Diw]5}e^Vrr0IE)8\">humidity</field><value name=\"VALUE\"><block type=\"math_round\" id=\"O{xpz8R}*Xh1kBToV-3-\"><field name=\"OP\">ROUND</field><value name=\"NUM\"><block type=\"dht12_get_humidity\" id=\"7`$0bMHx(+%(FU)#s.K?\"><field name=\"VARNAME\">env20</field></block></value></block></value><next><block type=\"variables_set\" id=\"}W-fx}vXspyilt$Z}Er|\"><field name=\"VAR\" id=\"nS0))#U7e,N^BJ:}9Eh6\">pressure</field><value name=\"VALUE\"><block type=\"math_round\" id=\"F2D:d03h|f4pc}rUA%Bl\"><field name=\"OP\">ROUND</field><value name=\"NUM\"><block type=\"dht12_pressure\" id=\"hudyp?DBh%jP8K4n7(J`\"><field name=\"VARNAME\">env20</field></block></value></block></value></block></next></block></next></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\")Za^)*!CXUZ?($YZS{EM\" x=\"770\" y=\"-110\"><field name=\"NAME\">updateDisplay</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"label_set_text\" id=\"q-eoA*y%wc#l6pSLwX#0\"><field name=\"COMPONENT\">txtTemp</field><value name=\"TEXT\"><shadow type=\"text\" id=\"g%riipB/4vYBc:gvPrE{\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\"!.NNSR._[Ev8$3VX=@tt\"><value name=\"arg0\"><shadow type=\"text\" id=\".3z6F=Ca7VKEvOBvB217\" disabled=\"true\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"91CrE*Meq4c$74K*;Z#2\"><field name=\"VAR\" id=\"[N$wY3_=l)GW[[@U,V]%\">temperature</field></block></value><value name=\"arg1\"><block type=\"text\" id=\"a9?Vr#Igv]VXFb8QkRTD\"><field name=\"TEXT\">C</field></block></value></block></value><next><block type=\"label_set_text\" id=\"yuc~yG]EQ=dy;q*c=g]{\"><field name=\"COMPONENT\">txtPress</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\"fZ85/jNN+8Q:Q):[mU.D\"><value name=\"arg0\"><shadow type=\"text\" id=\"uCx~KM-w|ya$ph9,(|c-\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"HdYl}i^P~zG(*bPY5B)T\"><field name=\"VAR\" id=\"nS0))#U7e,N^BJ:}9Eh6\">pressure</field></block></value><value name=\"arg1\"><block type=\"text\" id=\"RM+Rm;b?a^h75Cu9P9b*\"><field name=\"TEXT\">Pa</field></block></value></block></value><next><block type=\"label_set_text\" id=\"_iV*/X6[gE^bXMI:F9B:\"><field name=\"COMPONENT\">txtHum</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\";RJ]$HqF5VV4C(5KUld8\"><value name=\"arg0\"><shadow type=\"text\" id=\"LY}wK^w8,Tl7zBT94%)`\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"GqBj#)Lf22Qk)BScRW(V\"><field name=\"VAR\" id=\"-=(5Diw]5}e^Vrr0IE)8\">humidity</field></block></value><value name=\"arg1\"><block type=\"text\" id=\"HN$*Y3S4!qG(n-G]dKk[\"><field name=\"TEXT\">%</field></block></value></block></value><next><block type=\"label_set_text\" id=\"~rM3V9@hgHsOd@;=H`AH\"><field name=\"COMPONENT\">txtMoist</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\")vWJ62:P_J?NBk~_(7TZ\"><value name=\"arg0\"><shadow type=\"text\" id=\":l#i9X9roZR@~;qHM1Sl\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"8@])/-N8p{Mn==q][{{8\"><field name=\"VAR\" id=\".KyHX^Ik8QTRh;4i!Ud}\">moisture</field></block></value><value name=\"arg1\"><block type=\"text\" id=\"9y%c}hd*zHk?8x}^9c#-\"><field name=\"TEXT\">%</field></block></value></block></value><next><block type=\"controls_ifelse\" id=\"V6SuNAKA0$a]_(.Uni?f\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"]^`|fuCAnR$djc3KiD|g\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"variables_get\" id=\"ltVHoQ6m%BkN.X;VorxY\"><field name=\"VAR\" id=\".KyHX^Ik8QTRh;4i!Ud}\">moisture</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"paDLXK!ft3CIYDhF2~s;\"><field name=\"NUM\">20</field></block></value></block></value><statement name=\"DO0\"><block type=\"image_show\" id=\"Qe=3}=l{iTtNu3c:u*Sx\"><field name=\"COMPONENT\">imgWarn</field><next><block type=\"rgb_set_all\" id=\"71foCrnt=N^KnTL}*lu=\"><field name=\"COLOR\">#cc0000</field></block></next></block></statement><statement name=\"ELSE\"><block type=\"image_hide\" id=\"ycD{$LH|u?[pNn{Nx)^C\"><field name=\"COMPONENT\">imgWarn</field><next><block type=\"rgb_set_all\" id=\"f-cVFs|f1$r]gU/+WMu4\"><field name=\"COLOR\">#3366ff</field></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block><block type=\"button_callback\" id=\"kpuEl$Hz+,?cNsNB=2Ey\" x=\"90\" y=\"-10\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"watering_set_pump_status\" id=\"+.w;gTqj_7TrPx.LTcc_\"><field name=\"NAME\">Watering0</field><value name=\"status\"><shadow type=\"math_slider\" id=\"nrm2JandO|Z@f4bF=*|s\"><field name=\"NUM\" max=\"1\" step=\"1\">1</field></shadow></value></block></statement></block><block type=\"button_callback\" id=\"xgwP~W`vn,c:[7deAs@,\" x=\"450\" y=\"-10\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"wifi_connect\" id=\"wcW=_XxJq[g;`U,EoSC8\"><field name=\"wifi\">true</field></block></statement></block><block type=\"button_callback\" id=\"e+n{Ru`e?~rvBkNJT%2o\" x=\"450\" y=\"90\"><field name=\"BUTTON\">C</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"procedures_callnoreturn\" id=\"nXqEh$R$}$?9f~J|jo*1\"><mutation name=\"mqttPubConfig\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"R=X;o~9=j:v+1e=30a2c\"><mutation name=\"mqttPubState\"></mutation></block></next></block></statement></block><block type=\"button_callback\" id=\"76mJ0TZGLdwTr~;GkuI:\" x=\"90\" y=\"110\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasReleased</field><statement name=\"FUNC\"><block type=\"watering_set_pump_status\" id=\"feyCd=L@bcJ~!F)Z5hJ3\"><field name=\"NAME\">Watering0</field><value name=\"status\"><shadow type=\"math_slider\" id=\"7w[aE`T*H!3C^C_d8P^r\"><field name=\"NUM\" max=\"1\" step=\"1\">0</field></shadow></value></block></statement></block><block type=\"procedures_defnoreturn\" id=\"hF0{Yu.U,K]L?4ovD0M4\" x=\"90\" y=\"330\"><field name=\"NAME\">mqttPubState</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"mqtt_publish\" id=\"m/)Ea5/1[:{$f4Ut_7yE\"><value name=\"FROM\"><shadow type=\"text\" id=\"E}tMgPOFcb4|)j2)B]#_\"><field name=\"TEXT\">office/m5stackplant/state</field></shadow></value><value name=\"MSG\"><shadow type=\"text\" id=\"`mEZ%CvgoT+tupnJz%4Q\"><field name=\"TEXT\">test</field></shadow><block type=\"dumps_json\" id=\"_528|s1C+/2${P$Y@x!5\"><value name=\"JSON_VAR\"><block type=\"map_on_loop\" id=\"`vboL4Qn`q;+CqbL~rnw\"><statement name=\"LOOP\"><block type=\"create_map_key\" id=\"/{01tJywr*2ub7]m/Au9\"><value name=\"key\"><block type=\"text\" id=\"v~rg+DsF!-;=08[Ca-E{\"><field name=\"TEXT\">temperature</field></block></value><value name=\"value\"><block type=\"variables_get\" id=\"$f_@ZI/k2nfLE9FhK8WK\"><field name=\"VAR\" id=\"[N$wY3_=l)GW[[@U,V]%\">temperature</field></block></value><next><block type=\"create_map_key\" id=\";.p;(+,_2{}|(U!!sp=0\"><value name=\"key\"><block type=\"text\" id=\"W(uT]TUzQ!|jvb=Qk,il\"><field name=\"TEXT\">pressure</field></block></value><value name=\"value\"><block type=\"variables_get\" id=\"L)[i^0mH;vjd0T/Qed?B\"><field name=\"VAR\" id=\"nS0))#U7e,N^BJ:}9Eh6\">pressure</field></block></value><next><block type=\"create_map_key\" id=\"GVaGnN#7@]PsA!%uuZr[\"><value name=\"key\"><block type=\"text\" id=\"$B*Yhl_Ze2R7AghsOd!{\"><field name=\"TEXT\">humidity</field></block></value><value name=\"value\"><block type=\"variables_get\" id=\":_Aj6eK*Qnu^6V)O|rnf\"><field name=\"VAR\" id=\"-=(5Diw]5}e^Vrr0IE)8\">humidity</field></block></value><next><block type=\"create_map_key\" id=\"bVQ3ADlZ%Vn0HZcdu)[:\"><value name=\"key\"><block type=\"text\" id=\"T727.8b9*SE!{l~Z!N9f\"><field name=\"TEXT\">moisture</field></block></value><value name=\"value\"><block type=\"variables_get\" id=\"[8S_N+fyvtWM54*QCJ,L\"><field name=\"VAR\" id=\".KyHX^Ik8QTRh;4i!Ud}\">moisture</field></block></value></block></next></block></next></block></next></block></statement></block></value></block></value></block></statement></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1634584284727,"name":"M5Remote","dragAndDrop":false,"resizable":false,"color":"#fff","bgColor":"#0080FF","type":"title"}],"modules":["rgb"]}