UNPKG

node-red-contrib-chronos

Version:

Time-based Node-RED scheduling, repeating, queueing, routing, filtering and manipulating nodes

109 lines (103 loc) 4.58 kB
<!-- Copyright (c) 2020 - 2026 Jens-Uwe Rossbach This code is licensed under the MIT License. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> <script type="text/html" data-help-name="chronos-config"> <p> Common configuration for all flow nodes. </p> <h3>Details</h3> <p> This configuration holds common configuration for all fllow nodes like e.g. the geographical location in form of latitude and longitude, the time zone if required to be different from the host running Node-RED, the behavior on daylight saving change and custom sun positions. </p> <p> For more information, please refer to the detailed documentation in the <a href="https://github.com/jensrossbach/node-red-contrib-chronos/wiki/Configuration-Node">repository wiki</a>. </p> <h3>Configuration</h3> <dt>Name</dt> <dd> The name of the configuration (optional). </dd> <dt>Latitude</dt> <dd> The latitude as floating point value between -90° and 90° or the name of an environment or global context variable containing the latitude. </dd> <dt>Longitude</dt> <dd> The longitude as floating point value between -180° and 180° or the name of an environment or global context variable containing the longitude. </dd> <dt>Location Detection</dt> <dd> Press this button to automatically detect your position and fill the latitude and longitude fields. The button is only visible if your browser supports the geolocation feature. You will be asked for allowance of locality determination. </dd> <dt>Time Zone</dt> <dd> <p> The name of a valid <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones">time zone identifier</a> or the name of an environment or global context variable containing the time zone identifier. If omitted, the time zone configured on the host which runs Node-RED is used. </p> <p> <b>Note:</b> A programmatic calculation of the time zone from the geographical coordinates is not performed! </p> </dd> <dt>Behavior when daylight saving time starts</dt> <dd> The behavior when daylight saving time starts, i.e. skip, shift or insert trigger(s) during the missing hour in the appropriate night. Currently, this affects only cron table mode of scheduler node and advanced mode of repeat node. </dd> <dt>Skip repeated hour at end of daylight saving time</dt> <dd> If selected, the repeated hour in the night when daylight saving time ends is skipped. Currently, this affects only cron table mode of scheduler node and advanced mode of repeat node. </dd> <dt>Sun Positions</dt> <dd> List of user-defined sun positions. New entries can be added using the button below the list. Existing entries can be reordered or deleted. Each entry in the list can be configured as follows: <ul> <li> The solar zenith angle above (positive value) or below (negative value) the horizon in degrees. </li> <li> The name of the position for rising sun. </li> <li> The name of the position for setting sun. </li> </ul> Names can be composed of letters, digits and underscores and must be unique. </dd> </script>