Last active
October 13, 2020 10:09
-
-
Save plehr/9ebae1bd31e67f904df506a4f045adf0 to your computer and use it in GitHub Desktop.
Zeige alle COVID-19 Fälle in meinem Landkreis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dieses Skript benoetigt jd, curl und awk | |
curl -s "https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=%20GEN%20%3D%20'BERLIN'&outFields=GEN,BEZ,EWZ,death_rate,cases,deaths,cases_per_100k,cases_per_population,BL,last_update,cases7_per_100k,county&outSR=4326&f=json" | jq '.features' |jq '.[].attributes.cases7_per_100k' | awk '{print int($1+0.5)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment