scrape, ticker: add mkz-programm
This commit is contained in:
parent
8c2c3baf21
commit
21a97dd1a9
|
@ -112,11 +112,11 @@
|
||||||
"scrapers": {
|
"scrapers": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1631926493,
|
"lastModified": 1634140128,
|
||||||
"narHash": "sha256-/Liy5ehtBFts2Jgn04/+N8UrW1emct3v6a6yl5JmWWA=",
|
"narHash": "sha256-ShrH4lvc/uc9CRQZJWfdBBbNGqgdtN9CYujQnRlEQy0=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "d7d6c3e8b541cadfd57f1ba15edcfdee1c7151a1",
|
"rev": "d8434f916eb2f9406396de43a05a5557cbc79bc2",
|
||||||
"revCount": 35,
|
"revCount": 37,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.c3d2.de/astro/scrapers.git"
|
"url": "https://gitea.c3d2.de/astro/scrapers.git"
|
||||||
},
|
},
|
||||||
|
|
|
@ -120,6 +120,16 @@ in {
|
||||||
Group = config.users.users.scrape.group;
|
Group = config.users.users.scrape.group;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
scrape-mkz-programm = {
|
||||||
|
script = ''
|
||||||
|
${scraperPkgs.mkz-programm}/bin/mkz-programm > /tmp/mkz-programm.ics
|
||||||
|
mv /tmp/mkz-programm.ics ${config.users.users.scrape.home}/
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
User = config.users.users.scrape.name;
|
||||||
|
Group = config.users.users.scrape.group;
|
||||||
|
};
|
||||||
|
};
|
||||||
} // builtins.listToAttrs
|
} // builtins.listToAttrs
|
||||||
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
(map makeNodeScraper (builtins.attrNames freifunkNodes) ++
|
||||||
map makeLuftScraper luftqualitaetStations
|
map makeLuftScraper luftqualitaetStations
|
||||||
|
@ -164,6 +174,11 @@ in {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnCalendar = "hourly";
|
timerConfig.OnCalendar = "hourly";
|
||||||
};
|
};
|
||||||
|
scrape-mkz-programm = {
|
||||||
|
partOf = [ "scrape-mkz-programm.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)
|
||||||
|
|
|
@ -121,5 +121,9 @@ with lib;
|
||||||
url = "https://talks.datenspuren.de/ds21/schedule.ics";
|
url = "https://talks.datenspuren.de/ds21/schedule.ics";
|
||||||
color = "#40A940";
|
color = "#40A940";
|
||||||
};
|
};
|
||||||
|
medienkulturzentrum = {
|
||||||
|
url = "https://scrape.hq.c3d2.de/mkz-programm.ics";
|
||||||
|
color = "#DF3FBF";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue