node-red-contrib-chronos 1.23 #162
jensrossbach
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Welcome to the new release 1.23 of node-red-contrib-chronos! It contains some new features as well as some bug fixes and improvements. See the most noteworthy changes below and be aware about breaking changes that were introduced for JSONata expressions in this release.
Some properties in JSONata expressions have been turned into expression variables, see breaking changes in release notes for details.
Passive trigger mode for 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. This allows for instance to operate a state node and a scheduler node in tandem processing having the scheduler node acting as external timer for the state node. The state node will note schedule any own timers in this (except timers for a specified timeout in the "set" command of an input message).
The new mode also introduces the new command "trigger" for input messages which must be used by external trigger sources.
State identifier retrieval
The new command "getid" can be used to query the identifier of the currently active state of a state node. In order to be able to distinguish the response message from normal state change output messages, the response message to the "getid" command contains the original
msg.topic
property with "getid".States with manual triggers
It's now possible to define a state that will never be automatically triggered by the state node. Such states do not have a trigger time associated and can only be triggered manually via an input message.
Common expression variables for all JSONata expressions
All JSONata expressions can now access the common expression variables
$node
(containing the name of the node) and$config
(containing information about the associated configuration node).Extended time input format for time change node
Time change node now accepts the extended format for time input from properties and variables.
Beta Was this translation helpful? Give feedback.
All reactions