scrape, ticker: add dresden-kulturstadt
This commit is contained in:
parent
94dc78e49a
commit
f4155c5675
|
@ -221,6 +221,16 @@ in {
|
|||
Group = config.users.users.scrape.group;
|
||||
};
|
||||
};
|
||||
scrape-dresden-kulturstadt = {
|
||||
script = ''
|
||||
${scraperPkgs.dresden-kulturstadt}/bin/dresden-kulturstadt > /tmp/dresden-kulturstadt.ics
|
||||
mv /tmp/dresden-kulturstadt.ics ${config.users.users.scrape.home}/
|
||||
'';
|
||||
serviceConfig = {
|
||||
User = config.users.users.scrape.name;
|
||||
Group = config.users.users.scrape.group;
|
||||
};
|
||||
};
|
||||
} // builtins.listToAttrs
|
||||
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
||||
map makeLuftScraper luftqualitaetStations
|
||||
|
@ -315,6 +325,11 @@ in {
|
|||
wantedBy = [ "timers.target" ];
|
||||
timerConfig.OnCalendar = "hourly";
|
||||
};
|
||||
scrape-dresden-kulturstadt = {
|
||||
partOf = [ "scrape-dresden-kulturstadt.service" ];
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig.OnCalendar = "hourly";
|
||||
};
|
||||
} // builtins.listToAttrs
|
||||
(map makeNodeScraperTimer (builtins.attrNames freifunkNodes) ++
|
||||
(map makeLuftScraperTimer luftqualitaetStations)
|
||||
|
|
|
@ -238,6 +238,10 @@ with lib;
|
|||
url = "https://www.meetup.com/php-usergroup-dresden/events/ical";
|
||||
color = "#FFAF3F";
|
||||
};
|
||||
dresden-kulturstadt = {
|
||||
url = "https://scrape.hq.c3d2.de/dresden-kulturstadt.ics";
|
||||
color = "#29333F";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue