scrape, ticker: add museen-dresden

This commit is contained in:
Astro 2023-01-12 19:33:02 +01:00
parent 99766be2dc
commit d74a65d8b2
2 changed files with 16 additions and 0 deletions

View File

@ -189,6 +189,13 @@ in {
'';
inherit serviceConfig;
};
scrape-museen-dresden = {
script = ''
${scraperPkgs.museen-dresden}/bin/museen-dresden > /tmp/museen-dresden.ics
mv /tmp/museen-dresden.ics ${config.users.users.scrape.home}/
'';
inherit serviceConfig;
};
} // builtins.listToAttrs
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
map makeLuftScraper luftqualitaetStations
@ -293,6 +300,11 @@ in {
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "hourly";
};
scrape-museen-dresden = {
partOf = [ "scrape-museen-dresden.service" ];
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "hourly";
};
} // builtins.listToAttrs
(map makeNodeScraperTimer (builtins.attrNames freifunkNodes) ++
(map makeLuftScraperTimer luftqualitaetStations)

View File

@ -268,6 +268,10 @@
url = "https://dresden.dgfk.net/?plugin=all-in-one-event-calendar&controller=ai1ec_exporter_controller&action=export_events";
color = "#A0C269";
};
museen-dresden = {
url = "https://scrape.hq.c3d2.de/museen-dresden.ics";
color = "#943008";
};
};
};
};