- wyby_client.py: headless login to admin.wyby.ch (OIDC auth-code flow with PKCE, cookie session) + booking extraction from the scheduler API (GetWallpaperData); PIN = last 6 digits of transaction Number; rental days derived from RentingStartDate / AllotmentRentingEndDate (exclusive midnight) - wyby_sync.py: for every upcoming booking ensure Glutz user, group membership and PIN with full-day validity; idempotent, self-healing against wyby's own late interface runs; dry-run default - deploy: wyby-sync.service + 15-min timer (24/7); extend_pins stays hourly as safety net - 39 tests; requests added via uv (available system-wide for the oneshot)
11 lines
210 B
SYSTEMD
11 lines
210 B
SYSTEMD
[Unit]
|
|
Description=Alle 15 Minuten wyby-Sync (auch nachts: Buchungen koennen jederzeit erfasst werden)
|
|
|
|
[Timer]
|
|
OnCalendar=*-*-* *:00/15
|
|
Persistent=true
|
|
Unit=wyby-sync.service
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|