1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(urlwatch): move to makanek, watch dlf

This commit is contained in:
2020-11-14 13:23:17 +01:00
parent cf48d89ea6
commit 2915594238
3 changed files with 24 additions and 8 deletions

View File

@@ -10,10 +10,26 @@ let
{ {
name = "Corona-Verordnung"; name = "Corona-Verordnung";
url = "https://www.berlin.de/corona/massnahmen/verordnung/"; url = "https://www.berlin.de/corona/massnahmen/verordnung/";
filter = [
{
css = "[role=main]";
}
"html2text"
"strip"
];
}
{
name = "Christian-Metz-Blamage";
url = "https://www.deutschlandfunk.de/meine-nacht-schlaeft-nicht-pflanze-mich-nicht-in-dein-herz.700.de.html?dram:article_id=486475";
filter = [
{
element-by-id = "content";
}
];
} }
]; ];
configFile = pkgs.writeJSON "urlwatch.yaml" { configFile = pkgs.writeText "urlwatch.yaml" (builtins.toJSON {
display = { display = {
error = true; error = true;
new = true; new = true;
@@ -40,18 +56,18 @@ let
color = true; color = true;
enabled = true; enabled = true;
}; };
telegram = { # telegram = {
enabled = false; # enabled = false;
bot_token = lib.strings.fileContents <system-secrets/telegram/kmein.token>; # bot_token = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
chat_id = [ "18980945" ]; # chat_id = [ "18980945" ];
}; # };
# text = { # text = {
# details = true; # details = true;
# footer = true; # footer = true;
# line_length = 75; # line_length = 75;
# }; # };
}; };
}; });
in in
{ {
users.extraUsers.urlwatch = { users.extraUsers.urlwatch = {

View File

@@ -11,6 +11,7 @@ in
<niveum/configs/nextcloud.nix> <niveum/configs/nextcloud.nix>
<niveum/configs/save-space.nix> <niveum/configs/save-space.nix>
<niveum/configs/version.nix> <niveum/configs/version.nix>
<niveum/configs/urlwatch.nix>
<niveum/configs/gitea.nix> <niveum/configs/gitea.nix>
<niveum/modules/retiolum.nix> <niveum/modules/retiolum.nix>
]; ];

View File

@@ -16,7 +16,6 @@ in {
<niveum/configs/version.nix> <niveum/configs/version.nix>
<niveum/configs/traadfri.nix> <niveum/configs/traadfri.nix>
<niveum/configs/matterbridge.nix> <niveum/configs/matterbridge.nix>
<niveum/configs/urlwatch.nix>
<niveum/modules/retiolum.nix> <niveum/modules/retiolum.nix>
<niveum/modules/telegram-bot.nix> <niveum/modules/telegram-bot.nix>
{ {