Skip to content

Instantly share code, notes, and snippets.

View FlavioZanoni's full-sized avatar
:shipit:
Stuck in vim

Flávio Zanoni FlavioZanoni

:shipit:
Stuck in vim
View GitHub Profile

Cron-based scheduling for measurements and actuator actions


Overview

Add a SCHEDULE key to config.ini (loaded from SPIFFS) that allows any device (sensor or actuator) to define time-based behavior using cron syntax. Parsing is handled by espressif/supertinycron, an official ESP component. A FreeRTOS task is created per scheduled entry to evaluate and trigger the appropriate action at the specified time.