scrape, ticker: add dresden-versammlungen, azconni
This commit is contained in:
parent
88ffdb926b
commit
a0b116b924
|
@ -151,6 +151,26 @@ in {
|
||||||
Group = config.users.users.scrape.group;
|
Group = config.users.users.scrape.group;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
scrape-dresden-versammlungen = {
|
||||||
|
script = ''
|
||||||
|
${scraperPkgs.dresden-versammlungen}/bin/dresden-versammlungen > /tmp/dresden-versammlungen.ics
|
||||||
|
mv /tmp/dresden-versammlungen.ics ${config.users.users.scrape.home}/
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
User = config.users.users.scrape.name;
|
||||||
|
Group = config.users.users.scrape.group;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
scrape-azconni = {
|
||||||
|
script = ''
|
||||||
|
${scraperPkgs.azconni}/bin/azconni > /tmp/azconni.ics
|
||||||
|
mv /tmp/azconni.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
|
||||||
|
@ -210,6 +230,16 @@ in {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnCalendar = "hourly";
|
timerConfig.OnCalendar = "hourly";
|
||||||
};
|
};
|
||||||
|
scrape-dresden-versammlungen = {
|
||||||
|
partOf = [ "scrape-dresden-versammlungen.service" ];
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig.OnCalendar = "hourly";
|
||||||
|
};
|
||||||
|
scrape-azconni = {
|
||||||
|
partOf = [ "scrape-azconni.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)
|
||||||
|
|
|
@ -145,6 +145,14 @@ with lib;
|
||||||
url = "http://gefilte-fest-dresden.de/feed/my-calendar-google/";
|
url = "http://gefilte-fest-dresden.de/feed/my-calendar-google/";
|
||||||
color = "#4B693A";
|
color = "#4B693A";
|
||||||
};
|
};
|
||||||
|
dresden-versammlungen = {
|
||||||
|
url = "https://scrape.hq.c3d2.de/dresden-versammlungen.ics";
|
||||||
|
color = "#2F2700";
|
||||||
|
};
|
||||||
|
azconni = {
|
||||||
|
url = "https://scrape.hq.c3d2.de/azconni.ics";
|
||||||
|
color = "#CF3F00";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue