arduino2/Docker_NodeRed-etc_Cookbook/Thermoskanne.json
2020-11-06 13:17:55 +01:00

616 lines
14 KiB
JSON

[
{
"id": "fdbc851f.61bec8",
"type": "tab",
"label": "Labor",
"disabled": false,
"info": ""
},
{
"id": "25c50883.bea6f8",
"type": "mqtt out",
"z": "fdbc851f.61bec8",
"name": "cmd/drehz",
"topic": "/maschine/cmd/drehz",
"qos": "1",
"retain": "true",
"broker": "9d12c96a.1bc38",
"x": 614,
"y": 294,
"wires": []
},
{
"id": "ce7402d4.57716",
"type": "mqtt in",
"z": "fdbc851f.61bec8",
"name": "",
"topic": "/maschine/temp",
"qos": "2",
"datatype": "auto",
"broker": "9d12c96a.1bc38",
"x": 340.9999694824219,
"y": 229.4000244140625,
"wires": [
[
"67f45a60.ff2794",
"99a1cf04.93fa08"
]
]
},
{
"id": "fea1942a.233588",
"type": "ui_gauge",
"z": "fdbc851f.61bec8",
"name": "",
"group": "97cd0ecc.fcc628",
"order": 0,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "Temperatur",
"label": "C",
"format": "{{value}}",
"min": 0,
"max": "40",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 701,
"y": 228.39996337890625,
"wires": []
},
{
"id": "db1c0fd7.b7e6e",
"type": "ui_slider",
"z": "fdbc851f.61bec8",
"name": "",
"label": "Motor",
"tooltip": "",
"group": "97cd0ecc.fcc628",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "",
"min": 0,
"max": "100",
"step": 1,
"x": 319.99998474121094,
"y": 297.20001220703125,
"wires": [
[
"25c50883.bea6f8"
]
]
},
{
"id": "91aae768.9d3208",
"type": "ui_switch",
"z": "fdbc851f.61bec8",
"name": "",
"label": "Motor On/Off",
"tooltip": "",
"group": "97cd0ecc.fcc628",
"order": 2,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "",
"style": "",
"onvalue": "1",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "0",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 338.99998474121094,
"y": 360.5999755859375,
"wires": [
[
"4aefce01.6717b"
]
]
},
{
"id": "4aefce01.6717b",
"type": "mqtt out",
"z": "fdbc851f.61bec8",
"name": "cmd/motor",
"topic": "/maschine/cmd/motor",
"qos": "1",
"retain": "true",
"broker": "9d12c96a.1bc38",
"x": 615.2999877929688,
"y": 361.199951171875,
"wires": []
},
{
"id": "996a6684.c4da48",
"type": "ui_switch",
"z": "fdbc851f.61bec8",
"name": "",
"label": "Relais",
"tooltip": "",
"group": "97cd0ecc.fcc628",
"order": 2,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "",
"style": "",
"onvalue": "1",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "0",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 329.29998779296875,
"y": 472.199951171875,
"wires": [
[
"cf4a3439.d0a078"
]
]
},
{
"id": "cf4a3439.d0a078",
"type": "mqtt out",
"z": "fdbc851f.61bec8",
"name": "cmd/relais",
"topic": "/maschine/cmd/relais",
"qos": "1",
"retain": "true",
"broker": "9d12c96a.1bc38",
"x": 619.5999755859375,
"y": 470.7999267578125,
"wires": []
},
{
"id": "9dda8f98.58118",
"type": "ui_switch",
"z": "fdbc851f.61bec8",
"name": "",
"label": "Power",
"tooltip": "",
"group": "97cd0ecc.fcc628",
"order": 2,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "",
"style": "",
"onvalue": "1",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "0",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 325.2999725341797,
"y": 416.199951171875,
"wires": [
[
"49f47037.7fd17"
]
]
},
{
"id": "49f47037.7fd17",
"type": "mqtt out",
"z": "fdbc851f.61bec8",
"name": "cmd/power",
"topic": "/maschine/cmd/power",
"qos": "1",
"retain": "true",
"broker": "9d12c96a.1bc38",
"x": 613.5999755859375,
"y": 418.7999267578125,
"wires": []
},
{
"id": "fb18265e.724fc8",
"type": "mqtt in",
"z": "fdbc851f.61bec8",
"name": "",
"topic": "/maschine/thermistor",
"qos": "2",
"datatype": "auto",
"broker": "9d12c96a.1bc38",
"x": 347.2999725341797,
"y": 175.20001220703125,
"wires": [
[
"397ee1e0.18b32e",
"4173e801.9e58d"
]
]
},
{
"id": "cd6252ff.4f596",
"type": "ui_gauge",
"z": "fdbc851f.61bec8",
"name": "",
"group": "97cd0ecc.fcc628",
"order": 0,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "Thermistor",
"label": "C",
"format": "{{value}}",
"min": 0,
"max": "80",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 692.300048828125,
"y": 175.199951171875,
"wires": []
},
{
"id": "a9f0758e.e12b28",
"type": "mqtt out",
"z": "fdbc851f.61bec8",
"name": "cmd/targetTemp",
"topic": "/maschine/cmd/targettemp",
"qos": "1",
"retain": "true",
"broker": "9d12c96a.1bc38",
"x": 721,
"y": 526,
"wires": []
},
{
"id": "15958621.d146ca",
"type": "ui_slider",
"z": "fdbc851f.61bec8",
"name": "",
"label": "Target Temperatur",
"tooltip": "",
"group": "97cd0ecc.fcc628",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "",
"min": 0,
"max": "60",
"step": 1,
"x": 327,
"y": 527.2000122070312,
"wires": [
[
"d4a7294.addabd8"
]
]
},
{
"id": "6b6aff5c.217f5",
"type": "ui_text",
"z": "fdbc851f.61bec8",
"group": "97cd0ecc.fcc628",
"order": 7,
"width": 0,
"height": 0,
"name": "",
"label": "Status",
"format": "{{msg.payload}}",
"layout": "row-spread",
"x": 699,
"y": 593,
"wires": []
},
{
"id": "e0fff770.74eb18",
"type": "mqtt in",
"z": "fdbc851f.61bec8",
"name": "",
"topic": "/maschine/status",
"qos": "2",
"datatype": "auto",
"broker": "9d12c96a.1bc38",
"x": 318,
"y": 596,
"wires": [
[
"6b6aff5c.217f5",
"98265187.68291"
]
]
},
{
"id": "c8821bfe.d72338",
"type": "ui_switch",
"z": "fdbc851f.61bec8",
"name": "Influx On/Off",
"label": "Influx",
"tooltip": "",
"group": "97cd0ecc.fcc628",
"order": 8,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "",
"style": "",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"x": 129,
"y": 675,
"wires": [
[
"bf764fc5.91c7b"
]
]
},
{
"id": "bf764fc5.91c7b",
"type": "function",
"z": "fdbc851f.61bec8",
"name": "",
"func": "flow.set('Thermos2Influx',msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 298,
"y": 673,
"wires": [
[]
]
},
{
"id": "9b1f8be2.1750a8",
"type": "debug",
"z": "fdbc851f.61bec8",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 911,
"y": 642,
"wires": []
},
{
"id": "8273a293.2d64d",
"type": "inject",
"z": "fdbc851f.61bec8",
"name": "",
"topic": "",
"payload": "write",
"payloadType": "str",
"repeat": "5",
"crontab": "",
"once": true,
"onceDelay": "5",
"x": 121,
"y": 733,
"wires": [
[
"5470a350.89716c"
]
]
},
{
"id": "5470a350.89716c",
"type": "function",
"z": "fdbc851f.61bec8",
"name": "",
"func": "ok = flow.get('Thermos2Influx');\nif (ok===true){\n return msg;\n}\n",
"outputs": 1,
"noerr": 0,
"x": 302,
"y": 732,
"wires": [
[
"1e3a3557.6f2bfb"
]
]
},
{
"id": "397ee1e0.18b32e",
"type": "function",
"z": "fdbc851f.61bec8",
"name": "for influx",
"func": "flow.set('thermistor',msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 533,
"y": 175,
"wires": [
[
"cd6252ff.4f596"
]
]
},
{
"id": "67f45a60.ff2794",
"type": "function",
"z": "fdbc851f.61bec8",
"name": "for influx",
"func": "flow.set('objecttemp',msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 528,
"y": 231,
"wires": [
[
"fea1942a.233588"
]
]
},
{
"id": "d4a7294.addabd8",
"type": "function",
"z": "fdbc851f.61bec8",
"name": "for influx",
"func": "flow.set('targetTemp',msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 526,
"y": 528,
"wires": [
[
"a9f0758e.e12b28"
]
]
},
{
"id": "c7bd3a5b.640ff8",
"type": "influxdb batch",
"z": "fdbc851f.61bec8",
"influxdb": "7b621d7a.75643c",
"precision": "",
"retentionPolicy": "",
"name": "",
"x": 905.2000122070312,
"y": 728,
"wires": []
},
{
"id": "1e3a3557.6f2bfb",
"type": "function",
"z": "fdbc851f.61bec8",
"name": "thermoskanne",
"func": "msg.payload = [\n {\n measurement: \"thermoskanne\",\n fields: {\n thermistor: flow.get('thermistor'),\n objecttemp : flow.get('objecttemp'),\n targettemp : flow.get('targetTemp'),\n },\n tags:{\n location:\"labor\",\n },\n timestamp: new Date()\n }\n];\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 542,
"y": 750.800048828125,
"wires": [
[
"c7bd3a5b.640ff8",
"9b1f8be2.1750a8"
]
]
},
{
"id": "4173e801.9e58d",
"type": "debug",
"z": "fdbc851f.61bec8",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 964,
"y": 82,
"wires": []
},
{
"id": "98265187.68291",
"type": "timeout",
"z": "fdbc851f.61bec8",
"name": "My Timeout",
"outtopic": "",
"outsafe": "",
"outwarning": "Warning",
"outunsafe": "Connection Lost",
"warning": "15",
"timer": "30",
"repeat": false,
"again": false,
"x": 508,
"y": 639,
"wires": [
[
"6b6aff5c.217f5"
]
]
},
{
"id": "99a1cf04.93fa08",
"type": "debug",
"z": "fdbc851f.61bec8",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 959,
"y": 269,
"wires": []
},
{
"id": "9d12c96a.1bc38",
"type": "mqtt-broker",
"z": "",
"name": "otterstein",
"broker": "192.168.2.71",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "1",
"birthRetain": "true",
"birthPayload": "",
"closeTopic": "",
"closeQos": "1",
"closeRetain": "true",
"closePayload": "",
"willTopic": "",
"willQos": "1",
"willRetain": "true",
"willPayload": ""
},
{
"id": "97cd0ecc.fcc628",
"type": "ui_group",
"z": "",
"name": "Thermoskanne",
"tab": "17759da.4668d62",
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "7b621d7a.75643c",
"type": "influxdb",
"z": "",
"hostname": "192.168.2.72",
"port": "8086",
"protocol": "http",
"database": "otterstein",
"name": "",
"usetls": false,
"tls": ""
},
{
"id": "17759da.4668d62",
"type": "ui_tab",
"z": "",
"name": "Labor",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]