scrape, ticker: add kosmotique

This commit is contained in:
Astro 2023-01-12 20:56:09 +01:00
parent 3495f4762e
commit 669bafaf2f
2 changed files with 16 additions and 0 deletions

View File

@ -203,6 +203,13 @@ in {
'';
inherit serviceConfig;
};
scrape-kosmotique = {
script = ''
${scraperPkgs.kosmotique}/bin/kosmotique > /tmp/kosmotique.ics
mv /tmp/kosmotique.ics ${config.users.users.scrape.home}/
'';
inherit serviceConfig;
};
} // builtins.listToAttrs
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
map makeLuftScraper luftqualitaetStations
@ -317,6 +324,11 @@ in {
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "hourly";
};
scrape-kosmotique = {
partOf = [ "scrape-kosmotique.service" ];
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "hourly";
};
} // builtins.listToAttrs
(map makeNodeScraperTimer (builtins.attrNames freifunkNodes) ++
(map makeLuftScraperTimer luftqualitaetStations)

View File

@ -276,6 +276,10 @@
url = "https://scrape.hq.c3d2.de/criticalmass.ics";
color = "#3FBF9F";
};
kosmotique = {
url = "https://scrape.hq.c3d2.de/kosmotique.ics";
color = "#dfd";
};
};
};
};