containers/scrape: add scrape-{fhem,matemat}
This commit is contained in:
parent
3feed02e45
commit
8c8ce01820
|
@ -33,6 +33,8 @@
|
||||||
script = "${scrapers.${script}}/bin/${script} ${host} ${user} ${password}";
|
script = "${scrapers.${script}}/bin/${script} ${host} ${user} ${password}";
|
||||||
};
|
};
|
||||||
xeriLogin = import <secrets/hosts/scrape/xeri.nix>;
|
xeriLogin = import <secrets/hosts/scrape/xeri.nix>;
|
||||||
|
fhemLogin = import <secrets/hosts/scrape/fhem.nix>;
|
||||||
|
matematLogin = import <secrets/hosts/scrape/matemat.nix>;
|
||||||
in {
|
in {
|
||||||
scrape-xeri = makeService {
|
scrape-xeri = makeService {
|
||||||
script = "xerox";
|
script = "xerox";
|
||||||
|
@ -47,6 +49,16 @@
|
||||||
script = "luftdaten";
|
script = "luftdaten";
|
||||||
host = "";
|
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 = {
|
systemd.timers.scrape-xeri = {
|
||||||
partOf = [ "scrape-xeri.service" ];
|
partOf = [ "scrape-xeri.service" ];
|
||||||
|
@ -63,6 +75,16 @@
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnCalendar = "minutely";
|
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
|
# This value determines the NixOS release with which your system is to be
|
||||||
# compatible, in order to avoid breaking some software such as database
|
# compatible, in order to avoid breaking some software such as database
|
||||||
|
|
2
secrets
2
secrets
|
@ -1 +1 @@
|
||||||
Subproject commit 933f77d2e76d7b1cdc50807d3843736eac0efce0
|
Subproject commit 35a994c6ea2f2720e8ec045ea1369163ea69a35f
|
Loading…
Reference in New Issue