Nun sind die Anzahl der freien Intensiv-Bette aussagekräftiger als die Inzidenzen. Ldt. Ärzteblatt sind übrigens zumeist von schweren Verläufen und Todesfällen Ungeimpfte betroffen.
Deshalb mal hier ein kleiner Flow, der die Daten bei RKI abfragt und täglich auf ein Handy per Pushover sendet. Die Daten kommen per JSON über die URL https://www.intensivregister.de/api/public/reporting/laendertabelle und liefern z.B.
Hier der Flow:
Hier der JavaScript Code der leicht den eigenen Anforderungen und Wünschen angepasst werden kann:
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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
[ { "id": "f55b7264.1b2b", "type": "tab", "label": "Covid", "disabled": false, "info": "" }, { "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", "490980e.6b6c8" ] ] }, { "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": "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": [] }, { "id": "d76cb79d.b41648", "type": "comment", "z": "f55b7264.1b2b", "name": "Intensivregister abfragen beim \"Robert Koch Institute (RKI)\" und per Pushover versenden", "info": "https://www.intensivregister.de/api/public/reporting/laendertabelle\n\nZ.B.\n\n{\"creationTimestamp\":\"2021-08-29T17:19:17Z\",\n\"bundesland\":null,\n\"meldebereichAnz\":1662,\n\"standortAnzahl\":1257,\n\n\"faelleCovidAktuell\":1008,\n\n\"faelleCovidAktuellBeatmet\":485,\"intensivBettenBelegt\":20210,\"intensivBettenFrei\":4614,\"intensivBettenFreiProStandort\":3.6706443914081146,\"covidKapazitaetFrei\":1856,\"intensivBettenGesamt\":24824,\"intensivBettenNotfall7d\":10813,\"covidToIntensivBettenPercent\":4.06,\"faelleCovidAktuellBeatmetToCovidAktuellPercent\":48.12,\"bettenBelegtToBettenGesamtPercent\":81.41,\"bettenFreiToBettenGesamtPercent\":18.59}", "x": 370, "y": 460, "wires": [] }, { "id": "70fd7af2.bef37c", "type": "inject", "z": "f55b7264.1b2b", "name": "Abfrage", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 130, "y": 280, "wires": [ [ "490980e.6b6c8" ] ] }, { "id": "cd567e59.5f26f", "type": "function", "z": "f55b7264.1b2b", "name": "JSON to aktuelle Covid Fälle in Deutschland", "func": "msg.payload = \"Aktuelle Covid Fälle in Deutschland auf Intensiv-Stationen: \" \n+ Math.round(parseInt(msg.payload.overallSum.faelleCovidAktuell)) + \" noch freie Intensiv Betten: \" + msg.payload.overallSum.intensivBettenFrei;\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 450, "y": 380, "wires": [ [ "b5e07d9f.75769", "9f4b0e23.4b28" ] ] }, { "id": "3e7d3dda.df8e82", "type": "debug", "z": "f55b7264.1b2b", "name": "Intensivregister", "active": true, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 500, "y": 280, "wires": [] }, { "id": "490980e.6b6c8", "type": "http request", "z": "f55b7264.1b2b", "name": "", "method": "GET", "ret": "obj", "paytoqs": "ignore", "url": "https://www.intensivregister.de/api/public/reporting/laendertabelle", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 290, "y": 280, "wires": [ [ "cd567e59.5f26f", "3e7d3dda.df8e82" ] ] }, { "id": "b5e07d9f.75769", "type": "debug", "z": "f55b7264.1b2b", "name": "Aktuelle Covid Fälle in Deutschland", "active": true, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 820, "y": 380, "wires": [] }, { "id": "9f4b0e23.4b28", "type": "pushover", "z": "f55b7264.1b2b", "name": "", "device": "", "title": "Pushover Intensivregister Daten", "priority": 0, "sound": "", "url": "", "url_title": "", "html": false, "x": 810, "y": 320, "wires": [] }, { "id": "6ad98d04.c0cd2c", "type": "comment", "z": "f55b7264.1b2b", "name": "(c) 2021 Thomas Wenzlaff www.wenzlaff.info", "info": "", "x": 910, "y": 460, "wires": [] } ] |
Bleibt Gesund!