From 669bafaf2fb6b08dc63de57239003a1309ccfec5 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 12 Jan 2023 20:56:09 +0100 Subject: [PATCH] scrape, ticker: add kosmotique --- hosts/scrape/default.nix | 12 ++++++++++++ hosts/ticker/default.nix | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/hosts/scrape/default.nix b/hosts/scrape/default.nix index 5cf0582b..7b75fdaf 100644 --- a/hosts/scrape/default.nix +++ b/hosts/scrape/default.nix @@ -203,6 +203,13 @@ in { ''; inherit serviceConfig; }; + scrape-kosmotique = { + script = '' + ${scraperPkgs.kosmotique}/bin/kosmotique > /tmp/kosmotique.ics + mv /tmp/kosmotique.ics ${config.users.users.scrape.home}/ + ''; + inherit serviceConfig; + }; } // builtins.listToAttrs (map makeNodeScraper (builtins.attrNames freifunkNodes) ++ map makeLuftScraper luftqualitaetStations @@ -317,6 +324,11 @@ in { wantedBy = [ "timers.target" ]; timerConfig.OnCalendar = "hourly"; }; + scrape-kosmotique = { + partOf = [ "scrape-kosmotique.service" ]; + wantedBy = [ "timers.target" ]; + timerConfig.OnCalendar = "hourly"; + }; } // builtins.listToAttrs (map makeNodeScraperTimer (builtins.attrNames freifunkNodes) ++ (map makeLuftScraperTimer luftqualitaetStations) diff --git a/hosts/ticker/default.nix b/hosts/ticker/default.nix index 9a9f174b..f62a594e 100644 --- a/hosts/ticker/default.nix +++ b/hosts/ticker/default.nix @@ -276,6 +276,10 @@ url = "https://scrape.hq.c3d2.de/criticalmass.ics"; color = "#3FBF9F"; }; + kosmotique = { + url = "https://scrape.hq.c3d2.de/kosmotique.ics"; + color = "#dfd"; + }; }; }; };