containers/scrape: add scrape-{fhem,matemat}

This commit is contained in:
Astro 2020-04-04 04:29:04 +02:00
parent 3feed02e45
commit 8c8ce01820
2 changed files with 23 additions and 1 deletions

View File

@ -33,6 +33,8 @@
script = "${scrapers.${script}}/bin/${script} ${host} ${user} ${password}";
};
xeriLogin = import <secrets/hosts/scrape/xeri.nix>;
fhemLogin = import <secrets/hosts/scrape/fhem.nix>;
matematLogin = import <secrets/hosts/scrape/matemat.nix>;
in {
scrape-xeri = makeService {
script = "xerox";
@ -47,6 +49,16 @@
script = "luftdaten";
host = "";
};
scrape-fhem = makeService {
script = "fhem";
host = "fhem.hq.c3d2.de";
inherit (fhemLogin) user password;
};
scrape-matemat = makeService {
script = "matemat";
host = "matemat.hq.c3d2.de";
inherit (matematLogin) user password;
};
};
systemd.timers.scrape-xeri = {
partOf = [ "scrape-xeri.service" ];
@ -63,6 +75,16 @@
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "minutely";
};
systemd.timers.scrape-fhem = {
partOf = [ "scrape-fhem.service" ];
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "minutely";
};
systemd.timers.scrape-matemat = {
partOf = [ "scrape-matemat.service" ];
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "minutely";
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database

@ -1 +1 @@
Subproject commit 933f77d2e76d7b1cdc50807d3843736eac0efce0
Subproject commit 35a994c6ea2f2720e8ec045ea1369163ea69a35f