chore: Rename project to service-update-alerts

Update project metadata, docs, and systemd unit names to match the new service-update-alerts naming.
This commit is contained in:
Jeena 2026-03-12 15:50:38 +00:00
parent 413766ed2b
commit 501a84e0a9
8 changed files with 19 additions and 19 deletions

View file

@ -1,4 +1,4 @@
# Backlog: check-for-updates # Backlog: service-update-alerts
## US-01 - Curated Webservice Dataset ## US-01 - Curated Webservice Dataset

View file

@ -1,4 +1,4 @@
# check-for-updates # service-update-alerts
Small Python script to compare running service versions against upstream releases. Small Python script to compare running service versions against upstream releases.
@ -57,14 +57,14 @@ Copy the unit files and enable the timer:
```bash ```bash
mkdir -p ~/.config/systemd/user mkdir -p ~/.config/systemd/user
cp systemd/check-for-updates.service ~/.config/systemd/user/ cp systemd/service-update-alerts.service ~/.config/systemd/user/
cp systemd/check-for-updates.timer ~/.config/systemd/user/ cp systemd/service-update-alerts.timer ~/.config/systemd/user/
systemctl --user daemon-reload systemctl --user daemon-reload
systemctl --user enable --now check-for-updates.timer systemctl --user enable --now service-update-alerts.timer
``` ```
View logs: View logs:
```bash ```bash
journalctl --user -u check-for-updates.service journalctl --user -u service-update-alerts.service
``` ```

View file

@ -536,7 +536,7 @@ def send_matrix_message(message: str, timeout: float) -> None:
fetch_response( fetch_response(
url, url,
timeout=timeout, timeout=timeout,
user_agent="check-for-updates", user_agent="service-update-alerts",
extra_headers=headers, extra_headers=headers,
data=payload, data=payload,
method="PUT", method="PUT",
@ -556,7 +556,7 @@ def join_matrix_room(homeserver: str, room_id: str, token: str, timeout: float)
fetch_response( fetch_response(
url, url,
timeout=timeout, timeout=timeout,
user_agent="check-for-updates", user_agent="service-update-alerts",
extra_headers=headers, extra_headers=headers,
data=b"{}", data=b"{}",
method="POST", method="POST",
@ -570,7 +570,7 @@ def send_uptime_kuma_ping(timeout: float) -> None:
if not push_url: if not push_url:
return return
try: try:
fetch_response(push_url, timeout=timeout, user_agent="check-for-updates") fetch_response(push_url, timeout=timeout, user_agent="service-update-alerts")
except Exception as exc: except Exception as exc:
print(f"Uptime Kuma push failed: {exc}", file=sys.stderr) print(f"Uptime Kuma push failed: {exc}", file=sys.stderr)
@ -580,7 +580,7 @@ def main() -> int:
parser.add_argument("--config", default="services.yaml", help="Path to services YAML") parser.add_argument("--config", default="services.yaml", help="Path to services YAML")
parser.add_argument("--all", action="store_true", help="Show all services") parser.add_argument("--all", action="store_true", help="Show all services")
parser.add_argument("--timeout", type=float, default=10.0, help="HTTP timeout in seconds") parser.add_argument("--timeout", type=float, default=10.0, help="HTTP timeout in seconds")
parser.add_argument("--user-agent", default="check-for-updates/1.0", help="HTTP user agent") parser.add_argument("--user-agent", default="service-update-alerts/1.0", help="HTTP user agent")
args = parser.parse_args() args = parser.parse_args()
load_dotenv() load_dotenv()

View file

@ -3,7 +3,7 @@ requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[project] [project]
name = "check-for-updates" name = "service-update-alerts"
version = "0.1.0" version = "0.1.0"
description = "Check running service versions against upstream releases" description = "Check running service versions against upstream releases"
requires-python = ">=3.10" requires-python = ">=3.10"

View file

@ -1,7 +0,0 @@
[Unit]
Description=Check hosted services for updates
[Service]
Type=oneshot
WorkingDirectory=%h/Projects/check-for-updates
ExecStart=%h/Projects/check-for-updates/.venv/bin/python %h/Projects/check-for-updates/check_updates.py --config %h/Projects/check-for-updates/services.yaml

View file

@ -0,0 +1,7 @@
[Unit]
Description=Check hosted services for updates
[Service]
Type=oneshot
WorkingDirectory=%h/Projects/service-update-alerts
ExecStart=%h/Projects/service-update-alerts/.venv/bin/python %h/Projects/service-update-alerts/check_updates.py --config %h/Projects/service-update-alerts/services.yaml

View file

@ -16,7 +16,7 @@ def test_live_service_versions():
failures = [] failures = []
for service in services.values(): for service in services.values():
result = check_service(service, timeout=20, user_agent="check-for-updates-test") result = check_service(service, timeout=20, user_agent="service-update-alerts-test")
if service.upstream_latest_version_url and not result["latest"]: if service.upstream_latest_version_url and not result["latest"]:
failures.append(f"{service.name}: latest version missing ({result['latest_error']})") failures.append(f"{service.name}: latest version missing ({result['latest_error']})")
if service.current_version_url and not result["current"]: if service.current_version_url and not result["current"]: