scrape, ticker: add museen-dresden
This commit is contained in:
parent
99766be2dc
commit
d74a65d8b2
|
@ -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)
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue