# ESP Scheduling [](https://components.espressif.com/components/espressif/esp_schedule) This component is used to implement scheduling for: - **One-shot events** with a relative time difference (e.g., 30 seconds into the future) - **Periodic events** based on a certain time[^1] on days of the week (e.g., every Monday or Wednesday) - **Periodic/one-shot events** on a certain time[^1] based on the date: - e.g., *(periodic)* every 23rd of January to April - e.g., *(one-shot)* 9th of August, 2026 - **Periodic events** at an offset from sunrise/sunset [^1]: By default, the time is w.r.t. UTC. If the timezone has been set, then the time is w.r.t. the specified timezone. ## Example Usage See the comprehensive example in [`examples/get_started/`](examples/get_started/) for a complete demonstration of all ESP Schedule features, including: - **Days of Week Scheduling** - Recurring events on specific weekdays - **Date-based Scheduling** - Monthly and yearly recurring events - **Relative Scheduling** - One-time delayed events - **Solar Scheduling** - Sunrise/sunset based events with location coordinates and day-of-week filtering - **Schedule Persistence** - NVS storage and recovery - **Callback Handling** - Trigger and timestamp callbacks - **Schedule Management** - Create, edit, enable, and disable schedules The example includes detailed documentation, build instructions, and demonstrates all schedule types with practical use cases.
796c33809a39dc57737a6c4c7cf9e869bbaaac18
idf.py add-dependency "espressif/esp_schedule^1.3.2"