scrape: add zuendstoffe
This commit is contained in:
parent
a02e4625da
commit
aae9f0321b
|
@ -305,11 +305,11 @@
|
||||||
"scrapers": {
|
"scrapers": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1642983456,
|
"lastModified": 1644340536,
|
||||||
"narHash": "sha256-+JQKLiHREgwbzytjH7YZbjO2pLgy2EIihLDh51G22Y4=",
|
"narHash": "sha256-sNxoQ0HKzDwRupiYYQg8JLlEr4mw12rRBKnscGeAamc=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "d8155f9bdaebaca50ad3aad8d4365545684e04b1",
|
"rev": "36943f928b5457ddcce70f99320edea9918ccbfe",
|
||||||
"revCount": 39,
|
"revCount": 40,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.c3d2.de/astro/scrapers.git"
|
"url": "https://gitea.c3d2.de/astro/scrapers.git"
|
||||||
},
|
},
|
||||||
|
|
|
@ -144,6 +144,16 @@ in {
|
||||||
Group = config.users.users.scrape.group;
|
Group = config.users.users.scrape.group;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
scrape-zuendstoffe = {
|
||||||
|
script = ''
|
||||||
|
${scraperPkgs.zuendstoffe}/bin/zuendstoffe > /tmp/zuendstoffe.xml
|
||||||
|
mv /tmp/zuendstoffe.ics ${config.users.users.scrape.home}/
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
User = config.users.users.scrape.name;
|
||||||
|
Group = config.users.users.scrape.group;
|
||||||
|
};
|
||||||
|
};
|
||||||
} // builtins.listToAttrs
|
} // builtins.listToAttrs
|
||||||
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
||||||
map makeLuftScraper luftqualitaetStations
|
map makeLuftScraper luftqualitaetStations
|
||||||
|
@ -198,6 +208,11 @@ in {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnCalendar = "hourly";
|
timerConfig.OnCalendar = "hourly";
|
||||||
};
|
};
|
||||||
|
scrape-zuendstoffe = {
|
||||||
|
partOf = [ "scrape-zuendstoffe.service" ];
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig.OnCalendar = "hourly";
|
||||||
|
};
|
||||||
} // builtins.listToAttrs
|
} // builtins.listToAttrs
|
||||||
(map makeNodeScraperTimer (builtins.attrNames freifunkNodes) ++
|
(map makeNodeScraperTimer (builtins.attrNames freifunkNodes) ++
|
||||||
(map makeLuftScraperTimer luftqualitaetStations)
|
(map makeLuftScraperTimer luftqualitaetStations)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user