diff --git a/flake.lock b/flake.lock index a3596824..425cb73f 100644 --- a/flake.lock +++ b/flake.lock @@ -43,11 +43,11 @@ "scrapers": { "flake": false, "locked": { - "lastModified": 1614995337, - "narHash": "sha256-0MvWFV+Kvd83hcX75Z/rghrUyTPRObGjch7/hKxvROY=", + "lastModified": 1616616238, + "narHash": "sha256-BbZU0kTn0YNvO9IFmvZdbrHuh71R/4ducg51h4gvj7o=", "ref": "master", - "rev": "77c864b4d7e1ef4075ed115b036791c75176bef7", - "revCount": 24, + "rev": "b9775fd9a117f9c0e723fe482b778be0edfa958d", + "revCount": 26, "type": "git", "url": "https://gitea.c3d2.de/astro/scrapers.git" }, diff --git a/hosts/containers/scrape/default.nix b/hosts/containers/scrape/default.nix index e0ee8d4e..8f7ff7dd 100644 --- a/hosts/containers/scrape/default.nix +++ b/hosts/containers/scrape/default.nix @@ -24,7 +24,7 @@ in { systemd.services = let scraperPkgs = import scrapers { inherit pkgs; }; - makeService = { script, host, user ? "", password ? "" }: { + makeService = { script, host ? "", user ? "", password ? "" }: { script = "${scraperPkgs.${script}}/bin/${script} ${host} ${user} ${password}"; }; @@ -55,6 +55,9 @@ in { host = "matemat.hq.c3d2.de"; inherit (pkgs.scrape-matemat-login) user password; }; + scrape-impfee = makeService { + script = "impfee"; + }; } // builtins.listToAttrs (map makeNodeScraper (builtins.attrNames freifunkNodes)); @@ -75,6 +78,7 @@ in { scrape-roxi = makeTimer "scrape-roxi.service" "minutely"; scrape-fhem = makeTimer "scrape-fhem.service" "minutely"; scrape-matemat = makeTimer "scrape-matemat.service" "minutely"; + scrape-impfee = makeTimer "scrape-impfee.service" "minutely"; } // builtins.listToAttrs (map makeNodeScraperTimer (builtins.attrNames freifunkNodes));