Skip to content

Instantly share code, notes, and snippets.

@Botiplz
Last active February 22, 2022 05:26
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Botiplz/8f26dc40810ff2d39d8bd5fba7d4925c to your computer and use it in GitHub Desktop.
Save Botiplz/8f26dc40810ff2d39d8bd5fba7d4925c to your computer and use it in GitHub Desktop.
Corona Inzidenz-Widget für Android
KWGT Variablen:
Lon:
$li(lon)$
Lat:
$li(lat)$
url:
https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=GEN,cases7_per_100k&geometry=$mu(round,gv(lon),3)$%2C$mu(round,gv(lat),3)$&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json
InzGEN:
$wg(gv(url), json, .features[0].attributes.GEN)$
InzCases:
$wg(gv(url), json, .features[0].attributes.cases7_per_100k)$
InzNum:
$mu(round,gv(inzCases),1)$
InzFarbe:
$if(gv(inznum)>50, #FFFF0000, gv(inznum)>35, #FF00F70F, #FFFCAD00)$
@ScrappyCoco1909
Copy link

Moin,
seit ein paar Tagen funktioniert der Abruf der Neuinfektionen in DE nicht mehr. Hat sich der Link verändert?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment