1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 11:31:09 +01:00

6 Commits

4 changed files with 23 additions and 2 deletions

View File

@@ -54,6 +54,9 @@ in
108586 # Griechische Religion
107988 # Balkanindogermanisch
108312 # Altnordisch
107281 # NLP
108736 # Grammatiktheorie
109438 # Warum klingt Orkisch böse
];
download_submissions = true;
download_descriptions = true;

View File

@@ -25,7 +25,15 @@ let
{
name = "Tatort";
url = "https://www.daserste.de/unterhaltung/krimi/tatort/vorschau/index.html";
filter = [ "html2text" "strip" ];
filter = [
"html2text"
"strip"
{
shellpipe = ''
${pkgs.gnused}/bin/sed 's/ / /g;s/))/&\n/g;s/ \+/ /g'
'';
}
];
}
{
name = "Kratylos";

View File

@@ -92,6 +92,16 @@ in {
units = "metric";
};
}
{
block = "custom";
interval = 60 * 60;
command = let inherit (import <niveum/configs/spacetime.nix>) location; in pkgs.writers.writeDash "sun-times" ''
result="$(${pkgs.curl}/bin/curl -sSL "https://api.sunrise-sunset.org/json?formatted=0&lat=${toString location.latitude}&lng=${toString location.longitude}")"
sunrise="$(echo "$result" | ${pkgs.jq}/bin/jq -r .results.sunrise)"
sunset="$(echo "$result" | ${pkgs.jq}/bin/jq -r .results.sunset)"
echo "🌅 $(${pkgs.coreutils}/bin/date +%R -d "$sunrise") 🌇 $(${pkgs.coreutils}/bin/date +%R -d "$sunset")"
'';
}
{
block = "custom";
interval = 60 * 60;