Coronavirus: Zahl der täglichen Neuinfektionen geht weiter zurück (153). Wie lautet die Inzidenz für meine Stadt? Hier ein kleiner Flow, der täglich auf das Handy per Pushover (siehe Bild oben) die aktuelle Inzidenz Zahl vom RKI versendet. Dann braucht man nicht immer auf das Dashboard des RKI zu schauen….
Für den Flow, muss einmalig
npm install node-red-contrib-covid-german-incidents
ausgeführt werden oder der Node node-red-contrib-covid-german-incidents installiert werden.
Der Node kann sehr einfach, über die Combobox eingestellt werden:
Hier der JavaScript Code des Flows
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
[ { "id": "ba06c026.2fc218", "type": "covid-local-incidents", "z": "f55b7264.1b2b", "name": "Inzidenz abfragen", "region": "3241", "x": 310, "y": 120, "wires": [ [ "3d82a4d8.da970c", "161dbec6.87e069" ] ] }, { "id": "9307f532.bc5918", "type": "inject", "z": "f55b7264.1b2b", "name": "Täglich", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "00 09 * * *", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 140, "y": 120, "wires": [ [ "ba06c026.2fc218" ] ] }, { "id": "3d82a4d8.da970c", "type": "debug", "z": "f55b7264.1b2b", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 490, "y": 160, "wires": [] }, { "id": "e6b7c162.08ca1", "type": "pushover", "z": "f55b7264.1b2b", "name": "", "device": "", "title": "Pushover Covid 19 Meldung versenden", "priority": 0, "sound": "", "url": "", "url_title": "", "html": false, "x": 840, "y": 120, "wires": [] }, { "id": "161dbec6.87e069", "type": "function", "z": "f55b7264.1b2b", "name": "JSON to Region Hannover", "func": "msg.payload = \"7-Tage-Inzidenz vom RKI Region Hannover: \" + Math.round(parseInt(msg.payload.region_7_day_incidents))\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 540, "y": 120, "wires": [ [ "e6b7c162.08ca1" ] ] }, { "id": "6f5da0b6.167b98", "type": "comment", "z": "f55b7264.1b2b", "name": "Buy my a coffee: bitcoin:bc1qj4grttyhk2h5wqask3nku70e3qtycssz5kvw5l", "info": "", "x": 320, "y": 240, "wires": [] }, { "id": "f6a4cafb.c0584", "type": "comment", "z": "f55b7264.1b2b", "name": "(c) 2021 Thomas Wenzlaff www.wenzlaff.info", "info": "Quelle: \n\nhttps://bitcoinfees.earn.com/api\n\nhttps://bitcoinfees.earn.com\n\n\nhttps://mempool.space/api/v1/fees/recommended\n\nhttps://mempool.space/de/api", "x": 830, "y": 240, "wires": [] }, { "id": "22dce22a.7d4f4e", "type": "comment", "z": "f55b7264.1b2b", "name": "Covid Inzidenz abfragen beim \"Robert Koch Institute (RKI)\" und per Pushover versenden", "info": "npm install node-red-contrib-covid-german-incidents", "x": 370, "y": 40, "wires": [] } ] |