-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
57 lines (57 loc) · 3.88 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"name": "iobroker.syslog",
"description": "Syslog read from DB",
"version": "0.0.5",
"author": {
"name": "SpectreKr",
"email": "[email protected]"
},
"contributors": [
{
"name": "SpectreKr",
"email": "[email protected]"
}
],
"homepage": "https://github.com/SpectreKr/iobroker.syslog",
"repository": {
"type": "git",
"url": "git+https://github.com/SpectreKr/iobroker.syslog.git"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/SpectreKr/iobroker.syslog/blob/master/LICENSE"
}
],
"keywords": [
"ioBroker",
"syslog data",
"home automation"
],
"dependencies": {
"mysql": ">=2.9.0"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-replace": "^0.9.3",
"grunt-contrib-jshint": "^0.11.2",
"grunt-jscs": "^2.0.0",
"grunt-http": "^1.6.0",
"mocha": "^2.3.4",
"chai": "^3.4.1"
},
"bugs": {
"url": "https://github.com/SpectreKr/iobroker.syslog/issues"
},
"main": "main.js",
"scripts": {
"test": "node node_modules/mocha/bin/mocha"
},
"license": "MIT",
"readmeFilename": "README.md",
"readme": "\n# ioBroker.syslog\n==================================\n[](https://www.npmjs.com/package/iobroker.syslog)\n[](https://www.npmjs.com/package/iobroker.syslog)\n[](https://travis-ci.org/ioBroker/ioBroker.syslog)\n\n[](https://nodei.co/npm/iobroker.syslog/)\n\nНастраиваем подключение к Mysql серверу, в котором храняться логи.\n\nВ JavaScript драйвере создаем скрипт.\n\n```\non({id: 'syslog.0.Message', change: 'ne'}, function (obj) {\n var text = JSON.parse(obj.newState.val);\n sendTo('telegram', {user: 'Имя', text: \"time: \" + formatDate(new Date(text.time), 'DD.MM.YYYY hh:mm') + '\\n' +\n \"host: \" + text.hosts + '\\n' + \"type: \" + text.type + '\\n' +\n \"message: \" + text.message});\n});\n```\n\n### 0.0.4 (2017-01-25)\n* (spectrekr) small changes\n\n### 0.0.3 (2017-01-24)\n* (spectrekr) Added the ability to work on the keyword\n\n### 0.0.2 (2017-01-24)\n* (spectrekr) Added selection of the type of information\n\n### 0.0.1 (2017-01-23)\n* (spectrekr) initial commit\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2017 spectrekr\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
"_id": "[email protected]",
"_shasum": "ab7f71e158909d52854be91048882628687d9688",
"_resolved": "https://github.com/SpectreKr/iobroker.syslog/tarball/master",
"_from": "https://github.com/SpectreKr/iobroker.syslog/tarball/master"
}