Skip to content

Instantly share code, notes, and snippets.

@IT-Berater
Created May 24, 2017 17:40
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 IT-Berater/bd085b7461b26be7e358b9d37c1d95bd to your computer and use it in GitHub Desktop.
Save IT-Berater/bd085b7461b26be7e358b9d37c1d95bd to your computer and use it in GitHub Desktop.
Check Server with ping and send Pushover with check Button
[
{
"id": "2f8ca658.71569a",
"type": "debug",
"z": "c20a269a.3ec3d",
"name": "Debug Ausgabe",
"active": true,
"console": "false",
"complete": "payload",
"x": 720,
"y": 340,
"wires": []
},
{
"id": "5294b262.2e9184",
"type": "adv ping",
"z": "c20a269a.3ec3d",
"name": "pi-flug",
"host": "7.7.7.7",
"x": 350,
"y": 160,
"wires": [
[
"3ea112f9.b97db6"
]
]
},
{
"id": "d9c3aaaa.a2359",
"type": "inject",
"z": "c20a269a.3ec3d",
"name": "Trigger alle 5 Minuten",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "300",
"crontab": "",
"once": false,
"x": 160,
"y": 120,
"wires": [
[
"5294b262.2e9184"
]
]
},
{
"id": "3ea112f9.b97db6",
"type": "function",
"z": "c20a269a.3ec3d",
"name": "Ist Server erreichbar?",
"func": "msg.tripTime = msg.payload;\nmsg.payload = msg.payload !== false ?\n \"pi-flug Server läuft\":\n \"pi-flug Server ist nicht erreichbar\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 460,
"y": 240,
"wires": [
[
"6b099c14.c30b3c",
"7f2bd3d5.f5c37c"
]
]
},
{
"id": "6b099c14.c30b3c",
"type": "rbe",
"z": "c20a269a.3ec3d",
"name": "Nur bei Änderung des Wert weiter",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"x": 420,
"y": 340,
"wires": [
[
"2f8ca658.71569a",
"1733859b.d4eb32"
]
]
},
{
"id": "59f1cc49.a132a4",
"type": "comment",
"z": "c20a269a.3ec3d",
"name": "www.wenzlaff.info",
"info": "",
"x": 790,
"y": 40,
"wires": []
},
{
"id": "5444ee27.0975e8",
"type": "comment",
"z": "c20a269a.3ec3d",
"name": "Checkt mit Ping alle 5 Minuten ob der pi-flug Server läuft und sendet den Status per Pushover",
"info": "",
"x": 340,
"y": 40,
"wires": []
},
{
"id": "4424d6cd.67da68",
"type": "ui_button",
"z": "c20a269a.3ec3d",
"name": "",
"group": "c18727d3.1b7608",
"order": 7,
"width": 0,
"height": 0,
"label": "Check pi-flug Server",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "",
"payloadType": "str",
"topic": "",
"x": 160,
"y": 200,
"wires": [
[
"5294b262.2e9184"
]
]
},
{
"id": "1733859b.d4eb32",
"type": "pushover",
"z": "c20a269a.3ec3d",
"name": "Sende Pushover Nachricht",
"device": "",
"title": "Pushover",
"priority": 0,
"sound": "",
"url": "",
"url_title": "",
"x": 760,
"y": 400,
"wires": []
},
{
"id": "7f2bd3d5.f5c37c",
"type": "ui_toast",
"z": "c20a269a.3ec3d",
"position": "top right",
"displayTime": "3",
"outputs": 0,
"ok": "OK",
"cancel": "",
"topic": "",
"name": "Ergebnis Dialog",
"x": 720,
"y": 240,
"wires": []
},
{
"id": "c18727d3.1b7608",
"type": "ui_group",
"z": "",
"name": "wenzlaff.info",
"tab": "a9e39ea1.b18f3",
"disp": false,
"width": "6"
},
{
"id": "a9e39ea1.b18f3",
"type": "ui_tab",
"z": "",
"name": "wenzlaff.info",
"icon": "dashboard"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment