scrape, ticker: add kosmotique
This commit is contained in:
parent
3495f4762e
commit
669bafaf2f
|
@ -203,6 +203,13 @@ in {
|
||||||
'';
|
'';
|
||||||
inherit serviceConfig;
|
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
|
} // builtins.listToAttrs
|
||||||
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
||||||
map makeLuftScraper luftqualitaetStations
|
map makeLuftScraper luftqualitaetStations
|
||||||
|
@ -317,6 +324,11 @@ in {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnCalendar = "hourly";
|
timerConfig.OnCalendar = "hourly";
|
||||||
};
|
};
|
||||||
|
scrape-kosmotique = {
|
||||||
|
partOf = [ "scrape-kosmotique.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)
|
||||||
|
|
|
@ -276,6 +276,10 @@
|
||||||
url = "https://scrape.hq.c3d2.de/criticalmass.ics";
|
url = "https://scrape.hq.c3d2.de/criticalmass.ics";
|
||||||
color = "#3FBF9F";
|
color = "#3FBF9F";
|
||||||
};
|
};
|
||||||
|
kosmotique = {
|
||||||
|
url = "https://scrape.hq.c3d2.de/kosmotique.ics";
|
||||||
|
color = "#dfd";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue