Implementa la struttura base del plugin MEB per i pannelli solari

This commit is contained in:
Giuseppe Raffa
2026-05-12 00:51:55 +02:00
commit 4fa8923cff
3 changed files with 52 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
.DS_Store
.env
node_modules/
.claude

26
package.json Normal file
View File

@@ -0,0 +1,26 @@
{
"name": "meb-solars",
"version": "1.0.0",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"signalk-plugin-enabled-by-default": true,
"engines": {
"node": ">=18"
},
"keywords": [
"signalk-node-server-plugin",
"signalk-category-utility",
"signalk-plugin",
"daly",
"bms",
"battery"
],
"dependencies": {
"serialport": "^10.2.2"
},
"author": "MEB Team",
"license": "ISC",
"description": "Un plugin per ottenere dati dai pannelli solari posti sulla barca"
}

21
src/index.js Normal file
View File

@@ -0,0 +1,21 @@
module.exports = function (app) {
const plugin = {
id: 'meb-solars',
name: "MEB Solary Panels",
description: ""
};
plugin.schema = {
};
plugin.start = async function(options = {}) {
};
plugin.
return plugin;
}