Skip to content

Commit 98035f1

Browse files
authored
Merge pull request #17 from phillipivan/main
Update to Companion V3
2 parents 53c3553 + 771a4f5 commit 98035f1

11 files changed

+3205
-2322
lines changed

.eslintrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
},
77
"extends": "eslint:recommended",
88
"parserOptions": {
9-
"ecmaVersion": 12
9+
"ecmaVersion": 12,
10+
"sourceType": "module"
1011
},
1112
"rules": {}
1213
}

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
.vscode/
12
node_modules/
2-
package-lock.json
3+
package-lock.json
4+
/pkg
5+
/pkg.tgz
6+
DEBUG-*
7+
*.zip

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# companion-module-generic-snmp
22

3-
See [HELP.md](./HELP.md) and [LICENSE](./LICENSE)
3+
See [HELP.md](./companion/HELP.md) and [LICENSE](./LICENSE)

HELP.md companion/HELP.md

-3
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@ You can perform the following actions with this module:
4545
- Set OID value to a Number. This includes the following SNMP Object Types:
4646
- Integer
4747
- Counter
48-
- Counter32
4948
- Gauge
50-
- Gauge32
5149
- TimeTicks
52-
- Unsigned32
5350
- Set OID value to a Boolean
5451
- Set OID value to an IP Address
5552
- Set OID value to an OID

companion/manifest.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"id": "generic-snmp",
3+
"name": "generic-snmp",
4+
"shortname": "snmp",
5+
"description": "A generic SNMP module for Companion",
6+
"version": "0.0.0",
7+
"license": "ISC",
8+
"repository": "git+https://github.com/bitfocus/companion-module-generic-snmp.git",
9+
"bugs": "https://github.com/bitfocus/companion-module-generic-snmp/issues",
10+
"maintainers": [
11+
{
12+
"name": "Johnny Estilles",
13+
"email": "[email protected]"
14+
},
15+
{
16+
"name": "Phillip Ivan Pietruschka",
17+
"email": "[email protected]"
18+
}
19+
],
20+
"legacyIds": [],
21+
"runtime": {
22+
"type": "node18",
23+
"api": "nodejs-ipc",
24+
"apiVersion": "0.0.0",
25+
"entrypoint": "..\\src\\index.js"
26+
},
27+
"manufacturer": "Generic",
28+
"products": ["SNMP Requests"],
29+
"keywords": ["Protocol", "Generic"]
30+
}

package.json

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
11
{
22
"name": "generic-snmp",
3-
"version": "1.0.2",
4-
"description": "A generic SNMP module for Companion",
5-
"manufacturer": "Generic",
6-
"product": "SNMP Requests",
7-
"keywords": [
8-
"Protocol",
9-
"Generic"
10-
],
11-
"shortname": "snmp",
3+
"version": "2.0.0",
124
"main": "src/index.js",
5+
"sourceType": "module",
136
"scripts": {
147
"test": "echo \"Error: no test specified\" && exit 1",
15-
"prettier": "prettier",
8+
"format": "prettier -w .",
169
"eslint": "eslint",
1710
"semantic-release": "semantic-release"
1811
},
1912
"dependencies": {
20-
"net-snmp": "^3.5.7"
13+
"@companion-module/base": "~1.10.0",
14+
"net-snmp": "^3.12.1"
2115
},
2216
"devDependencies": {
23-
"@semantic-release/changelog": "^6.0.1",
17+
"@companion-module/tools": "^2.0.0",
18+
"@semantic-release/changelog": "^6.0.3",
2419
"@semantic-release/git": "^10.0.1",
2520
"eslint": "^8.1.0",
26-
"prettier": "^2.4.1",
27-
"semantic-release": "^18.0.0"
21+
"prettier": "^3.3.3",
22+
"semantic-release": "^22.0.12"
2823
},
29-
"author": "Johnny Estilles <[email protected]>",
3024
"license": "ISC",
3125
"repository": {
3226
"type": "git",

0 commit comments

Comments
 (0)