-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetSensorData.m5f
1 lines (1 loc) · 8.92 KB
/
GetSensorData.m5f
1
{"components":[{"id":"_coretwoscreen","createTime":1619138445502,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#000000","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1619138445502,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1619138445502,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1619138445502,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"Qzfa#_j3FKE9eDvY","createTime":1619138452672,"isCoreTwo":true,"isPaper":false,"name":"label0","x":75,"y":30,"color":"#ffffff","text":"T :","font":"FONT_MONT_48","rotation":0,"type":"label","layer":4},{"id":"g+G5GY=W8%pf0Shw","createTime":1619138456271,"isCoreTwo":true,"isPaper":false,"name":"label1","x":75,"y":110,"color":"#ffffff","text":"P : ","font":"FONT_MONT_48","rotation":0,"type":"label","layer":5},{"id":"zWen=q-rkZt8N4x0","createTime":1619138459118,"isCoreTwo":true,"isPaper":false,"name":"label2","x":75,"y":190,"color":"#ffffff","text":"H :","font":"FONT_MONT_48","rotation":0,"type":"label","layer":6},{"id":"+UOb3+6Ifx7EQ-9C","createTime":1619138460813,"isCoreTwo":true,"isPaper":false,"name":"label3","x":150,"y":30,"color":"#ffffff","text":"23","font":"FONT_MONT_48","rotation":0,"type":"label","layer":7},{"id":"kCk&4@0b1TWa`*l!","createTime":1619138462389,"isCoreTwo":true,"isPaper":false,"name":"label4","x":150,"y":110,"color":"#ffffff","text":"900","font":"FONT_MONT_48","rotation":0,"type":"label","layer":8},{"id":"aKGc7A1hLElHtZqe","createTime":1619138464501,"isCoreTwo":true,"isPaper":false,"name":"label5","x":150,"y":190,"color":"#ffffff","text":"52.73","font":"FONT_MONT_48","rotation":0,"type":"label","layer":9},{"id":"Z=fBNih6pT#*uDfX","createTime":1619233659474,"isCoreTwo":true,"isPaper":false,"name":"label6","x":0,"y":0,"color":"#ffffff","text":"Text","font":"FONT_MONT_14","rotation":0,"type":"label","layer":14}],"type":"core2","versions":"Beta","units":[{"id":"1CHy1E3zE`fuHe&L","createTime":1619276645400,"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"}],"hats":[],"blockly":"<variables><variable id=\";lCa{Cd{=.Sco4)yo6x;\">env</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"115\" y=\"118\"><next><block type=\"aws_init\" id=\"Z(e~3@Eb!8Y?yw{[{;Hw\"><mutation key=\"890a3328c5-private.pem.key\" cert=\"890a3328c5-certificate.pem.crt\"></mutation><value name=\"things_name\"><shadow type=\"text\" id=\"%Ajd)Wg93C|~s^=WQP|_\"><field name=\"TEXT\">EnvThing</field></shadow></value><value name=\"host\"><shadow type=\"text\" id=\"/Bf]D,oM?trQ.f`^S`I9\"><field name=\"TEXT\">a1zerv8ymde1w8-ats.iot.us-east-1.amazonaws.com</field></shadow></value><value name=\"port\"><shadow type=\"math_number\" id=\"cdX;UDf$Xx3|Rd?[,ay5\"><field name=\"NUM\">8883</field></shadow></value><value name=\"keepalive\"><shadow type=\"math_number\" id=\"dB[cs{],7db8f+kqUSUw\"><field name=\"NUM\">3000</field></shadow></value><next><block type=\"aws_start\" id=\"v6ZGRtg#(#8c)%a`=ATA\"><next><block type=\"rtc_settime\" id=\"l!S?Y^jl!lr}@wa7uMml\"><field name=\"host\">us.pool.ntp.org</field><value name=\"timezone\"><shadow type=\"math_number\" id=\"T3fE0kH6$`)|_-,MoC%i\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"basic_on_loop\" id=\"^Vg4=0kpn,60]6WQ8115\"><statement name=\"LOOP\"><block type=\"label_set_text\" id=\"L3j#0v5P3}h8]{fzq!b8\"><field name=\"COMPONENT\">label6</field><value name=\"TEXT\"><shadow type=\"text\" id=\"q{+hYB`.N!u^H)pH2HF]\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"rtc_get_printtime\" id=\"h]Q}.?2+gDxvEs4r3tRb\"></block></value><next><block type=\"label_set_text\" id=\"m|^fd*z3=[nYc4Lb,Bmq\"><field name=\"COMPONENT\">label3</field><value name=\"TEXT\"><shadow type=\"text\" id=\"HiX*[,0anuw5{eh([niF\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_temperature\" id=\"?w^`HXnvcZGD!*4yWvAR\"><field name=\"VARNAME\">env20</field></block></value><next><block type=\"label_set_text\" id=\"R=9rd.Fe~[~.UnMQ=~$1\"><field name=\"COMPONENT\">label4</field><value name=\"TEXT\"><shadow type=\"text\" id=\"*6Q~9Wph},|g|+?B-uV?\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_pressure\" id=\"Llgjm?BQjMnNCORu?_r/\"><field name=\"VARNAME\">env20</field></block></value><next><block type=\"label_set_text\" id=\"$aHJl(zTfjQsW67{U~sm\"><field name=\"COMPONENT\">label5</field><value name=\"TEXT\"><shadow type=\"text\" id=\"BXGqp761ylu={`h4-*RF\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_humidity\" id=\"tms9+0wo)nwJW1.0qhKO\"><field name=\"VARNAME\">env20</field></block></value><next><block type=\"variables_set\" id=\"k23!jz?cLekm`~QdC/En\"><field name=\"VAR\" id=\";lCa{Cd{=.Sco4)yo6x;\">env</field><value name=\"VALUE\"><block type=\"map_on_loop\" id=\"mL292Yy,ZAu.UFrs+*Z5\"><statement name=\"LOOP\"><block type=\"create_map_key\" id=\"?BhVhh|0POfULBmXNqnV\"><value name=\"key\"><block type=\"text\" id=\"lYu@ZnRlLWSSWAC(:jW=\"><field name=\"TEXT\">temperature</field></block></value><value name=\"value\"><block type=\"dht12_get_temperature\" id=\"sT1JXsH~SU_pf%`A@h*C\"><field name=\"VARNAME\">env20</field></block></value><next><block type=\"create_map_key\" id=\"6#_.3yYB(*kC#J9Q#d^e\"><value name=\"key\"><block type=\"text\" id=\"fE0N0;nLu){qoS+-.]P%\"><field name=\"TEXT\">pressure</field></block></value><value name=\"value\"><block type=\"dht12_pressure\" id=\"rbe5gaS}UHceF+i06h1E\"><field name=\"VARNAME\">env20</field></block></value><next><block type=\"create_map_key\" id=\"B^]|QQfAGWI^z#sMya,w\"><value name=\"key\"><block type=\"text\" id=\"wl7?*uK9/;2+MQk=K__e\"><field name=\"TEXT\">humidity</field></block></value><value name=\"value\"><block type=\"dht12_get_humidity\" id=\"(mh6=s1Y[rv0,x*h|Tnd\"><field name=\"VARNAME\">env20</field></block></value><next><block type=\"create_map_key\" id=\"3CDAc}P=Vr8N|FdbM:%X\"><value name=\"key\"><block type=\"text\" id=\"ZJ]!x;rD+kl(.),?yNuG\"><field name=\"TEXT\">device_id</field></block></value><value name=\"value\"><block type=\"text\" id=\"dwg7eW4@RV=Lwg!-XlqN\"><field name=\"TEXT\">sensor_02</field></block></value><next><block type=\"create_map_key\" id=\"rK@O(S_xzyeI[z##Kt]V\"><value name=\"key\"><block type=\"text\" id=\"_/7kWE^VH#ZOvdM`k^ZF\"><field name=\"TEXT\">time</field></block></value><value name=\"value\"><block type=\"rtc_get_printtime\" id=\"b?U}G~PsP2!eRWL74-a.\"></block></value></block></next></block></next></block></next></block></next></block></statement></block></value><next><block type=\"controls_ifelse\" id=\"ct.68r7(bPnQDYfjF(9R\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"A(4|BnkVo[1CG4%!:?oj\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"dht12_get_temperature\" id=\"z6gx@cc#YI9F3HY$3Rs6\"><field name=\"VARNAME\">env20</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"1Gpsk3`rqh:@5GOW.A=7\"><field name=\"NUM\">24</field></block></value></block></value><statement name=\"DO0\"><block type=\"rgb_set_all\" id=\"5kxH.L[cj|y_V)^Gn:xk\"><field name=\"COLOR\">#ff0000</field></block></statement><statement name=\"ELSE\"><block type=\"rgb_set_all\" id=\"fJCK)}im`0$Z1.QP)jax\"><field name=\"COLOR\">#33cc00</field></block></statement><next><block type=\"aws_publish\" id=\"BYi3QHvz:$k$~E5d:.0I\"><value name=\"FROM\"><shadow type=\"text\" id=\"Ih?[^=po=WbZx9R9r4_[\"><field name=\"TEXT\">EnvThing/env/pub</field></shadow></value><value name=\"MSG\"><shadow type=\"text\" id=\"$Pt]$T{O-*.jw7j`j-D$\"><field name=\"TEXT\"></field></shadow><block type=\"dumps_json\" id=\"16?wmh0-%rf4QomqEJ(;\"><value name=\"JSON_VAR\"><block type=\"variables_get\" id=\"48+{pL?{?Wbe[alBu9S:\"><field name=\"VAR\" id=\";lCa{Cd{=.Sco4)yo6x;\">env</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block><block type=\"create_map_key\" id=\"G?vD}~RF20)bpSO6N!cY\" disabled=\"true\" x=\"310\" y=\"1130\"><value name=\"key\"><block type=\"text\" id=\"zt82mVG!599](`p}yC$*\" disabled=\"true\"><field name=\"TEXT\">bulding</field></block></value><value name=\"value\"><block type=\"text\" id=\"B7au$+{l%j4,q[d[Kb)J\" disabled=\"true\"><field name=\"TEXT\">McAdams</field></block></value><next><block type=\"create_map_key\" id=\"K1])!$TfjQG9%*=,nqKc\" disabled=\"true\"><value name=\"key\"><block type=\"text\" id=\"F}^aTP8!ZUM#v6mclBL0\" disabled=\"true\"><field name=\"TEXT\">room</field></block></value><value name=\"value\"><block type=\"text\" id=\"`P,?sz{kA#QIx9Tg/!vR\" disabled=\"true\"><field name=\"TEXT\">204</field></block></value></block></next></block>","Blockly.Remotes":[],"modules":["rgb"]}