You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add optional sleep time feature to webhooktimer
Add optional sleep time feature - a time period during which webhooks
won't be triggered even if timer expires.
Changes:
- Add SleepTimeStart and SleepTimeEnd fields to TimerEntry model (HH:MM format)
- Update SQLite database schema with new columns
- Add isSleepTime() helper to check if current time falls within sleep window
- Handle sleep times that span midnight (e.g., 23:00-06:00)
- Use Europe/Berlin timezone for time calculations
- Update all SQL queries (Create, Update, Toggle, StartAll)
- Add UI in timer modal with checkbox toggle and time inputs
- Update JavaScript to handle sleep time in form submission and editing
row:=models.DB.QueryRow("SELECT id, name, webhook_url, mode, fixed_interval, min_interval, max_interval, active, last_execution, webhook_timeout, method, type FROM timers WHERE id = ?", id)
0 commit comments