scrape: add impfee
This commit is contained in:
parent
6056b78ce6
commit
ef5a03b68b
|
@ -43,11 +43,11 @@
|
||||||
"scrapers": {
|
"scrapers": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1614995337,
|
"lastModified": 1616616238,
|
||||||
"narHash": "sha256-0MvWFV+Kvd83hcX75Z/rghrUyTPRObGjch7/hKxvROY=",
|
"narHash": "sha256-BbZU0kTn0YNvO9IFmvZdbrHuh71R/4ducg51h4gvj7o=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "77c864b4d7e1ef4075ed115b036791c75176bef7",
|
"rev": "b9775fd9a117f9c0e723fe482b778be0edfa958d",
|
||||||
"revCount": 24,
|
"revCount": 26,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.c3d2.de/astro/scrapers.git"
|
"url": "https://gitea.c3d2.de/astro/scrapers.git"
|
||||||
},
|
},
|
||||||
|
|
|
@ -24,7 +24,7 @@ in {
|
||||||
|
|
||||||
systemd.services = let
|
systemd.services = let
|
||||||
scraperPkgs = import scrapers { inherit pkgs; };
|
scraperPkgs = import scrapers { inherit pkgs; };
|
||||||
makeService = { script, host, user ? "", password ? "" }: {
|
makeService = { script, host ? "", user ? "", password ? "" }: {
|
||||||
script =
|
script =
|
||||||
"${scraperPkgs.${script}}/bin/${script} ${host} ${user} ${password}";
|
"${scraperPkgs.${script}}/bin/${script} ${host} ${user} ${password}";
|
||||||
};
|
};
|
||||||
|
@ -55,6 +55,9 @@ in {
|
||||||
host = "matemat.hq.c3d2.de";
|
host = "matemat.hq.c3d2.de";
|
||||||
inherit (pkgs.scrape-matemat-login) user password;
|
inherit (pkgs.scrape-matemat-login) user password;
|
||||||
};
|
};
|
||||||
|
scrape-impfee = makeService {
|
||||||
|
script = "impfee";
|
||||||
|
};
|
||||||
} // builtins.listToAttrs
|
} // builtins.listToAttrs
|
||||||
(map makeNodeScraper (builtins.attrNames freifunkNodes));
|
(map makeNodeScraper (builtins.attrNames freifunkNodes));
|
||||||
|
|
||||||
|
@ -75,6 +78,7 @@ in {
|
||||||
scrape-roxi = makeTimer "scrape-roxi.service" "minutely";
|
scrape-roxi = makeTimer "scrape-roxi.service" "minutely";
|
||||||
scrape-fhem = makeTimer "scrape-fhem.service" "minutely";
|
scrape-fhem = makeTimer "scrape-fhem.service" "minutely";
|
||||||
scrape-matemat = makeTimer "scrape-matemat.service" "minutely";
|
scrape-matemat = makeTimer "scrape-matemat.service" "minutely";
|
||||||
|
scrape-impfee = makeTimer "scrape-impfee.service" "minutely";
|
||||||
} // builtins.listToAttrs
|
} // builtins.listToAttrs
|
||||||
(map makeNodeScraperTimer (builtins.attrNames freifunkNodes));
|
(map makeNodeScraperTimer (builtins.attrNames freifunkNodes));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue