mirror of
https://github.com/kmein/niveum
synced 2026-03-20 03:51:07 +01:00
feat(i3status-rust): round down incidence since thats what counts
This commit is contained in:
@@ -99,8 +99,7 @@ in {
|
|||||||
area = "states"; # "districts";
|
area = "states"; # "districts";
|
||||||
code = "BE"; # "11007";
|
code = "BE"; # "11007";
|
||||||
in pkgs.writers.writeDash "incidence" ''
|
in pkgs.writers.writeDash "incidence" ''
|
||||||
printf "📈"
|
${pkgs.curl}/bin/curl -sSL https://api.corona-zahlen.org/${area}/${code} | ${pkgs.jq}/bin/jq -r '.data.${code} | "📈 \(.name): \(.weekIncidence | floor)"'
|
||||||
${pkgs.curl}/bin/curl -sSL https://api.corona-zahlen.org/${area}/${code} | ${pkgs.jq}/bin/jq -r '.data.${code} | "\(.name): \(.weekIncidence | round)"'
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user