Check Server with ping and send Pushover with check Button

Check Server with ping and send Pushover with check Button.

More in german see

http://blog.wenzlaff.de/?p=8151

[
    {
        "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"
    }
]
IT-Berater

Flow Info

created 1 month ago

Node Types

Core
  • comment (x2)
  • debug (x1)
  • function (x1)
  • inject (x1)
Other

Tags

  • ping
  • pushover
  • timer
  • button
  • gui
  • sicherheit
  • server
  • einmal
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option