mirror of
https://github.com/kmein/niveum
synced 2026-03-18 11:01:07 +01:00
feat(i3status-rust): incidence
This commit is contained in:
@@ -91,6 +91,18 @@ in {
|
|||||||
units = "metric";
|
units = "metric";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
block = "custom";
|
||||||
|
interval = 60 * 60 * 12;
|
||||||
|
command =
|
||||||
|
let
|
||||||
|
area = "states"; # "districts";
|
||||||
|
code = "BE"; # "11007";
|
||||||
|
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}.weekIncidence | round'
|
||||||
|
'';
|
||||||
|
}
|
||||||
{
|
{
|
||||||
block = "custom";
|
block = "custom";
|
||||||
interval = 30;
|
interval = 30;
|
||||||
|
|||||||
Reference in New Issue
Block a user