scrape: add zuendstoffe
This commit is contained in:
parent
a02e4625da
commit
aae9f0321b
|
@ -305,11 +305,11 @@
|
|||
"scrapers": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1642983456,
|
||||
"narHash": "sha256-+JQKLiHREgwbzytjH7YZbjO2pLgy2EIihLDh51G22Y4=",
|
||||
"lastModified": 1644340536,
|
||||
"narHash": "sha256-sNxoQ0HKzDwRupiYYQg8JLlEr4mw12rRBKnscGeAamc=",
|
||||
"ref": "master",
|
||||
"rev": "d8155f9bdaebaca50ad3aad8d4365545684e04b1",
|
||||
"revCount": 39,
|
||||
"rev": "36943f928b5457ddcce70f99320edea9918ccbfe",
|
||||
"revCount": 40,
|
||||
"type": "git",
|
||||
"url": "https://gitea.c3d2.de/astro/scrapers.git"
|
||||
},
|
||||
|
|
|
@ -144,6 +144,16 @@ in {
|
|||
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
|
||||
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
||||
map makeLuftScraper luftqualitaetStations
|
||||
|
@ -198,6 +208,11 @@ in {
|
|||
wantedBy = [ "timers.target" ];
|
||||
timerConfig.OnCalendar = "hourly";
|
||||
};
|
||||
scrape-zuendstoffe = {
|
||||
partOf = [ "scrape-zuendstoffe.service" ];
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig.OnCalendar = "hourly";
|
||||
};
|
||||
} // builtins.listToAttrs
|
||||
(map makeNodeScraperTimer (builtins.attrNames freifunkNodes) ++
|
||||
(map makeLuftScraperTimer luftqualitaetStations)
|
||||
|
|
Loading…
Reference in New Issue