Skip to content

Commit

Permalink
Node-mon
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Nov 25, 2024
1 parent 8963624 commit a1215f3
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 19 deletions.
36 changes: 32 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"api": "documentation build HAP-NodeRed.js -f md --config docs/documentation.yml > docs/API.md",
"document": "./gh-md-toc --insert README.md; rm README.md.orig.* README.md.toc.*"
"document": "./gh-md-toc --insert README.md; rm README.md.orig.* README.md.toc.*",
"watch": "nodemon"
},
"keywords": [
"node-red",
Expand All @@ -22,7 +23,8 @@
"url": "git+https://github.com/NorthernMan54/node-red-contrib-homebridge-automation.git"
},
"devDependencies": {
"documentation": "^14.0.1"
"documentation": "^14.0.1",
"nodemon": "^3.1.4"
},
"dependencies": {
"better-queue": ">=3.8.12",
Expand All @@ -34,5 +36,31 @@
"bugs": {
"url": "https://github.com/NorthernMan54/node-red-contrib-homebridge-automation/issues"
},
"homepage": "https://github.com/NorthernMan54/node-red-contrib-homebridge-automation#readme"
}
"homepage": "https://github.com/NorthernMan54/node-red-contrib-homebridge-automation#readme",
"nodemonConfig": {
"watch": [
"src"
],
"ext": "js,html",
"ignore": [],
"exec": "DEBUG=hapNodeRed* ~/npm/bin/node-red -u test/node-red",
"signal": "SIGTERM",
"env": {
"NODE_OPTIONS": "--trace-warnings"
}
},
"jest": {
"testEnvironment": "node",
"modulePathIgnorePatterns": [],
"coverageReporters": [
"lcov"
],
"collectCoverageFrom": [
"src/**",
"!src/accessories/**",
"!src/lib/definitions/generate-definitions.ts",
"!src/lib/definitions/generator-configuration.ts",
"!src/test-utils"
]
}
}
4 changes: 2 additions & 2 deletions test/node-red/.config.nodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
},
"node-red-contrib-homebridge-automation": {
"name": "node-red-contrib-homebridge-automation",
"version": "0.1.12",
"version": "0.1.11",
"local": true,
"user": false,
"nodes": {
Expand All @@ -446,7 +446,7 @@
"local": true,
"user": false,
"module": "node-red-contrib-homebridge-automation",
"file": "/Users/sgracey/Code/node-red-contrib-homebridge-automation/test/node-red/node_modules/node-red-contrib-homebridge-automation/src/HAP-NodeRed.js"
"file": "/Users/sgracey/Code/node-red-contrib-homebridge-automation/test/node-red/node_modules/node-red-contrib-homebridge-automation/HAP-NodeRed.js"
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions test/node-red/.config.nodes.json.backup
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,7 @@
"hb-event",
"hb-resume",
"hb-status",
"hb-control",
"hb-configNode"
"hb-control"
],
"enabled": true,
"local": true,
Expand Down
20 changes: 12 additions & 8 deletions test/node-red/.flows.json.backup
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,14 @@
"id": "3d7babac3a298e60",
"type": "hb-status",
"z": "caef1e7b5b399e80",
"name": "West Bedroom",
"d": true,
"name": "",
"Homebridge": "homebridge",
"Manufacturer": "Tasmota",
"Service": "Lightbulb",
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom00000043",
"conf": "557aec8e8c47e61e",
"x": 480,
"x": 520,
"y": 140,
"wires": [
[
Expand Down Expand Up @@ -118,14 +119,15 @@
"id": "bb88544904b343a1",
"type": "hb-event",
"z": "caef1e7b5b399e80",
"name": "West Bedroom",
"d": true,
"name": "",
"Homebridge": "homebridge",
"Manufacturer": "Tasmota",
"Service": "Lightbulb",
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom00000043",
"conf": "557aec8e8c47e61e",
"sendInitialState": false,
"x": 220,
"x": 250,
"y": 380,
"wires": [
[]
Expand All @@ -135,13 +137,14 @@
"id": "452e3e6171aa7a25",
"type": "hb-resume",
"z": "caef1e7b5b399e80",
"name": "West Bedroom",
"d": true,
"name": "",
"Homebridge": "homebridge",
"Manufacturer": "Tasmota",
"Service": "Lightbulb",
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom00000043",
"conf": "557aec8e8c47e61e",
"x": 480,
"x": 520,
"y": 460,
"wires": [
[
Expand Down Expand Up @@ -170,14 +173,15 @@
"id": "0ed3cd7e0d60beda",
"type": "hb-control",
"z": "caef1e7b5b399e80",
"name": "West Bedroom",
"d": true,
"name": "",
"Homebridge": "homebridge",
"Manufacturer": "Tasmota",
"Service": "Lightbulb",
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom00000043",
"conf": "557aec8e8c47e61e",
"outputs": 0,
"x": 500,
"x": 540,
"y": 600,
"wires": []
},
Expand Down
5 changes: 2 additions & 3 deletions test/node-red/flows.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,14 @@
"id": "0ed3cd7e0d60beda",
"type": "hb-control",
"z": "caef1e7b5b399e80",
"d": true,
"name": "",
"name": "West Bedroom",
"Homebridge": "homebridge",
"Manufacturer": "Tasmota",
"Service": "Lightbulb",
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom00000043",
"conf": "557aec8e8c47e61e",
"outputs": 0,
"x": 540,
"x": 500,
"y": 600,
"wires": []
},
Expand Down

0 comments on commit a1215f3

Please sign in to comment.