Skip to content

Commit

Permalink
Add offsets for time comparison conditions in switch node
Browse files Browse the repository at this point in the history
  • Loading branch information
jensrossbach committed Sep 26, 2020
1 parent 23d82d3 commit 1d512e1
Show file tree
Hide file tree
Showing 6 changed files with 247 additions and 103 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ SOFTWARE.

## Attribution
The following icons have been taken from Node-RED provided nodes:
* Timer icon (delay node)
* Switch icon (switch node)
* Timer icon (Node-RED delay node)
* Switch icon (Node-RED switch node)

The following icons have been taken from Flaticon:
* Hour glass icon made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>
Expand Down
4 changes: 2 additions & 2 deletions nodes/delay.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
<input id="node-input-whenValue" type="hidden">
</div>
<div class="form-row">
<label for="node-input-offset"><i class="fa fa-arrows-h"></i> <span data-i18n="delay.label.offset"></span></label>
<label for="node-input-offset"><i class="fa fa-arrows-h"></i> <span data-i18n="node-red-contrib-chronos/chronos-config:common.label.offset"></span></label>
<input id="node-input-offset" style="width: 60px;">
<span style="padding-left: 10px;">
<input id="node-input-random" type="checkbox" style="width: auto; margin-top: 0px; margin-bottom: 1px;">
<label for="node-input-random" style="width: auto; margin-bottom: 0px;" data-i18n="delay.label.random"></label>
<label for="node-input-random" style="width: auto; margin-bottom: 0px;" data-i18n="node-red-contrib-chronos/chronos-config:common.label.random"></label>
</span>
</div>
</script>
Expand Down
4 changes: 3 additions & 1 deletion nodes/locales/en-US/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"time": "Time of Day",
"sun": "Sun Position",
"moon": "Moon Position",
"fullMessage": "full message"
"fullMessage": "full message",
"offset": "Offset",
"random": "Randomized"
},
"list":
{
Expand Down
4 changes: 1 addition & 3 deletions nodes/locales/en-US/delay.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
{
"outputPort": "delayed message",
"min": " min.",
"when": "When",
"offset": "Offset",
"random": "Randomized"
"when": "When"
},
"status":
{
Expand Down
Loading

0 comments on commit 1d512e1

Please sign in to comment.