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
@FlavioZanoni
FlavioZanoni / gen-sk-key.sh
Created September 20, 2026 16:41
Generate resident SSH key
#!/bin/sh
set -e
read -p "Key name (file will be ~/.ssh/id_ed25519_sk_NAME): " name
read -p "Application suffix (empty to be the same as name): " app
[ -z "$app" ] && app="$name"
read -p "Comment (-C): " comment
ssh-keygen -t ed25519-sk \
-f "$HOME/.ssh/id_ed25519_sk_${name}" \

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.