Skip to content

Instantly share code, notes, and snippets.

@unixweb
Last active May 23, 2018 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unixweb/a0c4e10b2ab5c5e43e7da34425c00224 to your computer and use it in GitHub Desktop.
Save unixweb/a0c4e10b2ab5c5e43e7da34425c00224 to your computer and use it in GitHub Desktop.
Beispiel Dashboard Node-Red
[{"id":"75594a12.1defcc","type":"tab","label":"GUI Octopus","disabled":false,"info":""},{"id":"f0c7fba.0248308","type":"mqtt in","z":"75594a12.1defcc","name":"Temperature BME280","topic":"bme280/Temperature","qos":"2","broker":"b73e5ba8.6c53e","x":140,"y":80,"wires":[["4e8ed466.b0d774","199ff16.b22260f"]]},{"id":"86ba80c4.c4c5d","type":"ui_gauge","z":"75594a12.1defcc","name":"","group":"bff7198e.17ad98","order":1,"width":0,"height":0,"gtype":"gage","title":"Temperature BME280","label":"° Celsius","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"30","seg2":"31","x":740,"y":80,"wires":[]},{"id":"8c2038e3.88a13","type":"ui_chart","z":"75594a12.1defcc","name":"","group":"bff7198e.17ad98","order":4,"width":0,"height":0,"label":"Temperature BME280","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":740,"y":120,"wires":[[],[]]},{"id":"a55f01f8.4b845","type":"ui_gauge","z":"75594a12.1defcc","name":"","group":"bff7198e.17ad98","order":2,"width":0,"height":0,"gtype":"gage","title":"Pressure BME280","label":"hPa","format":"{{value}}","min":"900","max":"1000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"998","seg2":"999","x":730,"y":180,"wires":[]},{"id":"87480f82.18974","type":"mqtt in","z":"75594a12.1defcc","name":"Pressure BME280","topic":"bme280/Pressure","qos":"2","broker":"b73e5ba8.6c53e","x":130,"y":180,"wires":[["f4e8e6f2.ba755","97ff185e.fae368"]]},{"id":"d9184291.3a1838","type":"ui_chart","z":"75594a12.1defcc","name":"","group":"bff7198e.17ad98","order":5,"width":0,"height":0,"label":"Pressure BME280","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":730,"y":220,"wires":[[],[]]},{"id":"92e52a35.8668a","type":"ui_gauge","z":"75594a12.1defcc","name":"","group":"bff7198e.17ad98","order":3,"width":0,"height":0,"gtype":"gage","title":"Humidity BME280","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"98","seg2":"99","x":730,"y":280,"wires":[]},{"id":"f09814fc.319048","type":"mqtt in","z":"75594a12.1defcc","name":"Humidity BME280","topic":"bme280/Humidity","qos":"2","broker":"b73e5ba8.6c53e","x":120,"y":280,"wires":[["196d1bea.76468c","94a5c04d.b6ad88"]]},{"id":"2234a7d6.b2ee28","type":"ui_gauge","z":"75594a12.1defcc","name":"","group":"b79d0bee.153498","order":1,"width":0,"height":0,"gtype":"gage","title":"Temperature BME680","label":"° Celsius","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"30","seg2":"31","x":740,"y":400,"wires":[]},{"id":"b37ad12b.41ae88","type":"mqtt in","z":"75594a12.1defcc","name":"Temperature BME680","topic":"bme680/Temperature","qos":"2","broker":"b73e5ba8.6c53e","x":140,"y":400,"wires":[["509b8577.c43ee4","54a19294.105b84"]]},{"id":"9d8c4e24.274c9","type":"ui_gauge","z":"75594a12.1defcc","name":"","group":"b79d0bee.153498","order":2,"width":0,"height":0,"gtype":"gage","title":"Pressure BME680","label":"hPa","format":"{{value}}","min":"900","max":"1000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"995","seg2":"996","x":730,"y":500,"wires":[]},{"id":"4d653b40.0b9a34","type":"mqtt in","z":"75594a12.1defcc","name":"Pressure BME680","topic":"bme680/Pressure","qos":"2","broker":"b73e5ba8.6c53e","x":130,"y":500,"wires":[["42d95f43.6acce","2054cbeb.68994c"]]},{"id":"c16ab1ea.61d7b8","type":"ui_chart","z":"75594a12.1defcc","name":"","group":"b79d0bee.153498","order":5,"width":0,"height":0,"label":"Pressure BME680","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":730,"y":540,"wires":[[],[]]},{"id":"53ae4f27.68e7","type":"ui_gauge","z":"75594a12.1defcc","name":"","group":"b79d0bee.153498","order":3,"width":0,"height":0,"gtype":"gage","title":"Humidity BME680","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"98","seg2":"99","x":730,"y":600,"wires":[]},{"id":"7b0527e9.b52448","type":"mqtt in","z":"75594a12.1defcc","name":"Humidity BME680","topic":"bme680/Humidity","qos":"2","broker":"b73e5ba8.6c53e","x":120,"y":600,"wires":[["fd0ee8b5.1aeca","f5152f9c.ac4d3"]]},{"id":"9c961bf5.97c51","type":"ui_chart","z":"75594a12.1defcc","name":"","group":"b79d0bee.153498","order":6,"width":0,"height":0,"label":"Humidity BME680","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":730,"y":640,"wires":[[],[]]},{"id":"330e5218.2bceb6","type":"ui_chart","z":"75594a12.1defcc","name":"","group":"bff7198e.17ad98","order":6,"width":0,"height":0,"label":"Humidity BME280","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":730,"y":320,"wires":[[],[]]},{"id":"84c8a271.8c0a88","type":"ui_chart","z":"75594a12.1defcc","name":"","group":"b79d0bee.153498","order":4,"width":0,"height":0,"label":"Temperature BME680","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":740,"y":440,"wires":[[],[]]},{"id":"4e8ed466.b0d774","type":"function","z":"75594a12.1defcc","name":"custom function 1","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(1) + 0;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":80,"wires":[["86ba80c4.c4c5d"]]},{"id":"199ff16.b22260f","type":"function","z":"75594a12.1defcc","name":"custom function","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar temp = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\ntemp = parseFloat(originalval).toFixed(1) - 1;\n\n// output the originalval after deduction \nmsg.payload = temp;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":440,"y":120,"wires":[["8c2038e3.88a13"]]},{"id":"802d69a8.f5edd8","type":"function","z":"75594a12.1defcc","name":"custom function 2","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(0) - 0;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":120,"wires":[[]]},{"id":"f4e8e6f2.ba755","type":"function","z":"75594a12.1defcc","name":"custom function 1","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(0) - 0;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":470,"y":180,"wires":[["a55f01f8.4b845"]]},{"id":"97ff185e.fae368","type":"function","z":"75594a12.1defcc","name":"custom function 2","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(2) - 0;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":470,"y":220,"wires":[["d9184291.3a1838"]]},{"id":"196d1bea.76468c","type":"function","z":"75594a12.1defcc","name":"custom function 2","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(0) - 0;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":470,"y":280,"wires":[["92e52a35.8668a"]]},{"id":"94a5c04d.b6ad88","type":"function","z":"75594a12.1defcc","name":"custom function 2","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(0) - 1;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":470,"y":320,"wires":[["330e5218.2bceb6"]]},{"id":"509b8577.c43ee4","type":"function","z":"75594a12.1defcc","name":"custom function 1","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(1) - 1;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":400,"wires":[["2234a7d6.b2ee28"]]},{"id":"54a19294.105b84","type":"function","z":"75594a12.1defcc","name":"custom function 2","func":"var originalval = msg.payload;\nvar value = \"\";\nvalue = parseFloat(originalval).toFixed(1) - 1;\nmsg.payload = value;\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":440,"wires":[["84c8a271.8c0a88"]]},{"id":"42d95f43.6acce","type":"function","z":"75594a12.1defcc","name":"custom function 1","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(0) - 0;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":500,"wires":[["9d8c4e24.274c9"]]},{"id":"2054cbeb.68994c","type":"function","z":"75594a12.1defcc","name":"custom function 2","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(2) - 1;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":540,"wires":[["c16ab1ea.61d7b8"]]},{"id":"fd0ee8b5.1aeca","type":"function","z":"75594a12.1defcc","name":"custom function 2","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(0) - 0;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":600,"wires":[["53ae4f27.68e7"]]},{"id":"f5152f9c.ac4d3","type":"function","z":"75594a12.1defcc","name":"custom function 2","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(0) - 1;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":640,"wires":[["9c961bf5.97c51"]]},{"id":"ce7d4f9e.e1ac7","type":"mqtt in","z":"75594a12.1defcc","name":"","topic":"bme680/Gas","qos":"2","broker":"b73e5ba8.6c53e","x":130,"y":700,"wires":[["bf2c391e.dcc21"]]},{"id":"bf2c391e.dcc21","type":"function","z":"75594a12.1defcc","name":"custom function 1","func":"// declare place holder variables\nvar originalval = msg.payload;\nvar value = \"\";\n\n\n// convert string of originalval to float with 1 decimal place\n// run originalval thru a simple minus operation to form the 'temp' number\nvalue = parseFloat(originalval).toFixed(0) - 0;\n\n// output the originalval after deduction \nmsg.payload = value;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":700,"wires":[["52d61a31.7c41cc","be9f3eb3.d7b078"]]},{"id":"52d61a31.7c41cc","type":"ui_gauge","z":"75594a12.1defcc","name":"","group":"ef53f5ed.d448e","order":0,"width":0,"height":0,"gtype":"gage","title":"Gas Sensor ","label":"CO - MOX","format":"{{value}}","min":0,"max":"400","colors":["#ca3838","#e6e600","#00b500"],"seg1":"50","seg2":"100","x":710,"y":700,"wires":[]},{"id":"be9f3eb3.d7b078","type":"ui_chart","z":"75594a12.1defcc","name":"","group":"ef53f5ed.d448e","order":0,"width":0,"height":0,"label":"Gas Sensor","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":710,"y":740,"wires":[[],[]]},{"id":"b73e5ba8.6c53e","type":"mqtt-broker","z":"","broker":"mqtt.unixweb.de","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"bff7198e.17ad98","type":"ui_group","z":"","name":"BME280","tab":"bf8a214c.b174d8","order":3,"disp":false,"width":"6","collapse":false},{"id":"b79d0bee.153498","type":"ui_group","z":"","name":"BME680","tab":"bf8a214c.b174d8","order":2,"disp":false,"width":"6","collapse":false},{"id":"ef53f5ed.d448e","type":"ui_group","z":"","name":"Platine","tab":"bf8a214c.b174d8","order":3,"disp":false,"width":"6","collapse":false},{"id":"bf8a214c.b174d8","type":"ui_tab","z":"","name":"Octopus","icon":"dashboard","order":2}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment