Skip to content

Releases: jensrossbach/node-red-contrib-chronos

Release 1.25.5

20 Jul 15:06
Compare
Choose a tag to compare

Fixed

  • Fixed a regression which caused the time of the next event shown in the status of scheduler node to be displayed as 'Invalid date'.

NPM SHA-Sum: 2b182ec307d48cbcf0f265a0e009841a5807831b

Release 1.25.4

20 Jul 09:09
Compare
Choose a tag to compare

Changed

  • Improved validation of properties configured in the UI already before flow deployment for all nodes.
  • Internal code optimizations and improved user experience for some nodes.

Fixed

  • Fixed non working "new" timestamp property types which have been introduced by Node-RED 4.0 in scheduler and state nodes.

NPM SHA-Sum: c322c22354c2e55e20da8989c1a6ca78444e5841

Release 1.25.3

08 Jul 18:05
Compare
Choose a tag to compare

Fixed

  • Fixed a bug that caused scheduler node to crash when trying to send next event message and being configured to have only a single output port and an next event port.

NPM SHA-Sum: 39a48ac0d9c1b1e59c27c6bb1c5282caec898ed1

Release 1.25.2

30 Jun 14:49
Compare
Choose a tag to compare

Fixed

  • Fixed bug preventing time change node to save configuration changes when being in moment mode.

NPM SHA-Sum: 663b72b8162ac0338ed011e5a9935fad4e046bc7

Release 1.25.1

29 Jun 09:17
Compare
Choose a tag to compare

Fixed

  • Fixed inconsistent translation of time part in status text when using time of day.

NPM SHA-Sum: 711d7a002096c44ed27c77705bee04c1e89f8874

Release 1.25.0

16 Jun 15:49
Compare
Choose a tag to compare

‼️ Breaking Changes ‼️

  • Time switch and filter node operator after previously had the meaning of "equal or later than" and now has the meaning of "later than" only. The new operator since takes over the meaning of "equal or later than".
  • The JSONata functions $isBetween() and $isOutside() for time switch and filter nodes have two additional, non-optional arguments precision1 and precision2 denoting the precisions for the two times to compare.

Added

  • Added possibility to specify precision for time comparison in time switch and filter nodes.
  • Added new operators ==, !=, until and since to time switch and filter nodes.
  • Added support for durations in time change node.
  • Added possibility to retrieve amount of time for change actions set, add and subtract from environment/context variables or message properties in time change node.

Changed

  • Multiple grouped events in scheduler node are now triggered at a full second.
  • ESLint configuration has been migrated to new flat configuration format.

Fixed

  • Fixed non-applied but configured offset for sun/moon times in delay node if point in time is in the past.

NPM SHA-Sum: 6718b0c8a8d5d0ef78a676dddabd843d1ebacbba

Release 1.24.0

12 May 13:13
Compare
Choose a tag to compare

Added

  • Added possibility to delay any message sent by the scheduler node on node start by an arbitrary duration.
  • Added new commands "pause" and "resume" to state nodes for temporarily suspending automatic state changes.
  • Added support for basic and extended input formats from environment/context variables to scheduler nodes (limited to times only).
  • Added support for basic and extended input formats from environment/context variables to state nodes (limited to times only).
  • Added support for basic and extended input formats from environment/context variables for until time to repeat nodes.
  • Added support for retrieving custom repetition data and until time from arbitrary message properties to repeat nodes.
  • Added support for retrieving custom delay data from arbitrary message properties to delay nodes.
  • Added support for changing the time zone / UTC offset of the target's local time in the convert rule of time change nodes.
  • Added example flows for the state node.

Changed

  • Optimized resource usage of the scheduler node by starting only a single timer for the next upcoming event instead of one timer per enabled event.
  • Removed usage of Node-RED event flows:started and replaced it with a configurable fixed delay on node start (see also above).
  • Improved fetching of environment variables for all nodes in case the user specified the variable in the form ${VAR_NAME} instead of variable name only.

Fixed

  • Fixed non-working localization of date/time strings (please note that localization is limited to supported languages and their regions).
  • Fixed wrong interpretation of numerical input of milliseconds since midnight in some areas.

NPM SHA-Sum: 5aa3d92e1eed4f9d40fdd380351d7372e56e3da3

Release 1.23.0

27 Apr 15:32
Compare
Choose a tag to compare

‼️ Breaking Changes ‼️

  • Property name in JSONata expressions of scheduler and state node has been renamed to node and turned into an expression variable, therefore must be accessed as $node now.
  • Property config in JSONata expressions of scheduler and state node has been turned into an expression variable and must therefore be accessed as $config now.
  • Property schedule in JSONata expressions of scheduler node has been renamed to event and turned into an expression variable, therefore must be accessed as $event now.
  • Property state in JSONata expressions of state node has been turned into an expression variable and must therefore be accessed as $state now.

Added

  • Added expression variables $node and $config to all available JSONata expressions.
  • Added possibility to configure states without associated trigger time in state nodes. Such states can only be activated manually from outside via an input message and command "set".
  • Extended possible input formats of time properties for time change nodes. They now match the formats that have already been introduced for time switch and filter nodes in the last release.
  • Added passive trigger mode to state nodes. In this mode, the state node will not actively change states upon reaching their trigger times. Instead, state changes must be triggered by an external trigger source via input message.
  • Added new command "trigger" for input messages of state nodes. This command accompanies the new passive trigger mode and is used to trigger state changes from outside.
  • Added new command "getid" for input messages of state nodes. This command can be used to query the identifier of the currently active state.

Changed

  • Turned some properties in JSONata expressions to expression variables, see breaking changes above for details.
  • Renamed some properties/variables in JSONata expressions, see breaking changes above for details.
  • Changed the color of the stateless state in state nodes from yellow to grey in the Node-RED editor.

Fixed

  • Fixed a potential crash of state nodes when being in stateless state and a state is activated from outside.

NPM SHA-Sum: b42801560ea27705a4ec7546aba7229e9cde0c01

Release 1.22.1

14 Apr 15:51
Compare
Choose a tag to compare

Fixed

  • Fixed a problem with parsing time-only strings.

NPM SHA-Sum: 8bbcca0d80b33ab226159cf1ba76d7be3adf9021

Release 1.22.0

14 Apr 12:48
Compare
Choose a tag to compare

Added

  • Added possibility to retrieve time for operators before, after, between and outside of time switch and time filter nodes separately from environment variables, context variables or message properties.
  • Extended format of time input from environment variables, context variables or message properties (not all formats are applicable in all areas):
    • Number as milliseconds elapsed since the UNIX epoch
    • Number as milliseconds elapsed since midnight if value is smaller than 86.400.000
    • String containing time in 12 or 24 hour format
    • String containing sun time
    • String containing moon time
    • String containing custom sun time
    • String containing date and time in region-specific format
    • String containing date and time in ISO 8601 format
    • String containing date and sun time
    • String containing date and moon time
    • String containing date and custom sun time
  • Added regional date/time formats to predefined formats in convertion rule of change node:
    • regional date and time
    • regional date only
    • regional time only

Changed

  • Moved predefined formats in convertion rule of change node one level down under new item "predefined format".
  • Changed look of expand/collapse buttons in time switch and time filter nodes to be more intuitive (including tooltip).
  • Minor improvements to the README file.

Fixed

  • Fixed a bug that prevents repetition to start when until time without explicitly specified date is supposed to be on the next day.

NPM SHA-Sum: 341407aa70266e1efc1e87d061c1f5968098120d