iobroker.solarviewdatareader 1.0.4 → 1.0.5

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/README.md CHANGED
@@ -64,6 +64,11 @@ TKK= Temperature inverter
64
64
  Placeholder for the next version (at the beginning of the line):
65
65
  ### __WORK IN PROGRESS__
66
66
  -->
67
+ ### 1.0.5 (2022-02-17)
68
+ * (afuerhoff) dependencies updated
69
+ * (afuerhoff) test and release updated
70
+ * (afuerhoff) smaller changes
71
+
67
72
  ### 1.0.4 (2022-02-09)
68
73
  * (afuerhoff) dependencies updated
69
74
  * (afuerhoff) issue #20 fixed
@@ -78,12 +83,6 @@ TKK= Temperature inverter
78
83
  ### 1.0.1 (2021-05-01)
79
84
  * (afuerhoff) changes due to js-controller 3.3.x
80
85
 
81
- ### 1.0.0 (2021-04-25)
82
- * (afuerhoff) dependencies updated
83
- * (afuerhoff) documentation changed
84
- * (afuerhoff) minor changes
85
- * (afuerhoff) due to stable state version set to 1.0.0
86
-
87
86
  ## License
88
87
  MIT License
89
88
 
package/admin/style.css CHANGED
@@ -1,13 +1,35 @@
1
1
  /* You can delete those if you want. I just found them very helpful */
2
2
  * {
3
- box-sizing: border-box
3
+ box-sizing: border-box
4
4
  }
5
5
  .m {
6
- /* Don't cut off dropdowns! */
7
- overflow: initial;
6
+ /* Don't cut off dropdowns! */
7
+ overflow: initial;
8
+ }
9
+ .m.adapter-container {
10
+ /* Fix layout/scrolling issues with tabs */
11
+ height: 100%;
12
+ width: 100%;
13
+ position: relative;
14
+ }
15
+ .m .select-wrapper + label {
16
+ /* The positioning for dropdown labels is messed up */
17
+ transform: none !important;
18
+ }
19
+
20
+ label > i[title] {
21
+ /* Display the help cursor for the tooltip icons and fix their positioning */
22
+ cursor: help;
23
+ margin-left: 0.25em;
24
+ }
25
+
26
+ .dropdown-content {
27
+ /* Don't wrap text in dropdowns */
28
+ white-space: nowrap;
8
29
  }
9
30
 
10
31
  /* Add your styles here */
32
+
11
33
  /* Tooltip container */
12
34
  .tooltip {
13
35
  position: relative;
package/io-package.json CHANGED
@@ -1,8 +1,20 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "solarviewdatareader",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "news": {
6
+ "1.0.5": {
7
+ "en": "dependencies updated\ntest and release updated\nsmaller changes",
8
+ "de": "Abhängigkeiten aktualisiert\nTest und Release aktualisiert\nkleinere Änderungen",
9
+ "ru": "зависимости обновлены\nтест и выпуск обновлены\nнебольшие изменения",
10
+ "pt": "dependências atualizadas\nteste e lançamento atualizado\nmudanças menores",
11
+ "nl": "afhankelijkheden bijgewerkt\ntest en release bijgewerkt\nkleinere veranderingen",
12
+ "fr": "dépendances mises à jour\ntest et version mis à jour\npetits changements",
13
+ "it": "dipendenze aggiornate\ntest e rilascio aggiornati\npiccoli cambiamenti",
14
+ "es": "dependencias actualizadas\nprueba y versión actualizada\npequeños cambios",
15
+ "pl": "zaktualizowano zależności\nzaktualizowano test i wydanie\nmniejsze zmiany",
16
+ "zh-cn": "已更新依赖项\n测试和发布更新\n较小的变化"
17
+ },
6
18
  "1.0.4": {
7
19
  "en": "dependencies updated\nissue #20 fixed",
8
20
  "de": "Abhängigkeiten aktualisiert\nProblem Nr. 20 behoben",
@@ -74,18 +86,6 @@
74
86
  "es": "medidor de autoconsumo optimizado",
75
87
  "pl": "miernik zużycia własnego zoptymalizowany",
76
88
  "zh-cn": "自耗表优化"
77
- },
78
- "0.2.0": {
79
- "en": "Error handling optimized, self consumption meter implemented",
80
- "de": "Fehlerbehandlung optimiert, Eigenverbrauchsmesser implementiert",
81
- "ru": "Оптимизирована обработка ошибок, реализован счетчик собственного потребления",
82
- "pt": "Tratamento de erros otimizado, medidor de autoconsumo implementado",
83
- "nl": "Foutafhandeling geoptimaliseerd, eigen verbruiksmeter geïmplementeerd",
84
- "fr": "Gestion des erreurs optimisée, compteur d'autoconsommation mis en œuvre",
85
- "it": "Gestione degli errori ottimizzata, misuratore di autoconsumo implementato",
86
- "es": "Manejo de errores optimizado, medidor de autoconsumo implementado",
87
- "pl": "Zoptymalizowana obsługa błędów, zaimplementowano miernik zużycia własnego",
88
- "zh-cn": "优化错误处理,实施自耗电表"
89
89
  }
90
90
  },
91
91
  "title": "SolarViewDataReader",
package/main.js CHANGED
@@ -554,7 +554,7 @@ class Solarviewdatareader extends utils.Adapter {
554
554
  }
555
555
 
556
556
  // @ts-ignore parent is a valid property on module
557
- if (module.parent) {
557
+ if (require.main !== module) {
558
558
  // Export the constructor in compact mode
559
559
  /**
560
560
  * @param {Partial<ioBroker.AdapterOptions>} [options={}]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.solarviewdatareader",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Get data from SolarView",
5
5
  "author": {
6
6
  "name": "Achim Fürhoff",
@@ -24,30 +24,36 @@
24
24
  "@alcalzone/release-script": "^3.5.2",
25
25
  "@alcalzone/release-script-plugin-iobroker": "^3.5.1",
26
26
  "@alcalzone/release-script-plugin-license": "^3.5.0",
27
+ "@iobroker/adapter-dev": "^0.1.0",
27
28
  "@iobroker/testing": "^2.5.4",
28
29
  "@types/chai": "^4.3.0",
29
- "@types/chai-as-promised": "^7.1.4",
30
+ "@types/chai-as-promised": "^7.1.5",
30
31
  "@types/gulp": "^4.0.9",
31
- "@types/mocha": "^8.2.3",
32
- "@types/node": "^14.18.0",
32
+ "@types/mocha": "^9.1.0",
33
+ "@types/node": "^17.0.18",
33
34
  "@types/proxyquire": "^1.3.28",
34
- "@types/sinon": "^10.0.6",
35
+ "@types/sinon": "^10.0.11",
35
36
  "@types/sinon-chai": "^3.2.8",
36
- "chai": "^4.3.4",
37
+ "chai": "^4.3.6",
37
38
  "chai-as-promised": "^7.1.1",
38
- "eslint": "^7.32.0",
39
- "gulp": "^4.0.2",
39
+ "eslint": "^8.9.0",
40
40
  "hosted-git-info": "^4.1.0",
41
- "mocha": "^8.4.0",
41
+ "mocha": "^9.2.0",
42
42
  "proxyquire": "^2.1.3",
43
- "sinon": "^10.0.0",
43
+ "sinon": "^13.0.1",
44
44
  "sinon-chai": "^3.7.0"
45
45
  },
46
46
  "main": "main.js",
47
+ "files": [
48
+ "admin{,/!(src)/**}/!(tsconfig|tsconfig.*).json",
49
+ "admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}",
50
+ "lib/",
51
+ "www/",
52
+ "io-package.json",
53
+ "LICENSE",
54
+ "main.js"
55
+ ],
47
56
  "scripts": {
48
- "watch:parcel": "parcel admin/src/index.jsx -d admin/build",
49
- "build:parcel": "parcel build admin/src/index.jsx -d admin/build",
50
- "build": "npm run build:parcel",
51
57
  "test:js": "mocha --config test/mocharc.custom.json \"{!(node_modules|test)/**/*.test.js,*.test.js,test/**/test!(PackageFiles|Startup).js}\"",
52
58
  "test:package": "mocha test/package --exit",
53
59
  "test:unit": "mocha test/unit --exit",
@@ -56,7 +62,8 @@
56
62
  "aftest": "mocha test/af_test.js --exit",
57
63
  "check": "tsc --noEmit -p tsconfig.check.json",
58
64
  "lint": "eslint --ext .js,.jsx",
59
- "release": "release-script"
65
+ "release": "release-script",
66
+ "translate": "translate-adapter"
60
67
  },
61
68
  "bugs": {
62
69
  "url": "https://github.com/afuerhoff/ioBroker.solarviewdatareader/issues"
@@ -1,32 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Something is not working as it should
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
- ---
8
-
9
- **Describe the bug**
10
- A clear and concise description of what the bug is.
11
-
12
- **To Reproduce**
13
- Steps to reproduce the behavior:
14
- 1. Go to '...'
15
- 2. Click on '...'
16
- 3. Scroll down to '....'
17
- 4. See error
18
-
19
- **Expected behavior**
20
- A clear and concise description of what you expected to happen.
21
-
22
- **Screenshots & Logfiles**
23
- If applicable, add screenshots and logfiles to help explain your problem.
24
-
25
- **Versions:**
26
- - Adapter version: <adapter-version>
27
- - JS-Controller version: <js-controller-version> <!-- determine this with `iobroker -v` on the console -->
28
- - Node version: <node-version> <!-- determine this with `node -v` on the console -->
29
- - Operating system: <os-name>
30
-
31
- **Additional context**
32
- Add any other context about the problem here.
@@ -1,155 +0,0 @@
1
- name: Test and Release
2
-
3
- # Run this job on all pushes and pull requests
4
- # as well as tags with a semantic version
5
- on:
6
- push:
7
- branches:
8
- - "*"
9
- tags:
10
- # normal versions
11
- - "v[0-9]+.[0-9]+.[0-9]+"
12
- # pre-releases
13
- - "v[0-9]+.[0-9]+.[0-9]+-**"
14
- pull_request: {}
15
-
16
- jobs:
17
- # Performs quick checks before the expensive test runs
18
- check-and-lint:
19
- if: contains(github.event.head_commit.message, '[skip ci]') == false
20
-
21
- runs-on: ubuntu-latest
22
-
23
- strategy:
24
- matrix:
25
- node-version: [14.x]
26
-
27
- steps:
28
- - name: Checkout code
29
- uses: actions/checkout@v2
30
-
31
- - name: Use Node.js ${{ matrix.node-version }}
32
- uses: actions/setup-node@v1
33
- with:
34
- node-version: ${{ matrix.node-version }}
35
-
36
- - name: Install Dependencies
37
- run: npm ci
38
-
39
- - name: Lint source code
40
- run: npm run lint
41
- - name: Test package files
42
- run: npm run test:package
43
-
44
- # Runs adapter tests on all supported node versions and OSes
45
- adapter-tests:
46
- if: contains(github.event.head_commit.message, '[skip ci]') == false
47
-
48
- needs: [check-and-lint]
49
-
50
- runs-on: ${{ matrix.os }}
51
- strategy:
52
- matrix:
53
- node-version: [12.x, 14.x, 16.x]
54
- os: [ubuntu-latest, windows-latest, macos-latest]
55
-
56
- steps:
57
- - name: Checkout code
58
- uses: actions/checkout@v2
59
-
60
- - name: Use Node.js ${{ matrix.node-version }}
61
- uses: actions/setup-node@v1
62
- with:
63
- node-version: ${{ matrix.node-version }}
64
-
65
- - name: Install Dependencies
66
- run: npm ci
67
-
68
- - name: Run unit tests
69
- run: npm run test:unit
70
-
71
- - name: Run integration tests (unix only)
72
- if: startsWith(runner.OS, 'windows') == false
73
- run: DEBUG=testing:* npm run test:integration
74
-
75
- - name: Run integration tests (windows only)
76
- if: startsWith(runner.OS, 'windows')
77
- run: set DEBUG=testing:* & npm run test:integration
78
-
79
- # TODO: To enable automatic npm releases, create a token on npmjs.org
80
- # Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
81
- # Then uncomment the following block:
82
-
83
- # Deploys the final package to NPM
84
- deploy:
85
- needs: [adapter-tests]
86
-
87
- # Trigger this step only when a commit on any branch is tagged with a version number
88
- if: |
89
- contains(github.event.head_commit.message, '[skip ci]') == false &&
90
- github.event_name == 'push' &&
91
- startsWith(github.ref, 'refs/tags/v')
92
-
93
- runs-on: ubuntu-latest
94
- strategy:
95
- matrix:
96
- node-version: [14.x]
97
-
98
- steps:
99
- - name: Checkout code
100
- uses: actions/checkout@v2
101
-
102
- - name: Use Node.js ${{ matrix.node-version }}
103
- uses: actions/setup-node@v1
104
- with:
105
- node-version: ${{ matrix.node-version }}
106
-
107
- - name: Extract the version and commit body from the tag
108
- id: extract_release
109
- # The body may be multiline, therefore newlines and % need to be escaped
110
- run: |
111
- VERSION="${{ github.ref }}"
112
- VERSION=${VERSION##*/v}
113
- echo "::set-output name=VERSION::$VERSION"
114
- BODY=$(git show -s --format=%b)
115
- BODY="${BODY//'%'/'%25'}"
116
- BODY="${BODY//$'\n'/'%0A'}"
117
- BODY="${BODY//$'\r'/'%0D'}"
118
- echo "::set-output name=BODY::$BODY"
119
-
120
- - name: Publish package to npm
121
- run: |
122
- npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
123
- npm whoami
124
- npm publish
125
-
126
- - name: Create Github Release
127
- uses: actions/create-release@v1
128
- env:
129
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130
- with:
131
- tag_name: ${{ github.ref }}
132
- release_name: Release v${{ steps.extract_release.outputs.VERSION }}
133
- draft: false
134
- # Prerelease versions create prereleases on Github
135
- prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
136
- body: ${{ steps.extract_release.outputs.BODY }}
137
-
138
- # # When using Sentry for error reporting, Sentry could be informed about new releases
139
- # # To enable create a API-Token in Sentry (User settings, API keys)
140
- # # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
141
- # # Then uncomment and customize the following block:
142
- # #- name: Notify Sentry.io about the release
143
- # # run: |
144
- # # npm i -g @sentry/cli
145
- # # export SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
146
- # # export SENTRY_URL=https://sentry.iobroker.net
147
- # # export SENTRY_ORG=iobroker
148
- # # export SENTRY_PROJECT=iobroker-fb-checkpresence
149
- # # export SENTRY_VERSION=iobroker.fb-checkpresence@${{ steps.extract_release.outputs.VERSION }}
150
- # # sentry-cli releases new $SENTRY_VERSION
151
- # # sentry-cli releases finalize $SENTRY_VERSION
152
- # # # Add the following line BEFORE finalize if repositories are connected in Sentry
153
- # # #sentry-cli releases set-commits $SENTRY_VERSION --auto
154
- # # # Add the following line BEFORE finalize if sourcemap uploads are needed
155
- # # #sentry-cli releases files $SENTRY_VERSION upload-sourcemaps build/
@@ -1,10 +0,0 @@
1
- {
2
- "dry": false,
3
- "addPlaceholder": true,
4
- "verbose": true,
5
- "all": false,
6
- "plugins": ["iobroker", "license"],
7
- "exec": {
8
- "before_commit": "echo Hello World!"
9
- }
10
- }
package/CHANGELOG_OLD.md DELETED
@@ -1,24 +0,0 @@
1
- # Older changes
2
- ## 0.2.1
3
- * (afuerhoff) self consumption meter optimized
4
-
5
- ## 0.2.0
6
- * (afuerhoff) Error handling optimized, self consumption meter implemented
7
-
8
- ## 0.1.0
9
- * (afuerhoff) optimizations for adding to latest repository
10
-
11
- ## 0.0.5
12
- * (afuerhoff) Code optimized, unload optimized, documentation added
13
-
14
- ## 0.0.4
15
- * (afuerhoff) Objects, Telnet client and checksum calculation changed
16
-
17
- ## 0.0.3
18
- * (afuerhoff) inverter selection added
19
-
20
- ## 0.0.2
21
- * (afuerhoff) test version
22
-
23
- ## 0.0.1
24
- * (afuerhoff) initial release
package/admin/admin.d.ts DELETED
@@ -1 +0,0 @@
1
- declare let systemDictionary: Record<string, Record<string, string>>;
package/main.test.js DELETED
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * This is a dummy TypeScript test file using chai and mocha
5
- *
6
- * It's automatically excluded from npm and its build output is excluded from both git and npm.
7
- * It is advised to test all your modules with accompanying *.test.js-files
8
- */
9
-
10
- // tslint:disable:no-unused-expression
11
-
12
- const { expect } = require("chai");
13
- // import { functionToTest } from "./moduleToTest";
14
-
15
- describe("module to test => function to test", () => {
16
- // initializing logic
17
- const expected = 5;
18
-
19
- it(`should return ${expected}`, () => {
20
- const result = 5;
21
- // assign result a value from functionToTest
22
- expect(result).to.equal(expected);
23
- // or using the should() syntax
24
- result.should.equal(expected);
25
- });
26
- // ... more tests => it
27
-
28
- });
29
-
30
- // ... more test suites => describe
package/scripts/gulp.sh DELETED
@@ -1,3 +0,0 @@
1
- pwd
2
- #cd /opt/iobroker/node_modules/iobroker.fb-checkpresence/
3
- gulp translateAndUpdateWordsJS
package/scripts/upload.sh DELETED
@@ -1 +0,0 @@
1
- /opt/iobroker/iobroker upload solarviewdatareader