The web server now runs a scheduler over schedules kept in SQLite
(~/.local/share/receipt-maker, outside the clone). A schedule is a
trigger, a receipt made of blocks, and options:
- Triggers: once, recurring (rrule-based, DST-safe), sun times,
reminders before calendar (ICS) events, RSS/JSON watchers, webhooks
with per-schedule secrets.
- Blocks, rendered fresh as one job: templated notes ({date},
{days_until:..}, rotating {choice}, trigger vars), QR, saved images,
random image, calendar agenda, feed headlines, dividers.
- Rules: quiet hours (hold/skip/ignore), daily cap, pause, catch-up
window for missed runs (never replayed), retries on connect failure
only; a mid-job drop (new PrinterDropped) is never resent.
receipt.py renders through composable Blocks (render_note/image/qr are
wrappers, output unchanged). Print history persists, with Print again.
The page moves to web/ with Print (note/image/QR + paper preview),
Schedules (presets, editor with live preview and next runs), History
and Settings tabs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
34 lines
700 B
Plaintext
34 lines
700 B
Plaintext
BEGIN:VCALENDAR
|
|
VERSION:2.0
|
|
PRODID:-//receipt-maker tests//EN
|
|
BEGIN:VEVENT
|
|
UID:standup@test
|
|
DTSTART;TZID=Europe/London:20261019T093000
|
|
DTEND;TZID=Europe/London:20261019T094500
|
|
RRULE:FREQ=DAILY
|
|
EXDATE;TZID=Europe/London:20261027T093000
|
|
SUMMARY:Team standup
|
|
LOCATION:Room 4
|
|
END:VEVENT
|
|
BEGIN:VEVENT
|
|
UID:holiday@test
|
|
DTSTART;VALUE=DATE:20261028
|
|
DTEND;VALUE=DATE:20261029
|
|
SUMMARY:Bank holiday
|
|
END:VEVENT
|
|
BEGIN:VEVENT
|
|
UID:dentist@test
|
|
DTSTART:20261026T140000Z
|
|
DTEND:20261026T150000Z
|
|
SUMMARY:Dentist
|
|
LOCATION:High St
|
|
END:VEVENT
|
|
BEGIN:VEVENT
|
|
UID:cancelled@test
|
|
DTSTART:20261026T160000Z
|
|
DTEND:20261026T170000Z
|
|
SUMMARY:Cancelled thing
|
|
STATUS:CANCELLED
|
|
END:VEVENT
|
|
END:VCALENDAR
|