Temperature

aa

[{"id":"ed56ae56.75f1e8","type":"mqtt in","z":"905d6264.04a72","name":"Temp","topic":"thebreadboard/Temperature","qos":"1","broker":"ab357a65.a16ac","x":104.819091796875,"y":79.78733825683594,"wires":[["9a65af28.000898","a5aa4269.7bcb28","1cc5cf9c.d1c9c8"]]},{"id":"e33a956e.6af468","type":"mqtt in","z":"905d6264.04a72","name":"Time","topic":"thebreadboard/Time","qos":"1","broker":"ab357a65.a16ac","x":106.59684753417969,"y":208.56512451171875,"wires":[["7713197d.e5e3f8"]]},{"id":"12e6dce8.6f812b","type":"ui_text","z":"905d6264.04a72","group":"cfab8e7f.4b403","order":1,"width":"","height":"","name":"Elapsed Time (S)","label":"Elapsed Time (S)","format":"{{msg.payload}} Seconds","layout":"","x":530.9024353027344,"y":163.14852905273438,"wires":[]},{"id":"7713197d.e5e3f8","type":"function","z":"905d6264.04a72","name":"","func":"var myVal = bin2String(msg.payload);\nmsg.payload = myVal;\nreturn msg;\n\n\nfunction bin2String(array) {\n  return String.fromCharCode.apply(String, array);\n}","outputs":1,"noerr":0,"x":332.0135498046875,"y":207.59292602539062,"wires":[["12e6dce8.6f812b"]]},{"id":"dce230d0.3a9d18","type":"ui_template","z":"905d6264.04a72","group":"ec9db86e.f1845","name":"Fan","order":5,"width":"","height":"","format":"<div layout=\"row\" layout-align=\"space-between\">\n<table>\n    <tr><td width=100%>Status</td><td>{{((msg.payload)==49) ? 'Running' : 'Stoped'}}</td></tr>\n</table>\n</div>","storeOutMessages":true,"fwdInMessages":true,"x":570.9023742675781,"y":390.9263000488281,"wires":[[]]},{"id":"a91bdfd1.650328","type":"mqtt in","z":"905d6264.04a72","name":"Fan","topic":"thebreadboard/FanState","qos":"1","broker":"ab357a65.a16ac","x":107.70799255371094,"y":269.6762390136719,"wires":[["31d4b110.ff58fe"]]},{"id":"31d4b110.ff58fe","type":"function","z":"905d6264.04a72","name":"","func":"\nmsg.payload = parseInt(msg.payload[0]);\nreturn msg;\n\n","outputs":1,"noerr":0,"x":332.0135192871094,"y":267.59295654296875,"wires":[["dce230d0.3a9d18"]]},{"id":"5dc6d92e.b250a8","type":"ui_slider","z":"905d6264.04a72","name":"High Setpoint","label":"High Setpoint","group":"5bb66da9.9436a4","order":1,"width":"","height":"","passthru":true,"topic":"thebreadboard/setHigh","min":"2000","max":"4000","step":"10","x":539.6802978515625,"y":503.25958251953125,"wires":[["f63337f6.19729"]]},{"id":"a4749db7.68ee","type":"ui_slider","z":"905d6264.04a72","name":"Low Setpoint","label":"Low Setpoint","group":"5bb66da9.9436a4","order":2,"width":"","height":"","passthru":true,"topic":"thebreadboard/setLow","min":"2000","max":"4000","step":"10","x":551.9025268554688,"y":554.3707275390625,"wires":[["8cdf648e.c938b8"]]},{"id":"dbb536ac.fe037","type":"mqtt out","z":"905d6264.04a72","name":"Eclipse","topic":"","qos":"","retain":"","broker":"ab357a65.a16ac","x":755.6800842285156,"y":324.3706970214844,"wires":[]},{"id":"d021dc2a.f5edb8","type":"ui_switch","z":"905d6264.04a72","name":"Manual / Auto","label":"Manual / Auto","group":"ec9db86e.f1845","order":1,"width":"","height":"","passthru":true,"topic":"thebreadboard/autoFan","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"\"#87A980\"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"#E9967A","x":542.6802673339844,"y":286.92626953125,"wires":[["dbb536ac.fe037"]]},{"id":"9d465fb3.452808","type":"ui_switch","z":"905d6264.04a72","name":"Off / On","label":"Off / On","group":"ec9db86e.f1845","order":3,"width":"","height":"","passthru":true,"topic":"thebreadboard/on","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"#87A980","offvalue":"0","offvalueType":"num","officon":"","offcolor":"\"#E9967A\"","x":563.7913208007812,"y":339.14849853515625,"wires":[["dbb536ac.fe037"]]},{"id":"a5aa4269.7bcb28","type":"ui_gauge","z":"905d6264.04a72","name":"Temperature","group":"a80e2ae9.188cf8","order":2,"width":0,"height":0,"gtype":"gage","title":"Temperature","label":"","format":"{{value}}","min":"-20","max":"50","colors":["#00b500","#e6e600","#ca3838"],"x":548.4245910644531,"y":83.10404968261719,"wires":[]},{"id":"2ea9ace2.12c51c","type":"ui_text","z":"905d6264.04a72","group":"cfab8e7f.4b403","order":0,"width":0,"height":0,"name":"Temperature","label":"Temperature","format":"{{msg.payload}} Deg C","layout":"row-spread","x":551.5357360839844,"y":210.28184509277344,"wires":[]},{"id":"f18affa6.435a88","type":"mqtt in","z":"905d6264.04a72","name":"High Setpoint","topic":"thebreadboard/setHigh","qos":"2","broker":"ab357a65.a16ac","x":96.45245361328125,"y":502.09844970703125,"wires":[["56299692.2fe9e8","12cd1d72.1be2ab"]]},{"id":"56c49d46.0d9b54","type":"mqtt in","z":"905d6264.04a72","name":"Low Setpoint","topic":"thebreadboard/setLow","qos":"1","broker":"ab357a65.a16ac","x":97.45242309570312,"y":591.4318237304688,"wires":[["1fc774ed.8eeb7b","4824d1da.7ac75"]]},{"id":"56299692.2fe9e8","type":"ui_text","z":"905d6264.04a72","group":"5bb66da9.9436a4","order":0,"width":0,"height":0,"name":"High Setpoint","label":"High Setpoint","format":"{{msg.payload}}","layout":"row-spread","x":543.6468811035156,"y":605.6151733398438,"wires":[]},{"id":"1fc774ed.8eeb7b","type":"ui_text","z":"905d6264.04a72","group":"5bb66da9.9436a4","order":0,"width":0,"height":0,"name":"Low Setpoint","label":"Low Setpoint","format":"{{msg.payload}}","layout":"row-spread","x":554.9801940917969,"y":658.5040283203125,"wires":[]},{"id":"12cd1d72.1be2ab","type":"function","z":"905d6264.04a72","name":"","func":"var myVal = bin2String(msg.payload);\nmsg.payload = myVal;\nreturn msg;\n\n\nfunction bin2String(array) {\n  return String.fromCharCode.apply(String, array);\n}","outputs":1,"noerr":0,"x":332.3135070800781,"y":503.5262451171875,"wires":[["5dc6d92e.b250a8"]]},{"id":"4824d1da.7ac75","type":"function","z":"905d6264.04a72","name":"","func":"var myVal = bin2String(msg.payload);\nmsg.payload = myVal;\nreturn msg;\n\n\nfunction bin2String(array) {\n  return String.fromCharCode.apply(String, array);\n}","outputs":1,"noerr":0,"x":332.53582763671875,"y":604.5263061523438,"wires":[["a4749db7.68ee"]]},{"id":"8cdf648e.c938b8","type":"function","z":"905d6264.04a72","name":"","func":"msg.payload = msg.payload/100;\nreturn msg;","outputs":1,"noerr":0,"x":702.8690490722656,"y":554.0818176269531,"wires":[["dbb536ac.fe037"]]},{"id":"f63337f6.19729","type":"function","z":"905d6264.04a72","name":"","func":"msg.payload = msg.payload/100;\nreturn msg;","outputs":1,"noerr":0,"x":705.4247131347656,"y":503.3040466308594,"wires":[["dbb536ac.fe037"]]},{"id":"9a65af28.000898","type":"ui_chart","z":"905d6264.04a72","name":"Temperature","group":"a80e2ae9.188cf8","order":1,"width":0,"height":0,"label":"","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","ymin":"20","ymax":"33","removeOlder":1,"removeOlderPoints":"1000","removeOlderUnit":"86400","cutout":0,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"x":551.2024841308594,"y":39.17073059082031,"wires":[[],[]]},{"id":"1cc5cf9c.d1c9c8","type":"function","z":"905d6264.04a72","name":"","func":"var myVal = bin2String(msg.payload);\nmsg.payload = myVal;\nreturn msg;\n\n\nfunction bin2String(array) {\n  return String.fromCharCode.apply(String, array);\n}","outputs":1,"noerr":0,"x":330.5555419921875,"y":153.99998474121094,"wires":[["2ea9ace2.12c51c"]]},{"id":"ab357a65.a16ac","type":"mqtt-broker","z":"","broker":"iot.eclipse.org","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"cfab8e7f.4b403","type":"ui_group","name":"Current Value","tab":"21e64169.facf46","order":2,"disp":true,"width":6},{"id":"ec9db86e.f1845","type":"ui_group","name":"Fan","tab":"21e64169.facf46","order":3,"disp":true,"width":6},{"id":"5bb66da9.9436a4","type":"ui_group","name":"Limits","tab":"21e64169.facf46","order":4,"disp":true,"width":6},{"id":"a80e2ae9.188cf8","type":"ui_group","z":"","name":"Temperature","tab":"21e64169.facf46","order":1,"disp":true,"width":"6"},{"id":"21e64169.facf46","type":"ui_tab","z":"","name":"IOT for BMI","icon":"dashboard","order":"1"}]
hiapeza

Flow Info

created 3 weeks, 2 days ago

Node Types

Core
  • function (x7)
  • mqtt in (x5)
  • mqtt out (x1)
  • mqtt-broker (x1)
Other
  • ui_chart (x1)
  • ui_gauge (x1)
  • ui_group (x4)
  • ui_slider (x2)
  • ui_switch (x2)
  • ui_tab (x1)
  • ui_template (x1)
  • ui_text (x4)

Tags

  • aa
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option