Skip to content

Commit

Permalink
Adding exammples
Browse files Browse the repository at this point in the history
  • Loading branch information
zinen committed Mar 25, 2022
1 parent b7a0f80 commit 07906b1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/mobile-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"1afec9e2962bbf66","type":"huawei-mobiledata","z":"e188845e3eb39d84","name":"","mode":"off-on","x":460,"y":2440,"wires":[[]]},{"id":"829c500bc9e53830","type":"inject","z":"e188845e3eb39d84","name":"turn data on","props":[{"p":"payload"},{"p":"mode","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":190,"y":2380,"wires":[["1afec9e2962bbf66"]]},{"id":"9a6ff07b8b2ed6aa","type":"inject","z":"e188845e3eb39d84","name":"turn data off","props":[{"p":"payload"},{"p":"mode","v":"0","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":190,"y":2440,"wires":[["1afec9e2962bbf66"]]},{"id":"541e52de4a450dc2","type":"inject","z":"e188845e3eb39d84","name":"turn data off then on again","props":[{"p":"payload"},{"p":"mode","v":"off-on","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":150,"y":2500,"wires":[["1afec9e2962bbf66"]]},{"id":"716508cd9813eb39","type":"inject","z":"e188845e3eb39d84","name":"toggle data","props":[{"p":"payload"},{"p":"mode","v":"toggle","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":200,"y":2560,"wires":[["1afec9e2962bbf66"]]}]
1 change: 1 addition & 0 deletions examples/reboot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"c497327f27b1535c","type":"huawei-reboot","z":"e188845e3eb39d84","name":"","x":710,"y":2620,"wires":[[]]},{"id":"d1a7cc39f67f27b7","type":"inject","z":"e188845e3eb39d84","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":520,"y":2620,"wires":[["c497327f27b1535c"]]}]
1 change: 1 addition & 0 deletions examples/send-sms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"ad10de244b5892af","type":"inject","z":"e188845e3eb39d84","name":"","props":[{"p":"payload"},{"p":"number","v":"12345789","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Hello world","payloadType":"str","x":740,"y":2340,"wires":[["e6593b8410be329f"]]},{"id":"e6593b8410be329f","type":"huawei-sms-send","z":"e188845e3eb39d84","name":"","phoneNumber":"","message":"","x":930,"y":2340,"wires":[[]]}]
2 changes: 1 addition & 1 deletion package-lock.json

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

13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-huawei-router",
"version": "1.2.1",
"version": "1.2.2",
"description": "",
"scripts": {
"pretest": "npm install node-red-node-test-helper node-red mocha --no-save",
Expand All @@ -23,7 +23,8 @@
"node-red": {
"nodes": {
"huawei-router": "huawei-router/huawei-router.js"
}
},
"version": ">=1.0.0"
},
"dependencies": {
"huawei-lte-api": "0.0.10"
Expand All @@ -36,9 +37,13 @@
"url": "https://github.com/zinen/node-red-contrib-huawei-router/issues"
},
"files": [
"huawei-router/*"
"huawei-router/*",
"examples/"
],
"devDependencies": {
"dotenv": "^8.6.0"
},
"engines": {
"node": ">=12.0.0"
}
}
}

0 comments on commit 07906b1

Please sign in to comment.