1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 03:21:10 +01:00

feat(i3status-rust): incidence with region name

This commit is contained in:
2021-05-03 06:08:22 +02:00
parent 3a21680812
commit ff49bb95a7

View File

@@ -100,7 +100,7 @@ in {
code = "BE"; # "11007"; code = "BE"; # "11007";
in pkgs.writers.writeDash "incidence" '' in pkgs.writers.writeDash "incidence" ''
printf "📈" printf "📈"
${pkgs.curl}/bin/curl -sSL https://api.corona-zahlen.org/${area}/${code} | ${pkgs.jq}/bin/jq -r '.data.${code}.weekIncidence | round' ${pkgs.curl}/bin/curl -sSL https://api.corona-zahlen.org/${area}/${code} | ${pkgs.jq}/bin/jq -r '.data.${code} | "\(.name): \(.weekIncidence | round)"'
''; '';
} }
{ {