[
{
"id":"293bae97.c72192",
"type":"tab",
"label":"Flow 1",
"disabled":false,
"info":""
},
{
"id":"26ed2545.564a4a",
"type":"function",
"z":"293bae97.c72192",
"name":"ByDay_In",
"func":"msg.topic = \"select date(noted_date) as the_date, min(temp), max(temp), avg(temp), std(temp) from temperature where out_in='In' group by the_date;\"\nreturn msg;",
"outputs":1,
"noerr":0,
"x":560,
"y":260,
"wires":[
[
"8b2f4ade.596a68"
]
]
},
{
"id":"c330519a.0a8b",
"type":"function",
"z":"293bae97.c72192",
"name":"ByDay_Out",
"func":"msg.topic = \"select date(noted_date) as the_date, min(temp), max(temp), avg(temp), std(temp) from temperature where out_in='Out' group by the_date;\"\nreturn msg;\n",
"outputs":1,
"noerr":0,
"x":570,
"y":320,
"wires":[
[
"c5041d1a.7140c"
]
]
},
{
"id":"8b2f4ade.596a68",
"type":"mysql",
"z":"293bae97.c72192",
"mydb":"13acdda0.2cac92",
"name":"temperature",
"x":830,
"y":200,
"wires":[
[
"ddc0a527.f9ead8",
"2b1c5459.74c5dc"
]
]
},
{
"id":"c5041d1a.7140c",
"type":"mysql",
"z":"293bae97.c72192",
"mydb":"13acdda0.2cac92",
"name":"temperature",
"x":830,
"y":360,
"wires":[
[
"bc79cd49.be787",
"daa86b99.ca4d58"
]
]
},
{
"id":"ddc0a527.f9ead8",
"type":"debug",
"z":"293bae97.c72192",
"name":"print",
"active":true,
"tosidebar":true,
"console":false,
"tostatus":false,
"complete":"payload",
"targetType":"msg",
"x":1050,
"y":160,
"wires":[
]
},
{
"id":"bc79cd49.be787",
"type":"debug",
"z":"293bae97.c72192",
"name":"print",
"active":true,
"tosidebar":true,
"console":false,
"tostatus":false,
"complete":"payload",
"targetType":"msg",
"x":1050,
"y":300,
"wires":[
]
},
{
"id":"1ee71c7a.60bec4",
"type":"inject",
"z":"293bae97.c72192",
"name":"query",
"topic":"",
"payload":"",
"payloadType":"date",
"repeat":"",
"crontab":"",
"once":false,
"onceDelay":"30",
"x":330,
"y":280,
"wires":[
[
"26ed2545.564a4a",
"c330519a.0a8b"
]
]
},
{
"id":"2b1c5459.74c5dc",
"type":"ui_table",
"z":"293bae97.c72192",
"group":"c37d1c07.847c3",
"name":"Daily Temp In Table",
"order":3,
"width":20,
"height":"8",
"columns":[
],
"outputs":0,
"cts":false,
"x":1090,
"y":200,
"wires":[
]
},
{
"id":"3d664e11.fcd332",
"type":"ui_text",
"z":"293bae97.c72192",
"group":"c37d1c07.847c3",
"order":2,
"width":20,
"height":1,
"name":"Daily In Title",
"label":"Daily Inside",
"format":"{{msg.payload}}",
"layout":"row-left",
"x":1070,
"y":240,
"wires":[
]
},
{
"id":"daa86b99.ca4d58",
"type":"ui_table",
"z":"293bae97.c72192",
"group":"d65d3757.ac3168",
"name":"Daily Temp Out Table",
"order":3,
"width":20,
"height":"8",
"columns":[
],
"outputs":0,
"cts":false,
"x":1100,
"y":340,
"wires":[
]
},
{
"id":"43d6ab48.ee2374",
"type":"ui_text",
"z":"293bae97.c72192",
"group":"d65d3757.ac3168",
"order":2,
"width":20,
"height":1,
"name":"Daily Out Title",
"label":"Daily Outside",
"format":"{{msg.payload}}",
"layout":"row-left",
"x":1080,
"y":380,
"wires":[
]
},
{
"id":"13acdda0.2cac92",
"type":"MySQLdatabase",
"z":"",
"name":"temperature",
"host":"35.234.152.47",
"port":"3306",
"db":"Temperature",
"tz":""
},
{
"id":"c37d1c07.847c3",
"type":"ui_group",
"z":"",
"name":"Daily Inside Statistics ",
"tab":"12a1eedf.37daa1",
"order":1,
"disp":true,
"width":"20",
"collapse":false
},
{
"id":"d65d3757.ac3168",
"type":"ui_group",
"z":"",
"name":"Daily Outside Statistics",
"tab":"12a1eedf.37daa1",
"order":2,
"disp":true,
"width":"20",
"collapse":false
},
{
"id":"12a1eedf.37daa1",
"type":"ui_tab",
"z":"",
"name":"Daily Data",
"icon":"dashboard",
"order":4,
"disabled":false,
"hidden":false
}
]