-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
💡 Feature Description
Implement a Smart Scheduled Maintenance Manager in WSD that enhances Emby’s built-in maintenance toggle with:
- Advanced scheduling capabilities
- Real-time detection of live sporting events
- Multi-channel user notifications (admin-configured)
- Logging and override controls
This would empower admins to prevent service disruptions during important content while still maintaining server hygiene.
📈 Motivation and Context
Emby currently provides a basic maintenance mode, but lacks intelligent (Luke'd) scheduling or awareness of real-time stream usage.
With WSD's broader ecosystem, this feature offers:
- Smarter maintenance timing to reduce user impact
- Proactive alerts delivered over trusted and secure channels
- Granular control for high-availability deployments (e.g., families watching live sports)
🛠️ Suggested Implementation (if known)
🗓 Scheduler System
- Toggle on/off per schedule
- One-time or recurring (daily/weekly)
- Define start/end window
- Alert offsets: 1h, 15m, 5m, completion
📡 Real-Time Sporting Event Detection
- Use
/Sessionsto detect Live TV - Parse stream titles or EPG data:
- Title patterns: “vs”, “Match”, “Final”, “Championship”
- Channel metadata/tag: “sports”
- If detected:
- Auto-delay maintenance
- Notify admin for manual override
📬 Admin-Defined Notification Channels
- 🔐 Signal via
signal-cli - 📩 Email (SMTP or API)
- 📱 Android app push notifications (via FCM)
- 💬 WhatsApp (via API)
Templates & Usage
- Scheduled downtime
- Delay due to live stream
- Post-maintenance restoration
All messages logged, with per-channel delivery status.
🎛 Optional Admin Controls
- Override delay with confirmation prompt
- Trigger notifications via UI or mobile app
- Toggle new session lockout during maintenance
📊 Maintenance Logs (Always Enabled)
| Timestamp | Event | Affected Users | Notes |
|---|---|---|---|
| 2026-02-03 01:00 | Maintenance Started | 3 kicked | No live streams |
| 2026-02-04 02:00 | Delayed (live event) | 0 | “Super Bowl 2026” on ESPN |
| 2026-02-04 02:45 | Maintenance Manual Start | 1 | Admin override via Android |
🖼️ Visuals or References (optional)
Example Signal message:
🔧 Scheduled Maintenance:
Server will enter maintenance mode at 2:00 AM (Server Time Zone e.g GMT) for approx. XX minutes/hours. Active streams will be paused or ended.
Live delay notification:
⏳ Maintenance delayed:
Detected active stream: “Lakers vs Heat - Game 7”
Next attempt in 30 minutes.
🔗 Related Issues or Discussions
- [Feature]: Add Signal-based SMS notification support to WSD using signal-cli #6
- [Feature]: Companion Android App for WSD #19
- Geo-Lock/IP enforcement FR
- [Feature]: Admin Playback Mirror via API #20
🧩 Additional Notes
- Maintenance block should enforce kick or new session denial after buffer window
- Logs should be exportable and filterable
- WSD should allow third-party integrations to hook into scheduled tasks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request