UNPKG

smartmeter2mqtt

Version:

Publish data from your Smartmeter with a P1 interface to your MQTT server.

70 lines (69 loc) 1.93 kB
{ "name": "smartmeter2mqtt", "version": "1.6.0", "description": "Publish data from your Smartmeter with a P1 interface to your MQTT server.", "main": "dist/index.js", "scripts": { "compile": "tsc", "copy-www": "cp -r ./src/output/wwwroot ./dist/output/wwwroot", "coverage": "jest --coverage", "lint": "eslint ./src --ext .js,.jsx,.ts,.tsx", "lint-fix": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix", "test": "npm run lint && jest", "prepack": "npm run compile && npm run copy-www" }, "repository": { "type": "git", "url": "https://github.com/svrooij/smartmeter2mqtt.git" }, "keywords": [ "mqtt-smarthome", "P1", "smart", "meter", "electricity" ], "author": "Stephan van Rooij <github@svrooij.nl> (https://svrooij.nl)", "license": "MIT", "bugs": { "url": "https://github.com/svrooij/smartmeter2mqtt/issues" }, "homepage": "https://github.com/svrooij/smartmeter2mqtt#readme", "dependencies": { "@serialport/parser-readline": "^9.0.7", "@svrooij/sunspec": "^0.9.0", "@svrooij/tcp-server": "^1.0.1", "crc": "^3.8.0", "express": "^4.17.1", "mqtt": "^4.2.6", "node-fetch": "^2.6.1", "serialport": "^9.0.7", "ws": "^7.4.3", "yargs": "^16.2.0" }, "devDependencies": { "@types/chai": "^4.2.15", "@types/crc": "^3.4.0", "@types/express": "^4.17.11", "@types/jest": "^26.0.2", "@types/node-fetch": "^2.5.8", "@types/serialport": "^8.0.1", "@types/ws": "^7.4.0", "@types/yargs": "^16.0.0", "@typescript-eslint/eslint-plugin": "^2.28.0", "chai": "^4.3.0", "eslint": "^6.8.0", "eslint-config-airbnb-typescript": "^7.2.1", "eslint-plugin-import": "^2.20.2", "jest": "^26.6.3", "ts-jest": "^26.5.1", "typescript": "^3.8.3" }, "bin": { "smartmeter2mqtt": "./dist/index.js" }, "files": [ "dist/**/*.js", "dist/output/wwwroot" ] }