Skip to content

Commit

Permalink
Minor update of mocha + improvement of package
Browse files Browse the repository at this point in the history
  • Loading branch information
devRoemer committed Jul 24, 2024
1 parent b3a4a64 commit 9009ad6
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 6 deletions.
84 changes: 84 additions & 0 deletions examples/Example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
[
{
"id": "f6f2187d.f17ca8",
"type": "tab",
"label": "Example-Flow",
"disabled": false,
"info": ""
},
{
"id": "5807e21a187c64ef",
"type": "inject",
"z": "f6f2187d.f17ca8",
"name": "Start",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 90,
"y": 160,
"wires": [
[
"1a6cf1049ca69de0"
]
]
},
{
"id": "1a6cf1049ca69de0",
"type": "time-switch",
"z": "f6f2187d.f17ca8",
"name": "",
"lat": "38.322151",
"lon": "-0.513703",
"startTime": "07:28",
"endTime": "goldenHour",
"startOffset": 0,
"endOffset": 0,
"x": 290,
"y": 160,
"wires": [
[
"020b98863791648b"
],
[
"5ac8121f8a73874b"
]
]
},
{
"id": "020b98863791648b",
"type": "debug",
"z": "f6f2187d.f17ca8",
"name": "Within time action",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 530,
"y": 120,
"wires": []
},
{
"id": "5ac8121f8a73874b",
"type": "debug",
"z": "f6f2187d.f17ca8",
"name": "Outside of time action",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 540,
"y": 200,
"wires": []
}
]
13 changes: 8 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@
"suncalc2": "^1.8.1"
},
"node-red": {
"version": ">=3.0.0",
"nodes": {
"time-range-switch": "index.js"
}
},
"engines": {
"node": ">=14.0"
},
"repository": {
"type": "git",
"url": "https://github.com/devRoemer/node-red-contrib-time-switch"
Expand All @@ -47,7 +51,7 @@
"eslint": "^8.57.0",
"eslint-config-biddster": "^0.6.0",
"eslint-config-prettier": "^8.10.0",
"mocha": "^10.6.0",
"mocha": "^10.7.0",
"node-red-contrib-mock-node": "^0.5.3",
"nyc": "^15.1.0",
"prettier": "^2.8.8",
Expand Down

0 comments on commit 9009ad6

Please sign in to comment.