Skip to content

Instantly share code, notes, and snippets.

@plehr
Last active October 13, 2020 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plehr/9ebae1bd31e67f904df506a4f045adf0 to your computer and use it in GitHub Desktop.
Save plehr/9ebae1bd31e67f904df506a4f045adf0 to your computer and use it in GitHub Desktop.
Zeige alle COVID-19 Fälle in meinem Landkreis
#!/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