Skip to content

cgjgh/node-red-dashboard-2-ui-scheduler

Repository files navigation

Scheduler Node for Node-RED Dashboard

This repository contains a Scheduler Node for Node-RED Dashboard 2.0. This node allows you to schedule the injection of payloads from dashboard UI to start flows at specified times or intervals.

Important Note

This node is still in beta and is not yet ready for production use. Any contribution or feedback is welcome.

Features

  • Integration with Node-RED Dashboard 2.0 for UI-based schedule management.
  • Schedule events by minute, hour, day, week, month, or yearly periods.
  • Support for solar events (e.g., sunrise, sunset).
  • Use cron expressions and cron builder in UI to specify schedules.
  • Persistence of schedules to local file system or Node-RED context stores.
  • Supports timespans (e.g., "from 10:00 AM to 12:00 PM") or durations (e.g., "for 5 minutes").
  • Supports using Solar with Time schedules when adding a timespan schedule. (e.g., "from 5:00 AM to Sunrise")
  • Optionally send current state of timespan or duration schedules at a specified interval.
  • Supports custom payloads for schedules.

Overview

Details Adding New Schedule

Installation

You can install this node directly from the "Manage Palette" menu in the Node-RED interface.

Alternatively, run the following command in your Node-RED user directory - typically ~/.node-red on Linux or %HOMEPATH%\.nodered on Windows:

npm install @cgjgh/node-red-dashboard-2-ui-scheduler

Usage

  • Add a scheduler node to your flow.
  • Open the node's configuration dialog and optionally configure the timezone, location from map, and persistence options.
  • Open the dashboard and you will see an empty scheduler.
  • Click the plus sign at the top right corner of the node to create a new schedule.

Acknowledgements

Inspired by: node-red-contrib-ui-time-scheduler

This node draws heavily on the work of node-red-contrib-cron-plus by Steve-Mcl. Tremendous thanks for the outstanding work on this.