scrape, ticker: add kosmotique
parent
3495f4762e
commit
669bafaf2f
|
@ -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)
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue