scrape, ticker: add museen-dresden
This commit is contained in:
parent
99766be2dc
commit
d74a65d8b2
|
@ -189,6 +189,13 @@ in {
|
||||||
'';
|
'';
|
||||||
inherit serviceConfig;
|
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
|
} // builtins.listToAttrs
|
||||||
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
||||||
map makeLuftScraper luftqualitaetStations
|
map makeLuftScraper luftqualitaetStations
|
||||||
|
@ -293,6 +300,11 @@ in {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnCalendar = "hourly";
|
timerConfig.OnCalendar = "hourly";
|
||||||
};
|
};
|
||||||
|
scrape-museen-dresden = {
|
||||||
|
partOf = [ "scrape-museen-dresden.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)
|
||||||
|
|
|
@ -268,6 +268,10 @@
|
||||||
url = "https://dresden.dgfk.net/?plugin=all-in-one-event-calendar&controller=ai1ec_exporter_controller&action=export_events";
|
url = "https://dresden.dgfk.net/?plugin=all-in-one-event-calendar&controller=ai1ec_exporter_controller&action=export_events";
|
||||||
color = "#A0C269";
|
color = "#A0C269";
|
||||||
};
|
};
|
||||||
|
museen-dresden = {
|
||||||
|
url = "https://scrape.hq.c3d2.de/museen-dresden.ics";
|
||||||
|
color = "#943008";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user