Commit Graph
4 Commits
Author SHA1 Message Date
gurix 841e2e53d4 wyby sync: skip PIN collisions with foreign manual codes
Glutz codes are globally unique; a PIN already owned by another user
(e.g. manually set temporary code) is skipped with a clear WARNING
instead of failing the whole run. 41 tests green.
2026-11-12 11:56:24 +01:00
gurix d034d3088c Add structured logging via stdlib logging module
- INFO -> stdout (journal priority info), WARNING/ERROR -> stderr (err)
- no-validity-window skip for wyby users is now a WARNING (interface bug hint)
- setup_logging(force=True) rebinding handlers, covered by tests
- SyslogIdentifier in systemd unit; README logging section (German)
2026-10-23 09:01:37 +02:00
gurix d2a612a37e Add pytest suite, uv project setup and ruff compliance
- pyproject.toml: dev deps via uv (pytest, ruff), pytest and ruff config
- tests/: 24 tests for extend_pins (helpers + mocked main flow) and
  glutz_api.load_env; no network access
- translate source code to English per AGENT.md
- fix ruff findings (unused import, max() simplification, shebang)
2026-10-23 08:49:49 +02:00
gurix 6ab00fcb9f extend_pins: wyby-Buchungs-PINs auf tageweise Gueltigkeit erweitern
- glutz_api.py: vendorierter JSON-RPC-Client (aus glutz-eaccess-api)
- extend_pins.py: Dry-Run-Standard, --apply, --only-code fuer Schreibtests
  * wyby-Benutzer via Label-Muster '<Name> <6 Ziffern>'
  * Fenster aus Code-Gueltigkeit abgeleitet (Buchung +/- Puffer, Default 15 min)
  * idempotent: tageweise/persoenliche/abgelaufene Codes werden uebersprungen
- deploy/: systemd oneshot + Timer 05:40..23:40 stuendlich, deploy.sh
- README.md, .env.example ergaenzt
2026-10-22 21:45:29 +02:00