Package Information
Released: this month
Downloads: 0 weekly / 0 monthly
Latest Version: 0.1.3
Author: huyphan
Available Nodes
Documentation generating…
Documentation
n8n-nodes-calendar-gate
This is an n8n community node that lets you stop or allow workflow execution based on calendar rules—such as static/recurring public holidays (01-01-*, 12-25-*), days of the week, date & time ranges, and daily time windows.
n8n is a fair-code licensed workflow automation platform.
Installation · Operations · Compatibility · Usage · Resources
Installation
Follow the installation guide in the n8n community nodes documentation.
- In n8n, go to Settings → Community Nodes.
- Select Install.
- Enter
n8n-nodes-calendar-gatein Enter npm package name. - Agree to the risks of using community nodes and select Install.
Operations
The Calendar Gate node evaluates incoming items against one or more calendar rules in a chosen IANA timezone:
- Gate Mode:
- Stop Workflow on Match: Halts execution if the calendar rules match (e.g., stop on public holidays or weekends).
- Allow Only on Match: Passes items through only when the calendar rules match (e.g., allow only during business hours).
- On Stop Action:
- Halt Branch (Return No Items): Silently stops downstream nodes by returning an empty output.
- Throw Error: Fails the execution with a descriptive error message.
- Match Logic:
- Any Rule Matches (OR): Triggers if at least one rule matches.
- All Rules Match (AND): Triggers only if every configured rule matches.
- Calendar Rules (add as many rules as needed):
- Public Holiday / Recurring Date: Comma-separated patterns supporting
MM-DD-*(e.g.01-01-*, 12-25-*),MM-DD, and exactYYYY-MM-DDdates. - Day of Week: Multi-select days (
Sunday–Saturday) with an optionalHH:mmstart/end time window. - Date & Time Range: Start and end
dateTimebounds. - Daily Time Window:
HH:mmstart and end times (supports overnight wrap-around such as22:00–06:00).
- Public Holiday / Recurring Date: Comma-separated patterns supporting
- Timezone: Any IANA timezone (e.g.,
UTC,America/Chicago,Asia/Ho_Chi_Minh). - Reference Date/Time: Leave empty to evaluate the current time, or pass an ISO timestamp expression (e.g.
{{$json.timestamp}}).
Compatibility
- Tested with n8n
1.x(n8nNodesApiVersion: 1). - Requires Node.js
>= 18(zero external runtime dependencies; uses built-inIntl.DateTimeFormat).
Usage
Example 1: Stop Workflow on Public Holidays and Weekends
- Set Gate Mode to
Stop Workflow on Match. - Set Match Logic to
Any Rule Matches (OR). - Set Timezone to your local IANA timezone (e.g.
America/Chicago). - Add a Public Holiday / Recurring Date rule with patterns:
01-01-*, 12-25-*. - Add a Day of Week rule and select
SaturdayandSunday.
Example 2: Run Only During Business Hours (Mon–Fri, 09:00–17:00)
- Set Gate Mode to
Allow Only on Match. - Add a Day of Week rule with
Monday–Friday, Start Time09:00, and End Time17:00.