Files

2 lines
7.6 KiB
Plaintext

{"version":"V2.0","versionNumber":"V2.1.2","type":"atoms3u","components":[],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","rgb","ir","mic"]},{"unit":["unit_watering"]}],"units":[{"type":"unit_watering","name":"watering_0","portList":["A","B","C","Custom"],"portType":"A","userPort":[22,21],"id":"zi7H^LNlP`bjqTN-","createTime":1723791549086,"initBlockId":"ycTf0Iw`##6@U]92UZ[u"}],"hats":[],"bases":[],"i2cs":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"70\" y=\"50\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"><next><block type=\"ezdata_init_dataset_key\" id=\"oKkBc4-3jPU/b(fMTsOw\"><mutation dataset=\"Areca\"></mutation><field name=\"NAME\">auto</field><field name=\"DATASET\">Areca</field><value name=\"KEY\"><shadow type=\"ezdata_init_key_option\" id=\".7rrY:adK{/N#(@k-?Ih\"><field name=\"VALUE\"></field></shadow></value><next><block type=\"ezdata_init_dataset_key\" id=\"C//(C{.L$i(M..s7Vv]:\"><mutation dataset=\"Areca\"></mutation><field name=\"NAME\">pump</field><field name=\"DATASET\">Areca</field><value name=\"KEY\"><shadow type=\"ezdata_init_key_option\" id=\"Bhn~k1d*^(k[s6{6Rf?M\"><field name=\"VALUE\"></field></shadow></value><next><block type=\"ezdata_init_dataset_key\" id=\"jz@|,j7B!)mTf{guB@#W\"><mutation dataset=\"Areca\"></mutation><field name=\"NAME\">status</field><field name=\"DATASET\">Areca</field><value name=\"KEY\"><shadow type=\"ezdata_init_key_option\" id=\"/vI,h[I+[IDcUYyQV+II\"><field name=\"VALUE\"></field></shadow></value><next><block type=\"rgb_init\" id=\"P_wbreFG+eDWPU,H1S[Z\"><mutation mode=\"builtin\"></mutation><field name=\"MODE\">builtin</field><next><block type=\"unit_watering_init\" id=\"ycTf0Iw`##6@U]92UZ[u\"><field name=\"NAME\">watering_0</field><next><block type=\"unit_watering_off\" id=\".I;cQ-8HA+KrWl}ek{{Z\"><field name=\"NAME\">watering_0</field><next><block type=\"controls_whileUntil\" id=\"R@MC_G_?5B4nb|h$hQ6g\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_boolean\" id=\"+-5hdk;E41uNe%,c]5vk\"><field name=\"BOOL\">TRUE</field></block></value><statement name=\"DO\"><block type=\"controls_ifelse\" id=\"#G-~vmqH~P,b@.}{Vi:I\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"0+7$77W))Z+).7PE}tJZ\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"ezdata_get_value\" id=\"}wKdIYI.S$m46N4/fe5y\"><field name=\"NAME\">pump</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"CILQUS{4y|PbLd4;w`0f\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"unit_watering_off\" id=\"%;{j(aKC/?q.YF}Rej/%\"><field name=\"NAME\">watering_0</field><next><block type=\"controls_ifelse\" id=\"EOjUG}8NnU`2|Jui:[fR\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"VgWX/}z*N5f5KhSffIQC\"><field name=\"OP\">NEQ</field><value name=\"A\"><block type=\"ezdata_get_value\" id=\"(7jS2HFtFkB2$U6wCr,|\"><field name=\"NAME\">auto</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"%B@z60hD0D8uoCP{)(~$\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"rgb_fill_color\" id=\"KDkhGGuWPJYA|8pF/[BH\"><field name=\"NAME\">rgb</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"1k(Wz`.lvB,iz^juV?!b\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#ffcc00</field></block></value><next><block type=\"ezdata_set_value\" id=\"F)V@p3xl8p=L#X3}qnkV\"><field name=\"NAME\">status</field><value name=\"VALUE\"><shadow type=\"text\" id=\"TGQ1T-@fB9yf5;wi}2QK\"><field name=\"TEXT\">auto</field></shadow></value></block></next></block></statement><statement name=\"ELSE\"><block type=\"rgb_fill_color\" id=\"7wKh=XJ~CTOrJ4:szHKQ\"><field name=\"NAME\">rgb</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"k4`_(dQ(7bF`V.]}?m4O\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#ff0000</field></block></value><next><block type=\"ezdata_set_value\" id=\"Xim)Ze]afdlcA!dBMf/%\"><field name=\"NAME\">status</field><value name=\"VALUE\"><shadow type=\"text\" id=\"Jnc~Ix=RN#()blg1Mnfh\"><field name=\"TEXT\">off</field></shadow></value></block></next></block></statement></block></next></block></statement><statement name=\"ELSE\"><block type=\"unit_watering_on\" id=\"jTl#[D71.v+_(_s9.zYp\"><field name=\"NAME\">watering_0</field><next><block type=\"rgb_fill_color\" id=\"#3etW,T*NkW(~%!(JL6l\"><field name=\"NAME\">rgb</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"9tL=^RCIt_|XLOZDhPXZ\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#33ccff</field></block></value><next><block type=\"ezdata_set_value\" id=\"$3NVg`!1MkljU_aKf[/v\"><field name=\"NAME\">status</field><value name=\"VALUE\"><shadow type=\"text\" id=\"Rf%O^c0]e!Gsn;_CN]57\"><field name=\"TEXT\">watering</field></shadow></value></block></next></block></next></block></statement><next><block type=\"controls_if\" id=\"KL4mn-6NOK%-0/btp|S*\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Uhy5%$[_s.DjSt|.t-z3\"><field name=\"OP\">NEQ</field><value name=\"A\"><block type=\"ezdata_get_value\" id=\"j$-f1S-S*q4_#[./?+d=\"><field name=\"NAME\">auto</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"xU[XZ6~/w@6d)S,~H:q1\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_ifelse\" id=\"}=eiP@D2cUUG+Qi;qJ=1\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"8MmNO]FE%B.0P8!LLa+w\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"unit_watering_get_voltage\" id=\"0d:JDRM/%;U--~W4*{GM\"><field name=\"NAME\">watering_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"[^nEjP~*ofg8#L4WiHze\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1.4</field></block></value></block></value><statement name=\"DO0\"><block type=\"ezdata_set_value\" id=\"zam=#7ETtD3()Onh_}x}\"><field name=\"NAME\">pump</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"9@H!Oq*V/;tDV#*X@etn\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"ezdata_set_value\" id=\"5Z3^C*rIv~?,9(6E4O`s\"><field name=\"NAME\">pump</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\".nhQWE]K@!dHs+pi~LrL\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value></block></statement></block></statement><next><block type=\"time_sleep_second\" id=\"9/:7k^0K9:%D-J?HaogS\"><value name=\"SECOND\"><shadow type=\"math_number\" id=\"+`BGo*K]otS#/2M4VTl]\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"450\" y=\"50\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"system_m5_update\"></block></statement></block>","screen":[],"logicWhenNum":0,"customList":[]}