scrape, ticker: add kultursommer, hfmdd, hfbk-dresden
This commit is contained in:
parent
900a7049f2
commit
87b1d471be
|
@ -181,6 +181,36 @@ in {
|
||||||
Group = config.users.users.scrape.group;
|
Group = config.users.users.scrape.group;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
scrape-hfmdd = {
|
||||||
|
script = ''
|
||||||
|
${scraperPkgs.hfmdd}/bin/hfmdd > /tmp/hfmdd.ics
|
||||||
|
mv /tmp/hfmdd.ics ${config.users.users.scrape.home}/
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
User = config.users.users.scrape.name;
|
||||||
|
Group = config.users.users.scrape.group;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
scrape-hfbk-dresden = {
|
||||||
|
script = ''
|
||||||
|
${scraperPkgs.hfbk-dresden}/bin/hfbk-dresden > /tmp/hfbk-dresden.ics
|
||||||
|
mv /tmp/hfbk-dresden.ics ${config.users.users.scrape.home}/
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
User = config.users.users.scrape.name;
|
||||||
|
Group = config.users.users.scrape.group;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
scrape-staatsoperette = {
|
||||||
|
script = ''
|
||||||
|
${scraperPkgs.staatsoperette}/bin/staatsoperette > /tmp/staatsoperette.ics
|
||||||
|
mv /tmp/staatsoperette.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
|
||||||
|
@ -255,6 +285,21 @@ in {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnCalendar = "hourly";
|
timerConfig.OnCalendar = "hourly";
|
||||||
};
|
};
|
||||||
|
scrape-hfmdd = {
|
||||||
|
partOf = [ "scrape-hfmdd.service" ];
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig.OnCalendar = "hourly";
|
||||||
|
};
|
||||||
|
scrape-hfbk-dresden = {
|
||||||
|
partOf = [ "scrape-hfbk-dresden.service" ];
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig.OnCalendar = "hourly";
|
||||||
|
};
|
||||||
|
scrape-staatsoperette = {
|
||||||
|
partOf = [ "scrape-staatsoperette.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)
|
||||||
|
|
|
@ -198,6 +198,18 @@ with lib;
|
||||||
url = "https://scrape.hq.c3d2.de/kunsthaus.ics";
|
url = "https://scrape.hq.c3d2.de/kunsthaus.ics";
|
||||||
color = "#000000";
|
color = "#000000";
|
||||||
};
|
};
|
||||||
|
kultursommer = {
|
||||||
|
url = "https://kultursommerdresden.de/kalender/?ical=1";
|
||||||
|
color = "#9CC870";
|
||||||
|
};
|
||||||
|
hfmdd = {
|
||||||
|
url = "https://scrape.hq.c3d2.de/hfmdd.ics";
|
||||||
|
color = "#648001";
|
||||||
|
};
|
||||||
|
hfbk-dresden = {
|
||||||
|
url = "https://scrape.hq.c3d2.de/hfbk-dresden.ics";
|
||||||
|
color = "#3366FF";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue