Covid-19 NodeRED Ticker an Pushover und Twitter – update

Da sich die REST-API geändert hat (Danke Timo), (Deutschland ist nun auf Platz 4) hier das Update:

Covid-19 NodeRED Ticker an Pushover und Twitter – update

Hier der Code:

[
    {
        "id": "884ebfce.72d028",
        "type": "tab",
        "label": "Coronavirus",
        "disabled": false,
        "info": ""
    },
    {
        "id": "e602c35.d1770c",
        "type": "inject",
        "z": "884ebfce.72d028",
        "name": "Täglich um 9:15 Uhr",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "15 09 * * *",
        "once": false,
        "onceDelay": 0.1,
        "x": 140,
        "y": 100,
        "wires": [
            [
                "35fdb980.106f26"
            ]
        ]
    },
    {
        "id": "35fdb980.106f26",
        "type": "http request",
        "z": "884ebfce.72d028",
        "name": "Covid-19 abfragen",
        "method": "GET",
        "ret": "obj",
        "paytoqs": false,
        "url": "https://covid19.mathdro.id/api",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "basic",
        "x": 210,
        "y": 160,
        "wires": [
            [
                "9e353355.0a94e"
            ]
        ]
    },
    {
        "id": "9e353355.0a94e",
        "type": "function",
        "z": "884ebfce.72d028",
        "name": "Covid-19 weltweit Meldung",
        "func": "\nvar nachricht = \"Bestätigte Personen mit covid-19 weltweit: \"  + msg.payload.confirmed.value +  \n\" und wiederhergestellt: \" + msg.payload.recovered.value + \n\" und gestorben: \"  + msg.payload.deaths.value;\n\nmsg.payload = nachricht;\nmsg.topic = nachricht;\n\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 300,
        "y": 220,
        "wires": [
            [
                "3a1f746c.f0c0fc",
                "4a020e21.78c558"
            ]
        ]
    },
    {
        "id": "3a1f746c.f0c0fc",
        "type": "rbe",
        "z": "884ebfce.72d028",
        "name": "Nur bei Änderung des Wert weiter",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "property": "payload",
        "x": 380,
        "y": 280,
        "wires": [
            [
                "4a020e21.78c558",
                "6fd8c4e6.8553e4",
                "330efe00.b45a22"
            ]
        ]
    },
    {
        "id": "4a020e21.78c558",
        "type": "debug",
        "z": "884ebfce.72d028",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 670,
        "y": 280,
        "wires": []
    },
    {
        "id": "6fd8c4e6.8553e4",
        "type": "pushover",
        "z": "884ebfce.72d028",
        "name": "Sende Pushover Nachricht",
        "device": "",
        "title": "Covid-19 Statistik Weltweit",
        "priority": 0,
        "sound": "",
        "url": "http://www.wenzlaff.info",
        "url_title": "covid-19",
        "html": false,
        "x": 480,
        "y": 340,
        "wires": []
    },
    {
        "id": "622e582b.b2261",
        "type": "comment",
        "z": "884ebfce.72d028",
        "name": "www.wenzlaff.info",
        "info": "",
        "x": 630,
        "y": 500,
        "wires": []
    },
    {
        "id": "e0ebb947.21967",
        "type": "comment",
        "z": "884ebfce.72d028",
        "name": "Erzeuge Meldung über covid-19 weltweit",
        "info": "",
        "x": 180,
        "y": 40,
        "wires": []
    },
    {
        "id": "330efe00.b45a22",
        "type": "twitter out",
        "z": "884ebfce.72d028",
        "twitter": "",
        "name": "Tweet",
        "x": 410,
        "y": 400,
        "wires": []
    },
    {
        "id": "9851a5e0.9e28d",
        "type": "comment",
        "z": "884ebfce.72d028",
        "name": "via Service von https://covid19.mathdro.id/api",
        "info": "",
        "x": 530,
        "y": 160,
        "wires": []
    },
    {
        "id": "8c6d68f.1965618",
        "type": "inject",
        "z": "884ebfce.72d028",
        "name": "Jede Stunde",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "3600",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 140,
        "y": 540,
        "wires": [
            [
                "3198308f.b1d0b"
            ]
        ]
    },
    {
        "id": "3198308f.b1d0b",
        "type": "http request",
        "z": "884ebfce.72d028",
        "name": "Covid-19 abfragen für Deutschland",
        "method": "GET",
        "ret": "obj",
        "paytoqs": false,
        "url": "https://covid19.mathdro.id/api/confirmed",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "basic",
        "x": 280,
        "y": 600,
        "wires": [
            [
                "85336713.7e3e5"
            ]
        ]
    },
    {
        "id": "85336713.7e3e5",
        "type": "function",
        "z": "884ebfce.72d028",
        "name": "Covid-19 Deutschland Fallzahlen Meldung",
        "func": "var land = 4\nvar nachricht = \"Bestätigte Personen mit covid-19 in \" + msg.payload[land].countryRegion \n+ \": \"  + msg.payload[land].confirmed \n+ \" Genesen: \" +  + msg.payload[land].recovered \n+ \" Gestorben: \" +  + msg.payload[land].deaths \n+ \"  -  #covid19 #coronavirus #corona #coronavirusdeutschland #covid #virus #deutschland #rki\";\n\nmsg.payload = nachricht;\nmsg.topic = \"COVID-19 Fallzahlen Deutschland\";\n\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 350,
        "y": 660,
        "wires": [
            [
                "a29a5d6.a71512",
                "edf4f959.998a88"
            ]
        ]
    },
    {
        "id": "a29a5d6.a71512",
        "type": "rbe",
        "z": "884ebfce.72d028",
        "name": "Nur bei Änderung des Wert weiter",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "property": "payload",
        "x": 400,
        "y": 720,
        "wires": [
            [
                "edf4f959.998a88",
                "c7aea8a5.ed7d38"
            ]
        ]
    },
    {
        "id": "edf4f959.998a88",
        "type": "debug",
        "z": "884ebfce.72d028",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 690,
        "y": 680,
        "wires": []
    },
    {
        "id": "c7aea8a5.ed7d38",
        "type": "twitter out",
        "z": "884ebfce.72d028",
        "twitter": "",
        "name": "Tweet",
        "x": 670,
        "y": 780,
        "wires": []
    },
    {
        "id": "71ae5876.b57de8",
        "type": "comment",
        "z": "884ebfce.72d028",
        "name": "via Service von https://covid19.mathdro.id/api/confirmed",
        "info": "",
        "x": 750,
        "y": 600,
        "wires": []
    },
    {
        "id": "8e007bf2.5451c8",
        "type": "comment",
        "z": "884ebfce.72d028",
        "name": "covid-19 Live-Ticker für Deutschland",
        "info": "",
        "x": 180,
        "y": 500,
        "wires": []
    }
]

Ähnliche Artikel:

  1. Covid-19 Live-Ticker für Deutschland mit Raspberry Pi und Node-RED via Twitter
  2. Wie können live Covid-19 Daten per Node-RED an Twitter und Pushover gesendet werden?
  3. NodeRed Flow Pollenflug-Gefahrenindex des DWD per Pushover vom Rasberry Pi versenden

wallpaper-1019588
[Manga] Kemono Jihen – Gefährlichen Phänomenen auf der Spur [2]
wallpaper-1019588
Algarve-Tourismus: Grünes Licht aus Großbritannien
wallpaper-1019588
#1100 [Session-Life] „Picture my Day“ Day #2021 ~ April
wallpaper-1019588
Neue Powerbank Xoro MPB 3000 erschienen