diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..28b05e0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Marcos Caputo (caputomarcos) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index e69de29..19fbf71 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,18 @@ +## What is this? + +Node Red Modbus Client for SolarEdge inverters. + +## How to install? + You can install it using npm: + + ```bash + $ cd ~/.node-red + $ npm install node-red-contrib-solaredge-modbus-client + ``` + Configuration + ------------- + You need the IP address of your SolarEdge inverter and the port number configured for modbus. + + Output + ------- + The payload will be a json containing the inverter data. diff --git a/package.json b/package.json index 95407ac..dc15e2c 100644 --- a/package.json +++ b/package.json @@ -1,31 +1,35 @@ { "name": "node-red-contrib-solaredge-modbus-client", - "version": "1.0.2", - "description": "Node Red Modbus Client for Solar Edge solar panels", + "version": "1.0.4", + "description": "Node Red Modbus Client for SolarEdge inverters", + "author": "Adri Pelders", + "contributors": [], + "license": "MIT License", + "homepage": "https://github.com/apelders/node-red-contrib-solaredge-modbus-client/#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/apelders/node-red-solaredge-modbus-client.git" + }, + "bugs": { + "url": "https://github.com/apelders/node-red-solaredge-modbus-client/issues" + }, + "private": "true", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ - "node-red" + "node-red", + "SolarEdge" ], - "repository": { - "type": "git", - "url": "git+https://github.com/Xumpy/node-red-solaredge-modbus-client.git" - }, - "author": "Nico Martens", - "node-red": { + "node-red" : { + "version": ">=0.1.0", "nodes": { - "solaredge": "se-modbus-json.js" + "se-modbus": "se-modbus-json.js" } }, "dependencies": { "modbus-tcp": "^0.4.13" }, - "license": "ISC", - "bugs": { - "url": "https://github.com/Xumpy/node-red-solaredge-modbus-client/issues" - }, - "homepage": "https://github.com/Xumpy/node-red-solaredge-modbus-client#readme", "devDependencies": {} } diff --git a/se-modbus-json.html b/se-modbus-json.html index bb2fbe3..a155342 100644 --- a/se-modbus-json.html +++ b/se-modbus-json.html @@ -4,7 +4,7 @@ color: '#fff665', defaults: { name: {value:"Solar Edge Modbus"}, - host: {value:"192.168.1.200"}, + host: {value:"192.168.1.70"}, port: {value:"1502"}, poll: {value:"1000"}, device: {value: "se_inverter"}