Instantly share code, notes, and snippets.

Embed
What would you like to do?
[
{
"id": "8320e946.6f83a8",
"type": "tab",
"label": "Watering Flow",
"disabled": false,
"info": ""
},
{
"id": "fd6b563f.bcf238",
"type": "mqtt in",
"z": "8320e946.6f83a8",
"name": "sensor events",
"topic": "wateringsystem/sensors",
"qos": "2",
"broker": "caf9b2ea.7b2d8",
"x": 142,
"y": 87,
"wires": [
[
"eb490f75.c88de"
]
]
},
{
"id": "eb490f75.c88de",
"type": "json",
"z": "8320e946.6f83a8",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 324,
"y": 87,
"wires": [
[
"3228d746.2d8b48",
"4d225da4.c6eef4",
"5a5e631c.83114c",
"b4afa03d.071c9",
"80f622e6.4235d8"
]
]
},
{
"id": "3228d746.2d8b48",
"type": "function",
"z": "8320e946.6f83a8",
"name": "temperature filter",
"func": "msg.payload = msg.payload.Temperature;\nmsg.topic = 'temperature';\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 590,
"y": 82,
"wires": [
[
"65cc6044.c52de",
"739a0781.500198"
]
]
},
{
"id": "4d225da4.c6eef4",
"type": "function",
"z": "8320e946.6f83a8",
"name": "humidity filter",
"func": "msg.payload = msg.payload.Humidity;\nmsg.topic = 'humidity';\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 571,
"y": 141,
"wires": [
[
"739a0781.500198",
"3b8b91f4.4cf2ae"
]
]
},
{
"id": "65cc6044.c52de",
"type": "ui_gauge",
"z": "8320e946.6f83a8",
"name": "",
"group": "779f537e.066cfc",
"order": 1,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "Temperatur",
"label": "°C",
"format": "{{value}}",
"min": "0",
"max": "40",
"colors": [
"#0000ff",
"#00ff00",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 860,
"y": 28,
"wires": []
},
{
"id": "739a0781.500198",
"type": "ui_chart",
"z": "8320e946.6f83a8",
"name": "",
"group": "ecbce173.86081",
"order": 6,
"width": 0,
"height": 0,
"label": "Temperatur und Luftfeuchtigkeit",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "60",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "86400",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"x": 915,
"y": 83,
"wires": [
[],
[]
]
},
{
"id": "5a5e631c.83114c",
"type": "function",
"z": "8320e946.6f83a8",
"name": "pressure filter",
"func": "msg.payload = msg.payload.Pressure;\nmsg.topic = 'pressure';\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 581,
"y": 207,
"wires": [
[
"2ab2a65d.9bb58a",
"da35ca0c.0a4718"
]
]
},
{
"id": "2ab2a65d.9bb58a",
"type": "ui_text",
"z": "8320e946.6f83a8",
"group": "779f537e.066cfc",
"order": 3,
"width": 0,
"height": 0,
"name": "",
"label": "Luftdruck",
"format": "{{msg.payload}}",
"layout": "col-center",
"x": 848,
"y": 185,
"wires": []
},
{
"id": "b4afa03d.071c9",
"type": "function",
"z": "8320e946.6f83a8",
"name": "soil-moisture filter",
"func": "msg.payload = msg.payload.SoilMoisture;\nmsg.topic = 'soil-moisture';\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 594,
"y": 289,
"wires": [
[
"9040ec8b.eca5e",
"8acfa6ae.0f3678"
]
]
},
{
"id": "9040ec8b.eca5e",
"type": "ui_chart",
"z": "8320e946.6f83a8",
"name": "",
"group": "ecbce173.86081",
"order": 4,
"width": 0,
"height": 0,
"label": "Boden Feuchte",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "1024",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"x": 860,
"y": 292,
"wires": [
[],
[]
]
},
{
"id": "da35ca0c.0a4718",
"type": "ui_chart",
"z": "8320e946.6f83a8",
"name": "",
"group": "ecbce173.86081",
"order": 5,
"width": 0,
"height": 0,
"label": "Luftdruck",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "",
"ymax": "",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "86400",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"x": 845,
"y": 243,
"wires": [
[],
[]
]
},
{
"id": "8acfa6ae.0f3678",
"type": "switch",
"z": "8320e946.6f83a8",
"name": "Bewässern?",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "600",
"vt": "num",
"v2": "900",
"v2t": "num"
},
{
"t": "lte",
"v": "600",
"vt": "num"
},
{
"t": "gt",
"v": "900",
"vt": "num"
}
],
"checkall": "false",
"repair": false,
"outputs": 3,
"x": 851,
"y": 360,
"wires": [
[
"29e04e90.05bd52"
],
[
"932cb5c2.75a6b8"
],
[
"812c17a9.66dd58"
]
]
},
{
"id": "21720031.82c94",
"type": "mqtt out",
"z": "8320e946.6f83a8",
"name": "Bewässern",
"topic": "wateringsystem/actions/watering",
"qos": "",
"retain": "",
"broker": "caf9b2ea.7b2d8",
"x": 1434,
"y": 352,
"wires": []
},
{
"id": "29e04e90.05bd52",
"type": "change",
"z": "8320e946.6f83a8",
"name": "wenig gießen",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "3000",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1104,
"y": 326,
"wires": [
[
"21720031.82c94"
]
]
},
{
"id": "932cb5c2.75a6b8",
"type": "change",
"z": "8320e946.6f83a8",
"name": "viel gießen",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "7000",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1105,
"y": 376,
"wires": [
[
"21720031.82c94"
]
]
},
{
"id": "3b8b91f4.4cf2ae",
"type": "ui_gauge",
"z": "8320e946.6f83a8",
"name": "",
"group": "779f537e.066cfc",
"order": 2,
"width": 0,
"height": 0,
"gtype": "wave",
"title": "Luftfeuchtigkeit",
"label": "%",
"format": "{{value}}",
"min": 0,
"max": "100",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 862,
"y": 135,
"wires": []
},
{
"id": "522105a5.32010c",
"type": "mqtt in",
"z": "8320e946.6f83a8",
"name": "watering events",
"topic": "wateringsystem/watering",
"qos": "2",
"broker": "caf9b2ea.7b2d8",
"x": 157,
"y": 515,
"wires": [
[
"d53f306f.27a37"
]
]
},
{
"id": "d53f306f.27a37",
"type": "switch",
"z": "8320e946.6f83a8",
"name": "watering finished",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "stop",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 416,
"y": 515,
"wires": [
[
"812c17a9.66dd58"
]
]
},
{
"id": "f4a75133.c31e",
"type": "mqtt out",
"z": "8320e946.6f83a8",
"name": "Schlafmodus",
"topic": "wateringsystem/actions/deepsleep",
"qos": "",
"retain": "",
"broker": "caf9b2ea.7b2d8",
"x": 1440,
"y": 515,
"wires": []
},
{
"id": "812c17a9.66dd58",
"type": "change",
"z": "8320e946.6f83a8",
"name": "set sleep time to 1h",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "3600",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1135,
"y": 515,
"wires": [
[
"f4a75133.c31e"
]
]
},
{
"id": "80f622e6.4235d8",
"type": "function",
"z": "8320e946.6f83a8",
"name": "date filter",
"func": "return {\n payload: new Date()\n};",
"outputs": 1,
"noerr": 0,
"x": 566.5,
"y": 428,
"wires": [
[
"c0b3cfd.bfc8bb"
]
]
},
{
"id": "c0b3cfd.bfc8bb",
"type": "ui_text",
"z": "8320e946.6f83a8",
"group": "779f537e.066cfc",
"order": 0,
"width": 0,
"height": 0,
"name": "",
"label": "Datum",
"format": "{{msg.payload}}",
"layout": "row-spread",
"x": 744.5,
"y": 429,
"wires": []
},
{
"id": "caf9b2ea.7b2d8",
"type": "mqtt-broker",
"z": "",
"name": "localhost",
"broker": "localhost",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willPayload": ""
},
{
"id": "779f537e.066cfc",
"type": "ui_group",
"z": "",
"name": "Live Werte",
"tab": "1a955c82.c82dd3",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "ecbce173.86081",
"type": "ui_group",
"z": "",
"name": "Diagramme",
"tab": "1a955c82.c82dd3",
"order": 2,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "1a955c82.c82dd3",
"type": "ui_tab",
"z": "",
"name": "Watering system",
"icon": "dashboard",
"order": 2
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment