iobroker.meter-statistics 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +120 -0
- package/admin/i18n/de/translations.json +5 -0
- package/admin/i18n/en/translations.json +5 -0
- package/admin/i18n/es/translations.json +5 -0
- package/admin/i18n/fr/translations.json +5 -0
- package/admin/i18n/it/translations.json +5 -0
- package/admin/i18n/nl/translations.json +5 -0
- package/admin/i18n/pl/translations.json +5 -0
- package/admin/i18n/pt/translations.json +5 -0
- package/admin/i18n/ru/translations.json +5 -0
- package/admin/i18n/uk/translations.json +5 -0
- package/admin/i18n/zh-cn/translations.json +5 -0
- package/admin/jsonConfig.json +94 -0
- package/admin/meter-statistics.png +0 -0
- package/build/lib/accounting-helper.js +28 -0
- package/build/lib/accounting-helper.js.map +7 -0
- package/build/lib/typedef.js +17 -0
- package/build/lib/typedef.js.map +7 -0
- package/build/main.js +238 -0
- package/build/main.js.map +7 -0
- package/io-package.json +93 -0
- package/package.json +81 -0
package/io-package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"common": {
|
|
3
|
+
"name": "meter-statistics",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"news": {
|
|
6
|
+
"0.0.1": {
|
|
7
|
+
"en": "initial release",
|
|
8
|
+
"de": "Erstveröffentlichung",
|
|
9
|
+
"ru": "Начальная версия",
|
|
10
|
+
"pt": "lançamento inicial",
|
|
11
|
+
"nl": "Eerste uitgave",
|
|
12
|
+
"fr": "Première version",
|
|
13
|
+
"it": "Versione iniziale",
|
|
14
|
+
"es": "Versión inicial",
|
|
15
|
+
"pl": "Pierwsze wydanie",
|
|
16
|
+
"zh-cn": "首次出版",
|
|
17
|
+
"uk": "початковий випуск"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"titleLang": {
|
|
21
|
+
"en": "Meter Statistics",
|
|
22
|
+
"de": "Meter-Statistiken",
|
|
23
|
+
"ru": "Статистика счетчика",
|
|
24
|
+
"pt": "Estatísticas do Medidor",
|
|
25
|
+
"nl": "Meterstatistieken",
|
|
26
|
+
"fr": "Statistiques du compteur",
|
|
27
|
+
"it": "Statistiche del contatore",
|
|
28
|
+
"es": "Estadísticas del medidor",
|
|
29
|
+
"pl": "Statystyki miernika",
|
|
30
|
+
"zh-cn": "仪表统计",
|
|
31
|
+
"uk": "Статистика вимірювача"
|
|
32
|
+
},
|
|
33
|
+
"desc": {
|
|
34
|
+
"en": "Calculate statistics from any smart meter",
|
|
35
|
+
"de": "Berechnen Sie Statistiken von jedem Smart Meter",
|
|
36
|
+
"ru": "Рассчитать статистику с любого умного счетчика",
|
|
37
|
+
"pt": "Calcule estatísticas de qualquer medidor inteligente",
|
|
38
|
+
"nl": "Bereken statistieken van elke slimme meter",
|
|
39
|
+
"fr": "Calculez les statistiques de n'importe quel compteur intelligent",
|
|
40
|
+
"it": "Calcola le statistiche da qualsiasi contatore intelligente",
|
|
41
|
+
"es": "Calcula estadísticas desde cualquier contador inteligente",
|
|
42
|
+
"pl": "Oblicz statystyki z dowolnego inteligentnego licznika",
|
|
43
|
+
"zh-cn": "从任何智能电表计算统计数据",
|
|
44
|
+
"uk": "Обчислюйте статистику з будь-якого розумного лічильника"
|
|
45
|
+
},
|
|
46
|
+
"authors": [
|
|
47
|
+
"jb-io <96919536+jb-io@users.noreply.github.com>"
|
|
48
|
+
],
|
|
49
|
+
"keywords": [
|
|
50
|
+
"smart",
|
|
51
|
+
"meter",
|
|
52
|
+
"statistics",
|
|
53
|
+
"calculate"
|
|
54
|
+
],
|
|
55
|
+
"license": "GPL-3.0-or-later",
|
|
56
|
+
"platform": "Javascript/Node.js",
|
|
57
|
+
"main": "build/main.js",
|
|
58
|
+
"icon": "meter-statistics.png",
|
|
59
|
+
"enabled": true,
|
|
60
|
+
"extIcon": "https://raw.githubusercontent.com/jb-io/ioBroker.meter-statistics/master/admin/meter-statistics.png",
|
|
61
|
+
"readme": "https://github.com/jb-io/ioBroker.meter-statistics/blob/master/README.md",
|
|
62
|
+
"loglevel": "info",
|
|
63
|
+
"mode": "schedule",
|
|
64
|
+
"schedule": "0 0 * * *",
|
|
65
|
+
"type": "logic",
|
|
66
|
+
"compact": true,
|
|
67
|
+
"connectionType": "local",
|
|
68
|
+
"dataSource": "assumption",
|
|
69
|
+
"adminUI": {
|
|
70
|
+
"config": "json"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": [
|
|
73
|
+
{
|
|
74
|
+
"js-controller": ">=3.3.22"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"globalDependencies": [
|
|
78
|
+
{
|
|
79
|
+
"admin": ">=5.1.13"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"native": {
|
|
84
|
+
"meterUnit": "kWh",
|
|
85
|
+
"paymentUnit": "€",
|
|
86
|
+
"paymentValue": 0,
|
|
87
|
+
"paymentCount": 0,
|
|
88
|
+
"paymentCorrectionOffset": 0,
|
|
89
|
+
"meters": []
|
|
90
|
+
},
|
|
91
|
+
"objects": [],
|
|
92
|
+
"instanceObjects": []
|
|
93
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "iobroker.meter-statistics",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Calculate statistics from any smart meter",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "jb-io",
|
|
7
|
+
"email": "96919536+jb-io@users.noreply.github.com"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/jb-io/ioBroker.meter-statistics",
|
|
10
|
+
"license": "GPL-3.0-or-later",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"smart",
|
|
13
|
+
"meter",
|
|
14
|
+
"statistics",
|
|
15
|
+
"calculate"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git@github.com:jb-io/ioBroker.meter-statistics.git"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@iobroker/adapter-core": "^2.6.7"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@alcalzone/release-script": "^3.5.9",
|
|
26
|
+
"@alcalzone/release-script-plugin-iobroker": "^3.5.9",
|
|
27
|
+
"@alcalzone/release-script-plugin-license": "^3.5.9",
|
|
28
|
+
"@iobroker/adapter-dev": "^1.2.0",
|
|
29
|
+
"@iobroker/testing": "^4.1.0",
|
|
30
|
+
"@tsconfig/node16": "^1.0.3",
|
|
31
|
+
"@types/chai": "^4.3.4",
|
|
32
|
+
"@types/chai-as-promised": "^7.1.5",
|
|
33
|
+
"@types/mocha": "^10.0.1",
|
|
34
|
+
"@types/node": "^16.18.12",
|
|
35
|
+
"@types/proxyquire": "^1.3.28",
|
|
36
|
+
"@types/sinon": "^10.0.13",
|
|
37
|
+
"@types/sinon-chai": "^3.2.9",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^5.53.0",
|
|
39
|
+
"@typescript-eslint/parser": "^5.53.0",
|
|
40
|
+
"chai": "^4.3.7",
|
|
41
|
+
"chai-as-promised": "^7.1.1",
|
|
42
|
+
"eslint": "^8.34.0",
|
|
43
|
+
"mocha": "^10.2.0",
|
|
44
|
+
"proxyquire": "^2.1.3",
|
|
45
|
+
"rimraf": "^4.1.2",
|
|
46
|
+
"sinon": "^15.0.1",
|
|
47
|
+
"sinon-chai": "^3.7.0",
|
|
48
|
+
"source-map-support": "^0.5.21",
|
|
49
|
+
"ts-node": "^10.9.1",
|
|
50
|
+
"typescript": "~4.9.5"
|
|
51
|
+
},
|
|
52
|
+
"main": "build/main.js",
|
|
53
|
+
"files": [
|
|
54
|
+
"admin{,/!(src)/**}/!(tsconfig|tsconfig.*).json",
|
|
55
|
+
"admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}",
|
|
56
|
+
"build/",
|
|
57
|
+
"www/",
|
|
58
|
+
"io-package.json",
|
|
59
|
+
"LICENSE"
|
|
60
|
+
],
|
|
61
|
+
"scripts": {
|
|
62
|
+
"prebuild": "rimraf build",
|
|
63
|
+
"build": "build-adapter ts",
|
|
64
|
+
"watch": "build-adapter ts --watch",
|
|
65
|
+
"prebuild:ts": "rimraf build",
|
|
66
|
+
"build:ts": "build-adapter ts",
|
|
67
|
+
"watch:ts": "build-adapter ts --watch",
|
|
68
|
+
"test:ts": "mocha --config test/mocharc.custom.json src/**/*.test.ts",
|
|
69
|
+
"test:package": "mocha test/package --exit",
|
|
70
|
+
"test:integration": "mocha test/integration --exit",
|
|
71
|
+
"test": "npm run test:ts && npm run test:package",
|
|
72
|
+
"check": "tsc --noEmit",
|
|
73
|
+
"lint": "eslint --ext .ts src/",
|
|
74
|
+
"translate": "translate-adapter",
|
|
75
|
+
"release": "release-script"
|
|
76
|
+
},
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/jb-io/ioBroker.meter-statistics/issues"
|
|
79
|
+
},
|
|
80
|
+
"readmeFilename": "README.md"
|
|
81
|
+
}
|