scrape: add impfee
This commit is contained in:
parent
6056b78ce6
commit
ef5a03b68b
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue