From 945be6422e32304ee1da4ffa4276604915da612b Mon Sep 17 00:00:00 2001 From: Alex Tau Date: Sat, 16 Aug 2025 12:11:42 +0300 Subject: [PATCH 1/5] bump ver to v1.1.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5317964..6f55eba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lego-monitoring" -version = "1.0.0" +version = "1.1.0" description = "Monitoring software for the lego server" readme = "README.md" requires-python = ">=3.12" From ce363c60cabd28a9a4ad4507a59490bd17466f3d Mon Sep 17 00:00:00 2001 From: Alex Tau Date: Tue, 2 Sep 2025 14:14:06 +0300 Subject: [PATCH 2/5] clean up a bit --- src/lego_monitoring/alerting/sender.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lego_monitoring/alerting/sender.py b/src/lego_monitoring/alerting/sender.py index 8601172..11741ef 100644 --- a/src/lego_monitoring/alerting/sender.py +++ b/src/lego_monitoring/alerting/sender.py @@ -1,15 +1,13 @@ import logging -from socket import gethostname from telethon import TelegramClient from telethon.sessions import MemorySession from uplink import AiohttpClient -from ..checks.utils import format_for_healthchecks_slug from ..core import cvars from .alert import Alert from .clients.healthchecks import HealthchecksClient -from .enum import SEVERITY_TO_EMOJI, AlertType, Severity +from .enum import SEVERITY_TO_EMOJI, Severity async def get_tg_client() -> TelegramClient: @@ -23,9 +21,7 @@ async def get_tg_client() -> TelegramClient: def get_healthchecks_client() -> HealthchecksClient: config = cvars.config.get() base_url = config.alert_channels.healthchecks.pinging_api_endpoint - client = HealthchecksClient( - base_url=config.alert_channels.healthchecks.pinging_api_endpoint, client=AiohttpClient() - ) + client = HealthchecksClient(base_url=base_url, client=AiohttpClient()) return client From 2c6e804959791872a2d6bb8e7ffe5c7f92bf5ad9 Mon Sep 17 00:00:00 2001 From: Alex Tau Date: Fri, 12 Sep 2025 18:14:25 +0300 Subject: [PATCH 3/5] update nixpkgs for vulnix 1.12.0 --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 1cc4fe8..35547eb 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1749086602, - "narHash": "sha256-DJcgJMekoxVesl9kKjfLPix2Nbr42i7cpEHJiTnBUwU=", + "lastModified": 1757545623, + "narHash": "sha256-mCxPABZ6jRjUQx3bPP4vjA68ETbPLNz9V2pk9tO7pRQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4792576cb003c994bd7cc1edada3129def20b27d", + "rev": "8cd5ce828d5d1d16feff37340171a98fc3bf6526", "type": "github" }, "original": { From 8aa4c1d4dae6286f6a5b8122a6f3fe823a9940f8 Mon Sep 17 00:00:00 2001 From: Alex Tau Date: Sun, 18 Jan 2026 16:00:10 +0300 Subject: [PATCH 4/5] add ups event monitoring to description --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fa48578..38fc625 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ Simple system monitoring service. Sends alerts in Telegram and/or reports status to [Healthchecks](https://healthchecks.io/). Currently supports monitoring: * CPU/RAM/network usage * temperature readings +* UPS events * [vulnix](https://github.com/nix-community/vulnix) readings (NixOS only) ## Setup From ad1d956cc82c4d106f094f924f91a239836825a7 Mon Sep 17 00:00:00 2001 From: Alex Tau Date: Sun, 18 Jan 2026 16:02:59 +0300 Subject: [PATCH 5/5] update version in pyproject --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4acf0bd..ad0fa88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lego-monitoring" -version = "1.1.1" +version = "1.2.0" description = "Monitoring software for the lego server" readme = "README.md" requires-python = ">=3.12"