PLACEHOLDERThis project plans to increase the yield of crops every harvest by monitoring and adjusting the various variables such as the moisture of the soil, the temperature of the environment and amount of sunlight the crops are receiving
Video demo - https://www.youtube.com/watch?v=eWvFfJWMeCY
{"components":[{"id":"____screen","createTime":1673943033650,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1673943033650,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1673943033650,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1673943033650,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"L8jt83fo+j4LT-k^","createTime":1673943278428,"isCoreTwo":false,"isPaper":false,"name":"label0","x":90,"y":61,"color":"#8800ff","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":13},{"id":"MZ6nf6@D0T91zHQu","createTime":1675080020868,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image0","x":170,"y":31,"imagePath":"moisture.jpg","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":22},{"id":"pK2ksv$t31=Nx^V4","createTime":1675099891885,"isCoreTwo":false,"isPaper":false,"name":"label1","x":90,"y":97,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":23}],"type":"fire","versions":"Beta","units":[{"id":"Yb8R@!pAYG2FC1xv","createTime":1675150290238,"stickType":"stick","type":"earth","name":"earth_2","port":"B","default":["B","D","Custom"],"user_port":["21","22"],"icon":"earth.png"},{"id":"Lc6KWncdKtxET5-C","createTime":1675150290238,"type":"servo","name":"servo_2","port":"A","default":["A","B","E","Custom"],"user_port":["21","22"],"icon":"servo.png"}],"hats":[],"blockly":"<variables><variable id=\"Y`b^Zeq^sE!on0?(j9cx\">min_moisture</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"130\" y=\"-170\"><next><block type=\"image_hide\" id=\"(blZM58G^{jKhlT$j*rq\"><field name=\"COMPONENT\">image0</field><next><block type=\"variables_set\" id=\"hE=:189qxwVv4H_p/[j^\"><field name=\"VAR\" id=\"Y`b^Zeq^sE!on0?(j9cx\">min_moisture</field><value name=\"VALUE\"><block type=\"math_number\" id=\"nN6]Tca:[wwk8Uae*6Kr\"><field name=\"NUM\">0</field></block></value><next><block type=\"basic_on_loop\" id=\"P^(Rb[(-]Y__a3niFvaX\"><statement name=\"LOOP\"><block type=\"label_set_text\" id=\"Hoh5:c!D9JPfrW?w.A0r\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"UDDKQN2A`UVB*8AheeVQ\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"earth_a_read\" id=\"R0#s5?0UAMSY.AB@]QJI\"><field name=\"VARNAME\">earth_2</field></block></value><next><block type=\"controls_if\" id=\"=;09RUNb$OO38n+s44Wj\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"m4(LRct%LXIp{tfy8D4r\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"earth_a_read\" id=\"n{-MD_1m`QpGd)u[O?-3\"><field name=\"VARNAME\">earth_2</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"u92]%V]yA18)pd}I|a5Q\"><field name=\"VAR\" id=\"Y`b^Zeq^sE!on0?(j9cx\">min_moisture</field></block></value></block></value><statement name=\"DO0\"><block type=\"image_show\" id=\"qjMcW_l0OH8a]ooW|:Fx\"><field name=\"COMPONENT\">image0</field><next><block type=\"rgb_set_all\" id=\"?8NZw0Q-2Gi,4RR.6q`E\"><field name=\"COLOR\">#6600cc</field><next><block type=\"servo_unit_write_angle\" id=\"h#b?%id0o^gcDk2ZR?5.\"><field name=\"VARNAME\">servo_2</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"UYwC3D(rL+s@m7_I#_Q_\"><field name=\"NUM\">90</field></shadow></value><next><block type=\"timer_delay\" id=\"PGDq~xo`]3L{re~WYpL~\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"!LEkhVk6`b~j.lP%QQ7d\"><field name=\"NUM\">3</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"+8u.4/NvZ33V~~8{nJ5:\"><field name=\"VARNAME\">servo_2</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\";g?[w0a,;1ShQCx7R3j2\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"timer_delay\" id=\"#TW;x2[rcNwHdB_ys-7B\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"#d7*78I]^m:t/~LncQ^i\"><field name=\"NUM\">0.5</field></shadow></value><next><block type=\"rgb_set_all\" id=\"2S9/9TmY8]i!Y-7#?AHU\"><field name=\"COLOR\">#000000</field></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block></next></block></next></block></next></block><block type=\"button_callback\" id=\"5_P!2q(UlQwtRF4A,4Dn\" x=\"510\" y=\"70\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"label_set_mode\" id=\"XCu9d%1(j~vrlPFR@si#\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">False</field><next><block type=\"math_change\" id=\"tFw:=x7L%9~UA=UwUR%J\"><field name=\"VAR\" id=\"Y`b^Zeq^sE!on0?(j9cx\">min_moisture</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"Tv)vAijqD8wv#T@o=2{O\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"label_set_text\" id=\"eTc-KPT_X={U#gNJQY`,\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"r@:;2j{{Jjfrq3++B8}X\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"g=LX9T{$chK`F%nN`+=!\"><field name=\"VAR\" id=\"Y`b^Zeq^sE!on0?(j9cx\">min_moisture</field></block></value></block></next></block></next></block></statement></block><block type=\"button_callback\" id=\"w*KMshf~=S08EwGLa,ni\" x=\"530\" y=\"250\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"label_set_mode\" id=\"U@SIOd[[y.%R.mO]KOox\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">False</field><next><block type=\"math_change\" id=\",|(3}|LcPj@V!to!@ZNr\"><field name=\"VAR\" id=\"Y`b^Zeq^sE!on0?(j9cx\">min_moisture</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"3T}0n@i*L%Toud7T1.z[\"><field name=\"NUM\">-0.1</field></shadow></value><next><block type=\"label_set_text\" id=\"?G!x@wOMJ?^}M~z1UU]_\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Mii2$I=DT:sn+CV3a3/x\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"s_Dhp;OAs[1+qh+VD6yd\"><field name=\"VAR\" id=\"Y`b^Zeq^sE!on0?(j9cx\">min_moisture</field></block></value></block></next></block></next></block></statement></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1675150290238,"name":"M5RemoteTitle","dragAndDrop":false,"resizable":false,"options":{"minWidth":1,"minHeight":1,"maxWidth":6,"maxHeight":10,"defaultWidth":2,"defaultHeight":1},"w":2,"h":1,"bgColor":"#0080FF","color":"#fff","fontsize":"M","label":"M5Remote","interval":3000,"code":"","event":"","dataSource":"none","ezdataToken":"","topic":"","needShadow":false,"type":"title","x":0,"y":0}],"modules":["rgb"],"cbIdList_":[],"eventCBIdList_":[]}
{"components":[{"id":"____screen","createTime":1673338296035,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1673338296035,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1673338296035,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1673338296035,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"yGwT&^$zsYAiT3Ym","createTime":1673338505652,"isCoreTwo":false,"isPaper":false,"name":"label0","x":57,"y":48,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":4},{"id":"6sPokZww92LR+BSp","createTime":1673940511918,"isCoreTwo":false,"isPaper":false,"name":"label1","x":57,"y":126,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":7},{"id":"Sqg_+s@MFLHk0RnU","createTime":1673942463169,"isCoreTwo":false,"isPaper":false,"name":"label2","x":57,"y":185,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":8},{"id":"xfZ-D$-92hKU$mrQ","createTime":1675075551142,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image0","x":189,"y":5,"imagePath":"download.jpg","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":14},{"id":"N&GJKo^@fUV5cxf3","createTime":1675075562212,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image1","x":203,"y":132,"imagePath":"Hightemp.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":15},{"id":"NL6UPq2cXnnq!y7Q","createTime":1675149361138,"isCoreTwo":false,"isPaper":false,"name":"label3","x":57,"y":83,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":9},{"id":"kXbWFrDfhuMqov^p","createTime":1675149365908,"isCoreTwo":false,"isPaper":false,"name":"label4","x":10,"y":152,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":10},{"id":"fKWTUfDFSV@6+&o`","createTime":1675149390707,"isCoreTwo":false,"isPaper":false,"name":"label5","x":55,"y":152,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":11},{"id":"E@qTUezcR9@JMsDa","createTime":1675149519184,"isCoreTwo":false,"isPaper":false,"name":"label6","x":54,"y":217,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":12},{"id":"1nDHlwnTugav`_zq","createTime":1675149968787,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image2","x":199,"y":133,"imagePath":"coolTemp.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":14},{"id":"j#XjjioAe&WOtdZa","createTime":1675149996779,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image3","x":99,"y":138,"imagePath":"R.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":15}],"type":"fire","versions":"Beta","units":[{"id":"vwU-=B@3RvM6ODPS","createTime":1675738575213,"stickType":"stick","type":"light","name":"light_1","port":"B","default":["A","B","D","Custom"],"user_port":["21","22"],"icon":"light.png"},{"id":"R_HQJboL8pHs^0fc","createTime":1675738575213,"hidden":false,"type":"env3","name":"env3_0","port":"A","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"0","user_port":["21","22"],"icon":"env3.png"}],"hats":[],"blockly":"<variables><variable id=\"i;tzGr!#)E,%C/+7r`CL\">Minhumid</variable><variable id=\"b/($EX/?X00EH86XWn.q\">minlight</variable><variable id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</variable><variable id=\"lc#m-b+m6tzvB{MB^vK)\">max_temp</variable><variable id=\"?_wXMgB}hwdQo]vseGwM\">mintemp</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-290\" y=\"-310\"><next><block type=\"variables_set\" id=\"W%/O,2.7;3Tu*8_7!sQn\"><field name=\"VAR\" id=\"i;tzGr!#)E,%C/+7r`CL\">Minhumid</field><value name=\"VALUE\"><block type=\"math_number\" id=\"M0+c/5Ty!jpm6)hFf-p;\"><field name=\"NUM\">60</field></block></value><next><block type=\"variables_set\" id=\"Kg^1e7FCXg]=}g~FH*!*\"><field name=\"VAR\" id=\"b/($EX/?X00EH86XWn.q\">minlight</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Boj[~AEfvt$%K,d(hD,H\"><field name=\"NUM\">500</field></block></value><next><block type=\"variables_set\" id=\"zGh#*E.pi!8|nu775?]0\"><field name=\"VAR\" id=\"lc#m-b+m6tzvB{MB^vK)\">max_temp</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Bx:sR4K$V?HcA#i_7^gM\"><field name=\"NUM\">28</field></block></value><next><block type=\"variables_set\" id=\"9=d+LU+rjdVtxd,._Dp.\"><field name=\"VAR\" id=\"?_wXMgB}hwdQo]vseGwM\">mintemp</field><value name=\"VALUE\"><block type=\"math_number\" id=\"bWV%$=2Y[1Whz$b`|$iu\"><field name=\"NUM\">20</field></block></value><next><block type=\"variables_set\" id=\"a]W@8fdzm!?)@fs2Gh~.\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field><value name=\"VALUE\"><block type=\"math_number\" id=\"!|R^!1j;//@Ld6@CMSo]\"><field name=\"NUM\">0</field></block></value><next><block type=\"basic_on_loop\" id=\"s]y!F`C!lMBu#@TB+,UL\"><statement name=\"LOOP\"><block type=\"label_set_text\" id=\"$UbgK+df=J88UQLRf^Ae\"><field name=\"COMPONENT\">label3</field><value name=\"TEXT\"><shadow type=\"text\" id=\"xcj(4d@IswOE;A0MC_-y\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"+xp*08:r}K:9`=6FIotD\"><field name=\"VAR\" id=\"b/($EX/?X00EH86XWn.q\">minlight</field></block></value><next><block type=\"label_set_text\" id=\"V4A_eEie%,Rr+6cgkE43\"><field name=\"COMPONENT\">label4</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"b,6b[/[kPNq5Dv[fTvww\"><field name=\"VAR\" id=\"?_wXMgB}hwdQo]vseGwM\">mintemp</field></block></value><next><block type=\"label_set_text\" id=\"Q(R|y{Qs70?l|z-)N+bT\"><field name=\"COMPONENT\">label5</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"K79K}ffwW^0[Mm`zeo0C\"><field name=\"VAR\" id=\"lc#m-b+m6tzvB{MB^vK)\">max_temp</field></block></value><next><block type=\"label_set_text\" id=\"O/wsN+u/7)Djyp~D{Izx\"><field name=\"COMPONENT\">label6</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"]KeKsNn,,#UJLk6@+0{N\"><field name=\"VAR\" id=\"i;tzGr!#)E,%C/+7r`CL\">Minhumid</field></block></value><next><block type=\"label_set_text\" id=\"B557HT_M$J_d,g_sB6tB\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"DZatTBoLutRTQA2KIyC!\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"light_a_read\" id=\"fbDeG~]Goq1,o{WBK%K;\"><field name=\"VARNAME\">light_1</field></block></value><next><block type=\"label_set_text\" id=\"QIDO./.S4jPs]n@[IuHw\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_temperature\" id=\"wv}/dxRYjv^R*J@CoUEl\"><field name=\"VARNAME\">env3_0</field></block></value><next><block type=\"label_set_text\" id=\"XyGFcKeqONr{Ye0;k~jU\"><field name=\"COMPONENT\">label2</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_humidity\" id=\"f)Tzd^Fm=/x1*SuVWb./\"><field name=\"VARNAME\">env3_0</field></block></value><next><block type=\"image_hide\" id=\"+=MW+nAss$8{X!PDXR!X\"><field name=\"COMPONENT\">image0</field><next><block type=\"image_hide\" id=\"U$3vXrpYCCPHkFQu!0gc\"><field name=\"COMPONENT\">image1</field><next><block type=\"image_hide\" id=\"7ZmuIdh.qos4EQJ#ccGJ\"><field name=\"COMPONENT\">image2</field><next><block type=\"image_hide\" id=\"0lnd}/+#k%AE{oA5uPtw\"><field name=\"COMPONENT\">image3</field><next><block type=\"controls_ifelse\" id=\"}5wTgi*|+|/J_NH;z6:#\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"CsX]=z1.:7T3xyj`hY]S\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"light_a_read\" id=\"GQU.Fnr7%~si;+?B3%td\"><field name=\"VARNAME\">light_1</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"MfGm4.nDIzDeM}=R?bUp\"><field name=\"VAR\" id=\"b/($EX/?X00EH86XWn.q\">minlight</field></block></value></block></value><statement name=\"DO0\"><block type=\"image_show\" id=\"]sd`Y11!i@lp4SHMpY;=\"><field name=\"COMPONENT\">image0</field><next><block type=\"rgb_set_all\" id=\"8y@*JD-BLt3(@{qe;olz\"><field name=\"COLOR\">#ffff33</field><next><block type=\"speaker_tone\" id=\"gsuz-@FavuflPaZLB}3C\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"a#V7N(qHqNrbWYG9h__n\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"V48r!ta@S:4x3d{|WvS3\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"timer_delay\" id=\"~AOF|$be9F%?ba]7k^@#\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\".9i#KbF8HV++2`dV9_)O\"><field name=\"NUM\">0.5</field></shadow></value><next><block type=\"rgb_set_all\" id=\"5SYSS1.r`?NtvSs8~o7V\"><field name=\"COLOR\">#000000</field><next><block type=\"timer_delay\" id=\"Jw!/]}v+F:G65LH~~5Ar\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"2sKholmQt^/ROC_[zu@!\"><field name=\"NUM\">0.5</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"controls_ifelse\" id=\"8I;m4kC-Ib7yrGhscyWm\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"w5_w=5em.=90MIz*Yyi#\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"dht12_get_temperature\" id=\"~Gd$d()U_#?emXQ)Dy=,\"><field name=\"VARNAME\">env3_0</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"0m{2n;D-)4h$3Bg-1s,0\"><field name=\"VAR\" id=\"?_wXMgB}hwdQo]vseGwM\">mintemp</field></block></value></block></value><statement name=\"DO0\"><block type=\"image_show\" id=\"QbB$QAg/{E{)Lv%v6{oX\"><field name=\"COMPONENT\">image2</field><next><block type=\"rgb_set_all\" id=\"kw=]Cpek!~CTO24AKOsq\"><field name=\"COLOR\">#000099</field><next><block type=\"speaker_tone\" id=\"L~xlAftKAJjv5l^=BJs;\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"w.eC_?g63S=@E0zOVToy\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"ip!Qs6O1@%8.gs`LX{Fg\"><field name=\"NUM\">100</field></shadow></value><next><block type=\"timer_delay\" id=\",Ne:3K~CiM#Ig5Q*Wf~X\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"[gMN!_kl7R-6ZghSEEn-\"><field name=\"NUM\">0.5</field></shadow></value><next><block type=\"rgb_set_all\" id=\"T`mQD-c5(emUz`|g#u5I\"><field name=\"COLOR\">#000000</field><next><block type=\"timer_delay\" id=\";s/8?/$P^l{[x4/hC(D2\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"rTkXS=|txUMOm(FlSE?Q\"><field name=\"NUM\">0.5</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"controls_ifelse\" id=\"_5x+z7YX[nJ^0e$(g@hB\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"}rNmN4V3pfI=X^ka*-xW\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"dht12_get_temperature\" id=\"=k=FnuWv;F@RI(;[b2v$\"><field name=\"VARNAME\">env3_0</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"ZFQ$5b%Gpo23EvLl*L}B\"><field name=\"VAR\" id=\"lc#m-b+m6tzvB{MB^vK)\">max_temp</field></block></value></block></value><statement name=\"DO0\"><block type=\"image_show\" id=\"=|w]=PR.mQYtZ85Ia,*Q\"><field name=\"COMPONENT\">image1</field><next><block type=\"rgb_set_all\" id=\";pOv.o5gRyRf|[a2Vzw{\"><field name=\"COLOR\">#ff0000</field><next><block type=\"speaker_tone\" id=\"AOrW]h`(8DTj1F0AINaZ\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"!dDSMUhd[CDT5[Q{dI:L\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"5oK~rZiC{6hcnIm`(Pj+\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"timer_delay\" id=\"gC9B4zr~3dB4`T^Z_+`?\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"t*[~V$3p`vX6g.r0M,ls\"><field name=\"NUM\">0.2</field></shadow></value><next><block type=\"rgb_set_all\" id=\"GvM+|q8egu5bNOa6[8R^\"><field name=\"COLOR\">#000000</field><next><block type=\"timer_delay\" id=\"2n|n]d;?J2]IQc-j)c*M\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\":D=/oB7^,db.MIk!-?j*\"><field name=\"NUM\">0.2</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"controls_if\" id=\"b,$^kwOvMwD+-zpcWMDo\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"-yTCETlHltBWRY(v~la9\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"dht12_get_humidity\" id=\"oC+HjxePK[07CEgg2s/~\"><field name=\"VARNAME\">env3_0</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"9QDc0=^q21?:jAvz,ene\"><field name=\"VAR\" id=\"i;tzGr!#)E,%C/+7r`CL\">Minhumid</field></block></value></block></value><statement name=\"DO0\"><block type=\"image_show\" id=\"yu?+zGeDBSjb@;xIp3X=\"><field name=\"COMPONENT\">image3</field><next><block type=\"rgb_set_all\" id=\"=-5QX;|1rohx8S%bw]OZ\"><field name=\"COLOR\">#ffffff</field><next><block type=\"speaker_tone\" id=\"n#M}eu4kKeDOD)[_?pK{\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"y~MwkNr1eO}]xuR(%0:I\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"z84?sq5.#DRN0ysPE*SY\"><field name=\"NUM\">300</field></shadow></value><next><block type=\"timer_delay\" id=\"}~Ak+,gXHM%%0nDnc0Mn\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"`h4:d-fStwk-2ou]H2u[\"><field name=\"NUM\">0.5</field></shadow></value><next><block type=\"rgb_set_all\" id=\"L{Rvg40!|)DC.;_U|w|{\"><field name=\"COLOR\">#000000</field><next><block type=\"timer_delay\" id=\"jSj)gS02[Zhn@ZC2npnf\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"vjVqYzh,2V0=8K^UfB`{\"><field name=\"NUM\">0.5</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block></statement></block></statement></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></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"button_callback\" id=\"hUS_:Zmo#718bL?x5@r%\" x=\"430\" y=\"-110\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"controls_ifelse\" id=\"a.y-qAU=V_/6:w-,{]zp\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"#]5m[iTnrv$u5.sNRo]z\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"7bUP0gaI%%n$!e)+Dt1*\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"3cdbjjX-jXVg/u~3li`w\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"GsbS;]q84Z*U$r{-RVt*\"><field name=\"VAR\" id=\"b/($EX/?X00EH86XWn.q\">minlight</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"aRQapxEd-j(o$hVcv_W?\"><field name=\"NUM\">1</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"controls_ifelse\" id=\"t/vPNS.:,3{xD[dsBd)}\"><value name=\"IF0\"><block type=\"logic_compare\" id=\")0f^,FMWBU*N];FW;rYo\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"4X@aPpywg|sP`0E6@:|?\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"-s482:CMy[HvJ61x6~_g\"><field name=\"NUM\">1</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"VoHgmSxo#%0|ag[fU8V-\"><field name=\"VAR\" id=\"lc#m-b+m6tzvB{MB^vK)\">max_temp</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"0dDZ=F_`/K9i7JLjj4N%\"><field name=\"NUM\">1</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"controls_ifelse\" id=\"cw*ksiFk5s!AJG;(P1N0\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"uG{/_o^VPe0W@eeU2A^R\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"PZ5fHK3kmhE|6CmqP_S(\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"^?5a9a]~S$;=etXGS1*d\"><field name=\"NUM\">2</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"Nn7:]~LFh3~A0tO|zDPj\"><field name=\"VAR\" id=\"?_wXMgB}hwdQo]vseGwM\">mintemp</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"vt@=eo]lSw+-JLE0DyJq\"><field name=\"NUM\">1</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"math_change\" id=\"wF-kpRmf+Qk~xx,xm`!j\"><field name=\"VAR\" id=\"i;tzGr!#)E,%C/+7r`CL\">Minhumid</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"}$QtWvve_-7s`V]QMGgJ\"><field name=\"NUM\">1</field></shadow></value></block></statement></block></statement></block></statement></block></statement></block><block type=\"button_callback\" id=\"ZU*C0/o*P=kua(P)q5wQ\" x=\"870\" y=\"-130\"><field name=\"BUTTON\">C</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"controls_ifelse\" id=\"iPSBsxO(.OL+Z@1f`K5S\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"tu:eF/}bD%3.W{XyA10X\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"2mPKD*el=x[G#L_)TP{+\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"s/{rxvqW^Ev/~:C4YF#~\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"=du5sK.ob{|h)f_:pT]t\"><field name=\"VAR\" id=\"b/($EX/?X00EH86XWn.q\">minlight</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"@w$_L{H:;_rQ!Oe^i2-^\"><field name=\"NUM\">-1</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"controls_ifelse\" id=\"EUl2?x*Mtak^cM.7UubY\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Yt{_%JoJ]||2%4sELv+l\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"BcViuZj(I/kebs7=MCEg\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"5fEm9c8n@5BZ_Hj?j$O]\"><field name=\"NUM\">1</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"*lz[t#-hceW{cI6!3zq.\"><field name=\"VAR\" id=\"lc#m-b+m6tzvB{MB^vK)\">max_temp</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"yY5E3jH#P^uz{k?LG)sW\"><field name=\"NUM\">-1</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"controls_ifelse\" id=\"6sbp{i-fuu;5DY?X5Ha?\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"(Invp6C(gIUdw{;le%Ez\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"8$XVwV@4xpXNDgNtJ[QZ\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"_*stbl3P|T[wuk%.#.J=\"><field name=\"NUM\">2</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"KN[KlaIK_l5RNSwl916G\"><field name=\"VAR\" id=\"?_wXMgB}hwdQo]vseGwM\">mintemp</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"X6eMM@Gz%1D+wOU=cOUW\"><field name=\"NUM\">-1</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"math_change\" id=\"XyTsG5Lpv8-}/DfWYPY4\"><field name=\"VAR\" id=\"i;tzGr!#)E,%C/+7r`CL\">Minhumid</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"[-+#:HhwP#AkKl0d5u8:\"><field name=\"NUM\">-1</field></shadow></value></block></statement></block></statement></block></statement></block></statement></block><block type=\"button_callback\" id=\"YDrKK!sue%?N6ZaX`Z[y\" x=\"610\" y=\"270\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"controls_ifelse\" id=\"`JKbqt)Z.bycj74k:ily\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"ab5WKM_,r]Tp_:@)gV%}\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"%9H4Y;5Ay^jk/~{_?Io^\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"GvH;kD:n@.IQcA|PLP3I\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"2GKE++07*v60MZSE[*qd\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"{?Q:7/7)`[Z+y3`jlR{.\"><field name=\"NUM\">1</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"controls_ifelse\" id=\"J{JxQpAMx1#x4g$WT=[b\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"g704pLoHo,-mS0,HL#!C\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"Ckt]PU(O21{@}8}*YUWl\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"Q0kP*@fae[`ADHC=v#Ib\"><field name=\"NUM\">1</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"qZ~|T]a0tOB]~VXK2K)V\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"+i,o{bG`/G;jsEk%^v,9\"><field name=\"NUM\">1</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"controls_ifelse\" id=\"8tAkI3Y~oNW|mg~,fbi]\"><value name=\"IF0\"><block type=\"logic_compare\" id=\",x`jKU)NR6m5V6oWP%`E\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"q/B:rYAR)1TR(0aQ/_P)\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"FCZr^.NkoE|K:tig:,.)\"><field name=\"NUM\">2</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"YE,h~R~*;9(3lQ|7Ga$I\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"Gxs94!i,*qFwFkT~EUjy\"><field name=\"NUM\">1</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\"!Ok~df#D^rjmc#QAOs~s\"><field name=\"VAR\" id=\"bRdb_4GKD+8$de]?5|-3\">SWITCH</field><value name=\"VALUE\"><block type=\"math_number\" id=\"7]lGSPdkgVlVxwU`XOo%\"><field name=\"NUM\">0</field></block></value></block></statement></block></statement></block></statement></block></statement></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1675738575213,"name":"M5RemoteTitle","dragAndDrop":false,"resizable":false,"options":{"minWidth":1,"minHeight":1,"maxWidth":6,"maxHeight":10,"defaultWidth":2,"defaultHeight":1},"w":2,"h":1,"bgColor":"#0080FF","color":"#fff","fontsize":"M","label":"M5Remote","interval":3000,"code":"","event":"","dataSource":"none","ezdataToken":"","topic":"","needShadow":false,"type":"title","x":0,"y":0}],"modules":["rgb"],"cbIdList_":[],"eventCBIdList_":[]}
Comments