Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Companion V3 #17

Merged
merged 2 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {}
}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
.vscode/
node_modules/
package-lock.json
package-lock.json
/pkg
/pkg.tgz
DEBUG-*
*.zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# companion-module-generic-snmp

See [HELP.md](./HELP.md) and [LICENSE](./LICENSE)
See [HELP.md](./companion/HELP.md) and [LICENSE](./LICENSE)
3 changes: 0 additions & 3 deletions HELP.md → companion/HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ You can perform the following actions with this module:
- Set OID value to a Number. This includes the following SNMP Object Types:
- Integer
- Counter
- Counter32
- Gauge
- Gauge32
- TimeTicks
- Unsigned32
- Set OID value to a Boolean
- Set OID value to an IP Address
- Set OID value to an OID
30 changes: 30 additions & 0 deletions companion/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"id": "generic-snmp",
"name": "generic-snmp",
"shortname": "snmp",
"description": "A generic SNMP module for Companion",
"version": "0.0.0",
"license": "ISC",
"repository": "git+https://github.com/bitfocus/companion-module-generic-snmp.git",
"bugs": "https://github.com/bitfocus/companion-module-generic-snmp/issues",
"maintainers": [
{
"name": "Johnny Estilles",
"email": "[email protected]"
},
{
"name": "Phillip Ivan Pietruschka",
"email": "[email protected]"
}
],
"legacyIds": [],
"runtime": {
"type": "node18",
"api": "nodejs-ipc",
"apiVersion": "0.0.0",
"entrypoint": "..\\src\\index.js"
},
"manufacturer": "Generic",
"products": ["SNMP Requests"],
"keywords": ["Protocol", "Generic"]
}
24 changes: 9 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
{
"name": "generic-snmp",
"version": "1.0.2",
"description": "A generic SNMP module for Companion",
"manufacturer": "Generic",
"product": "SNMP Requests",
"keywords": [
"Protocol",
"Generic"
],
"shortname": "snmp",
"version": "2.0.0",
"main": "src/index.js",
"sourceType": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prettier": "prettier",
"format": "prettier -w .",
"eslint": "eslint",
"semantic-release": "semantic-release"
},
"dependencies": {
"net-snmp": "^3.5.7"
"@companion-module/base": "~1.10.0",
"net-snmp": "^3.12.1"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@companion-module/tools": "^2.0.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"eslint": "^8.1.0",
"prettier": "^2.4.1",
"semantic-release": "^18.0.0"
"prettier": "^3.3.3",
"semantic-release": "^22.0.12"
},
"author": "Johnny Estilles <[email protected]>",
"license": "ISC",
"repository": {
"type": "git",
Expand Down
Loading
Loading