iobroker.maxcube 1.0.3 → 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.
@@ -1,16 +1,25 @@
1
+ # Dependabot will run on day 3 of each month at 02:52 (Europe/Berlin timezone)
1
2
  version: 2
2
3
  updates:
3
- - package-ecosystem: github-actions
4
- directory: "/"
4
+
5
+ - package-ecosystem: 'github-actions'
6
+ directory: '/'
5
7
  schedule:
6
- interval: monthly
7
- time: "04:00"
8
- timezone: Europe/Berlin
9
- - package-ecosystem: npm
10
- directory: "/"
8
+ interval: 'cron'
9
+ timezone: 'Europe/Berlin'
10
+ cronjob: '52 2 3 * *'
11
+ open-pull-requests-limit: 15
12
+
13
+ - package-ecosystem: 'npm'
11
14
  schedule:
12
- interval: monthly
13
- time: "04:00"
14
- timezone: Europe/Berlin
15
+ interval: 'cron'
16
+ timezone: 'Europe/Berlin'
17
+ cronjob: '52 2 3 * *'
15
18
  open-pull-requests-limit: 20
16
- versioning-strategy: increase
19
+ versioning-strategy: 'increase'
20
+ directories:
21
+ - '**/*'
22
+ ignore:
23
+ - dependency-name: '@types/node'
24
+ update-types:
25
+ - 'version-update:semver-major'
@@ -0,0 +1,37 @@
1
+ # Workflow for auto-merging Dependabot PRs
2
+ # This workflow uses the action-automerge-dependabot action to automatically merge
3
+ # Dependabot PRs based on the rules defined in .github/auto-merge.yml
4
+
5
+ name: Auto-Merge Dependabot PRs
6
+
7
+ on:
8
+ # Trigger when a PR is opened or updated
9
+ # Normally pull_request gets a GITHUB_TOKEN with read access only.
10
+ # But workflows run for PRs created by dependabot get write access anyway,
11
+ # so the less secure 'pull_request_target' trigger is not required.
12
+ pull_request:
13
+ types: [opened, synchronize, reopened]
14
+
15
+ jobs:
16
+ auto-merge:
17
+ runs-on: ubuntu-latest
18
+ # Only run if actor is dependabot
19
+ if: github.actor == 'dependabot[bot]'
20
+
21
+ permissions:
22
+ contents: write
23
+ pull-requests: write
24
+
25
+ steps:
26
+ - name: Auto-merge Dependabot PRs
27
+ uses: iobroker-bot-orga/action-automerge-dependabot@v1
28
+ with:
29
+ github-token: ${{ secrets.GITHUB_TOKEN }}
30
+ # Optional: Path to your auto-merge configuration file
31
+ # config-file-path: '.github/auto-merge.yml'
32
+ # Optional: Merge method (merge, squash, or rebase)
33
+ # merge-method: 'squash'
34
+ # Optional: Wait for other checks to complete
35
+ # wait-for-checks: 'true'
36
+ # Optional: Maximum time to wait for checks in seconds (default: 3600)
37
+ # max-wait-time: '3600'
@@ -0,0 +1,41 @@
1
+ name: "CodeQL"
2
+
3
+ on:
4
+ push:
5
+ branches: [ "master" ]
6
+ pull_request:
7
+ branches: [ "master" ]
8
+ schedule:
9
+ - cron: "13 17 * * 1"
10
+
11
+ jobs:
12
+ analyze:
13
+ name: Analyze
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ actions: read
17
+ contents: read
18
+ security-events: write
19
+
20
+ strategy:
21
+ fail-fast: false
22
+ matrix:
23
+ language: [ javascript ]
24
+
25
+ steps:
26
+ - name: Checkout
27
+ uses: actions/checkout@v4
28
+
29
+ - name: Initialize CodeQL
30
+ uses: github/codeql-action/init@v2
31
+ with:
32
+ languages: ${{ matrix.language }}
33
+ queries: +security-and-quality
34
+
35
+ - name: Autobuild
36
+ uses: github/codeql-action/autobuild@v2
37
+
38
+ - name: Perform CodeQL Analysis
39
+ uses: github/codeql-action/analyze@v2
40
+ with:
41
+ category: "/language:${{ matrix.language }}"
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout code
14
- uses: actions/checkout@v2
14
+ uses: actions/checkout@v4
15
15
 
16
16
  - name: Check if PR should be auto-merged
17
17
  uses: ahmadnassri/action-dependabot-auto-merge@v2
@@ -25,12 +25,12 @@ jobs:
25
25
 
26
26
  strategy:
27
27
  matrix:
28
- node-version: [12.x]
28
+ node-version: [22.x]
29
29
 
30
30
  steps:
31
- - uses: actions/checkout@v1
31
+ - uses: actions/checkout@v4
32
32
  - name: Use Node.js ${{ matrix.node-version }}
33
- uses: actions/setup-node@v2.1.5
33
+ uses: actions/setup-node@v4
34
34
  with:
35
35
  node-version: ${{ matrix.node-version }}
36
36
 
@@ -56,13 +56,13 @@ jobs:
56
56
  runs-on: ${{ matrix.os }}
57
57
  strategy:
58
58
  matrix:
59
- node-version: [10.x, 12.x, 14.x]
59
+ node-version: [22.x, 24.x, 26.x]
60
60
  os: [ubuntu-latest, windows-latest, macos-latest]
61
61
 
62
62
  steps:
63
- - uses: actions/checkout@v1
63
+ - uses: actions/checkout@v4
64
64
  - name: Use Node.js ${{ matrix.node-version }}
65
- uses: actions/setup-node@v2.1.5
65
+ uses: actions/setup-node@v4
66
66
  with:
67
67
  node-version: ${{ matrix.node-version }}
68
68
 
@@ -80,63 +80,29 @@ jobs:
80
80
  # if: startsWith(runner.OS, 'windows')
81
81
  # run: set DEBUG=testing:* & npm run test:integration
82
82
 
83
- # Deploys the final package to NPM
83
+ # Deploys the final package to NPM (Trusted Publishing, no NPM_TOKEN)
84
84
  deploy:
85
- needs: [adapter-tests]
85
+ needs: [check-and-lint, adapter-tests]
86
86
 
87
- # Trigger this step only when a commit on master is tagged with a version number
87
+ # Trigger this step only when a commit on any branch is tagged with a version number
88
88
  if: |
89
89
  contains(github.event.head_commit.message, '[skip ci]') == false &&
90
90
  github.event_name == 'push' &&
91
- github.event.base_ref == 'refs/heads/master' &&
92
- startsWith(github.ref, 'refs/tags/')
93
- runs-on: ubuntu-latest
94
- strategy:
95
- matrix:
96
- node-version: [12.x]
91
+ startsWith(github.ref, 'refs/tags/v')
97
92
 
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@v2.1.5
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 we need to escape some characters
110
- run: |
111
- VERSION="${{ github.ref }}"
112
- VERSION=${VERSION##*/}
113
- VERSION=${VERSION##*v}
114
- echo "::set-output name=VERSION::$VERSION"
115
- BODY=$(git show -s --format=%b)
116
- BODY="${BODY//'%'/'%25'}"
117
- BODY="${BODY//$'\n'/'%0A'}"
118
- BODY="${BODY//$'\r'/'%0D'}"
119
- echo "::set-output name=BODY::$BODY"
93
+ runs-on: ubuntu-latest
120
94
 
121
- - name: Install Dependencies
122
- run: npm install
95
+ # Write permissions are required to create Github releases, id-token for npm trusted publishing
96
+ permissions:
97
+ contents: write
98
+ id-token: write
123
99
 
124
- # - name: Create a clean build
125
- # run: npm run build
126
- - name: Publish package to npm
127
- run: |
128
- npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
129
- npm whoami
130
- npm publish
131
-
132
- - name: Create Github Release
133
- uses: actions/create-release@v1
134
- env:
135
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100
+ steps:
101
+ - uses: ioBroker/testing-action-deploy@v1
136
102
  with:
137
- tag_name: ${{ github.ref }}
138
- release_name: Release v${{ steps.extract_release.outputs.VERSION }}
139
- draft: false
140
- # Prerelease versions create prereleases on Github
141
- prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
142
- body: ${{ steps.extract_release.outputs.BODY }}
103
+ node-version: '22.x'
104
+ install-command: 'npm install'
105
+ # no package-lock.json in this repository, so there is nothing to cache
106
+ package-cache: 'false'
107
+ build: false
108
+ github-token: ${{ secrets.GITHUB_TOKEN }}
package/.mocharc.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "require": [
3
+ "./test/mocha.setup.js"
4
+ ]
5
+ }
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017-2020, bluefox <dogafox@gmail.com>
3
+ Copyright (c) 2017-2026, bluefox <dogafox@gmail.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,5 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  ![Logo](admin/maxcube.png)
2
2
  # ioBroker.maxcube
3
3
  ==================================
4
- ![Number of Installations](http://iobroker.live/badges/maxcube-installed.svg) ![Number of Installations](http://iobroker.live/badges/maxcube-stable.svg) [![NPM version](http://img.shields.io/npm/v/iobroker.maxcube.svg)](https://www.npmjs.com/package/iobroker.maxcube)
5
- [![Downloads](https://img.shields.io/npm/dm/iobroker.maxcube.svg)](https://www.npmjs.com/package/iobroker.maxcube)
6
- [![Tests](https://travis-ci.org/ioBroker/ioBroker.maxcube.svg?branch=master)](https://travis-ci.org/ioBroker/ioBroker.maxcube)
4
+ ![Number of Installations](http://iobroker.live/badges/maxcube-installed.svg)
5
+ ![Number of Installations](http://iobroker.live/badges/maxcube-stable.svg)
6
+ [![NPM version](http://img.shields.io/npm/v/iobroker.maxcube.svg)](https://www.npmjs.com/package/iobroker.maxcube)
7
7
 
8
- [![NPM](https://nodei.co/npm/iobroker.maxcube.png?downloads=true)](https://nodei.co/npm/iobroker.maxcube/)
8
+ ![Test and Release](https://github.com/ioBroker/ioBroker.maxcube/workflows/Test%20and%20Release/badge.svg)
9
+ [![Translation status](https://weblate.iobroker.net/widgets/adapters/-/maxcube/svg-badge.svg)](https://weblate.iobroker.net/engage/adapters/?utm_source=widget)
10
+ [![Downloads](https://img.shields.io/npm/dm/iobroker.maxcube.svg)](https://www.npmjs.com/package/iobroker.maxcube)
9
11
 
10
12
  ioBroker adapter to control Max! via Cube
11
13
 
@@ -18,6 +20,11 @@ ioBroker adapter to control Max! via Cube
18
20
  Before using you must first connect all devices to MAX! Cube via MAX! Firmware.
19
21
 
20
22
  ## Changelog
23
+ ### 1.0.5 (2026-12-05)
24
+ * (@GermanBluefox) js-controller 8 no longer lists the port of the MAX! Cube (`port`) as used by the adapter: the adapter only connects to it
25
+
26
+ ### 1.0.4 (2021-07-15)
27
+ * (thost96/Apollon77) optimize for js-controller 3.3
21
28
 
22
29
  ### 1.0.3 (2021-04-10)
23
30
  * (thost96) fixed state has no existing object for info.serial_number
@@ -29,25 +36,8 @@ Before using you must first connect all devices to MAX! Cube via MAX! Firmware.
29
36
  * (Apollon77) Update dependencies
30
37
  * (Apollon77) make compatible with js-controller 3
31
38
 
32
- ### 1.0.1 (2018-07-06)
33
- * (stabilostick) initialization of working state
34
- * (stabilostick) setpoint rounding to 0.5
35
- * (stabilostick) upstream only changed states
36
- * (stabilostick) stabilize state display for setpoint and mode values
37
-
38
- ### 1.0.0 (2018-05-24)
39
- * (bluefox) refactoring
40
- * (bluefox) added admin3
41
-
42
- ### 0.1.2 (2017-06-11)
43
- * (paul53) Try to read wall thermostat
44
-
45
- ### 0.1.1 (2017-06-07)
46
- * (bluefox) use local maxcube lib
47
-
48
- ### 0.1.0 (2017-06-05)
49
- * (bluefox) intial commit
39
+ [Older changelogs can be found there](CHANGELOG_OLD.md)
50
40
 
51
41
  ## License
52
42
 
53
- MIT Copyright (c) 2017-2020 bluefox
43
+ MIT Copyright (c) 2017-2026 bluefox
package/admin/words.js CHANGED
@@ -1,15 +1,14 @@
1
- // DO NOT EDIT THIS FILE!!! IT WILL BE AUTOMATICALLY GENERATED FROM src/i18n
2
1
  /*global systemDictionary:true */
3
2
  'use strict';
4
3
 
5
4
  systemDictionary = {
6
- "MAX! CUL adapter settings": { "en": "MAX! CUL adapter settings", "de": "MAX! CUL-Adaptereinstellungen", "ru": "Настройки MAX! CUL Драйвера", "pt": "MAX! CUL adapter settings", "nl": "MAX! CUL adapter settings", "fr": "MAX! CUL adapter settings", "it": "MAX! CUL adapter settings", "es": "MAX! CUL adapter settings", "pl": "MAX! CUL adapter settings"},
7
- "MAX! Cube IP:": { "en": "MAX! Cube IP", "de": "MAX! Cube IP", "ru": "MAX! Cube IP", "pt": "MAX! Cube IP", "nl": "MAX! Cube IP", "fr": "MAX! Cube IP", "it": "MAX! Cube IP", "es": "MAX! Cube IP", "pl": "MAX! Cube IP"},
8
- "Find Bridge": { "en": "Find Bridge", "de": "Finde die Bridge", "ru": "Find Bridge", "pt": "Find Bridge", "nl": "Find Bridge", "fr": "Find Bridge", "it": "Find Bridge", "es": "Find Bridge", "pl": "Find Bridge"},
9
- "MAX! Cube Port:": { "en": "MAX! Cube Port", "de": "MAX! Cube Port", "ru": "MAX! Cube Port", "pt": "MAX! Cube Port", "nl": "MAX! Cube Port", "fr": "MAX! Cube Port", "it": "MAX! Cube Port", "es": "MAX! Cube Port", "pl": "MAX! Cube Port"},
10
- "Own IP interface:": { "en": "Own IP interface", "de": "Eigene IP-Schnittstelle", "ru": "Собственный IP-интерфейс", "pt": "Interface IP própria", "nl": "Eigen IP-interface", "fr": "Propre interface IP", "it": "Proprio interfaccia IP", "es": "Interfaz IP propia", "pl": "Własny interfejs IP"},
11
- "Refresh interval (ms):": { "en": "Refresh interval (ms)", "de": "Aktualisierungsintervall (ms)", "ru": "Интервал обновления (мс)", "pt": "Intervalo de atualização (ms)", "nl": "Interval vernieuwen (ms)", "fr": "Intervalle d'actualisation (ms)", "it": "Intervallo di aggiornamento (ms)", "es": "Intervalo de actualización (ms)", "pl": "Interwał odświeżania (ms)"},
12
- "Reconnect interval (ms):": { "en": "Reconnect interval (ms)", "de": "Verbindungsintervall (ms)", "ru": "Интервал повторного подключения (мс)", "pt": "Reconnect interval (ms)", "nl": "Reconnect interval (ms)", "fr": "Intervalle de reconnexion (ms)", "it": "Intervallo di riconnessione (ms)", "es": "Intervalo de reconexión (ms)", "pl": "Interwał ponownego połączenia (ms)"},
13
- "Browse": { "en": "Browse", "de": "Durchsuche", "ru": "Просматривать", "pt": "Squeaky toy", "nl": "Blader", "fr": "Feuilleter", "it": "Navigare", "es": "Vistazo", "pl": "Paść się"},
14
- "Listen on all IPs": { "en": "Listen on all IPs", "de": "Hören Sie auf allen IPs", "ru": "Слушайте все IP-адреса", "pt": "Ouça em todos os IPs", "nl": "Luister op alle IP's", "fr": "Écoutez sur toutes les adresses IP", "it": "Ascolta su tutti gli IP", "es": "Escuchar en todas las direcciones IP", "pl": "Posłuchaj na wszystkich IP"}
5
+ "Browse": { "en": "Browse", "de": "Durchsuchen", "ru": "Просматривать", "pt": "procurar", "nl": "Blader", "fr": "Feuilleter", "it": "Navigare", "es": "Vistazo", "pl": "Paść się", "zh-cn": "浏览"},
6
+ "Find Bridge": { "en": "Find Bridge", "de": "Bridge suchen", "ru": "Find Bridge", "pt": "Procurar Bridge", "nl": "Find Bridge", "fr": "Find Bridge", "it": "Find Bridge", "es": "Find Bridge", "pl": "Find Bridge", "zh-cn": "寻找桥梁"},
7
+ "Listen on all IPs": { "en": "Listen on all IPs", "de": "Zugriff von allen IPs zulassen", "ru": "Ожидать соединения на всех IP адресах", "pt": "Ouça em todos os IPs", "nl": "Luister op alle IP's", "fr": "Écoutez sur toutes les adresses IP", "it": "Ascolta su tutti gli IP", "es": "Escuchar en todas las direcciones IP", "pl": "Posłuchaj na wszystkich IP", "zh-cn": "聆听所有IP"},
8
+ "MAX! CUL adapter settings": { "en": "MAX! CUL adapter settings", "de": "MAX! CUL-Adaptereinstellungen", "ru": "Настройки MAX! CUL Драйвера", "pt": "Configurações do adaptador MAX! CUL", "nl": "MAX! CUL adapter settings", "fr": "MAX! CUL adapter settings", "it": "MAX! CUL adapter settings", "es": "MAX! CUL adapter settings", "pl": "MAX! CUL adapter settings", "zh-cn": "最大限度! "},
9
+ "MAX! Cube IP:": { "en": "MAX! Cube IP", "de": "MAX! Cube IP", "ru": "MAX! Cube IP", "pt": "MAX! Cube IP", "nl": "MAX! Cube IP", "fr": "MAX! Cube IP", "it": "MAX! Cube IP", "es": "MAX! Cube IP", "pl": "MAX! Cube IP", "zh-cn": "最大限度!"},
10
+ "MAX! Cube Port:": { "en": "MAX! Cube Port", "de": "MAX! Cube Port", "ru": "MAX! Cube Port", "pt": "MAX! Cube Porta", "nl": "MAX! Cube Port", "fr": "MAX! Cube Port", "it": "MAX! Cube Port", "es": "MAX! Cube Port", "pl": "MAX! Cube Port", "zh-cn": "最大限度!"},
11
+ "Own IP interface:": { "en": "Own IP interface", "de": "Eigene IP-Schnittstelle", "ru": "Собственный IP-интерфейс", "pt": "Própria Interface IP", "nl": "Eigen IP-interface", "fr": "Propre interface IP", "it": "Proprio interfaccia IP", "es": "Interfaz IP propia", "pl": "Własny interfejs IP", "zh-cn": "自己的IP接口"},
12
+ "Reconnect interval (ms):": { "en": "Reconnect interval (ms)", "de": "Verbindungsintervall (ms)", "ru": "Интервал повторного подключения (мс)", "pt": "Intervalo de reconexão (ms)", "nl": "Reconnect interval (ms)", "fr": "Intervalle de reconnexion (ms)", "it": "Intervallo di riconnessione (ms)", "es": "Intervalo de reconexión (ms)", "pl": "Interwał ponownego połączenia (ms)", "zh-cn": "重新连接间隔(毫秒)"},
13
+ "Refresh interval (ms):": { "en": "Refresh interval (ms)", "de": "Aktualisierungsintervall (ms)", "ru": "Интервал обновления (мс)", "pt": "Intervalo de atualização (ms)", "nl": "Interval vernieuwen (ms)", "fr": "Intervalle d'actualisation (ms)", "it": "Intervallo di aggiornamento (ms)", "es": "Intervalo de actualización (ms)", "pl": "Interwał odświeżania (ms)", "zh-cn": "刷新间隔(毫秒)"},
15
14
  };
package/io-package.json CHANGED
@@ -1,8 +1,33 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "maxcube",
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "news": {
6
+ "1.0.5": {
7
+ "en": "js-controller 8 no longer lists the port of the MAX! Cube (`port`) as used by the adapter: the adapter only connects to it",
8
+ "de": "js-controller 8 listet den Port des MAX! Cube (`port`) nicht mehr als vom Adapter benutzt: Der Adapter verbindet sich nur mit ihm",
9
+ "ru": "js-controller 8 больше не показывает порт MAX! Cube (`port`) как используемый адаптером: адаптер только подключается к нему",
10
+ "pt": "O js-controller 8 deixa de listar a porta do MAX! Cube (`port`) como usada pelo adaptador: o adaptador apenas se conecta a ela",
11
+ "nl": "js-controller 8 vermeldt de poort van de MAX! Cube (`port`) niet langer als gebruikt door de adapter: de adapter maakt er alleen verbinding mee",
12
+ "fr": "js-controller 8 ne liste plus le port du MAX! Cube (`port`) comme utilisé par l'adaptateur : l'adaptateur s'y connecte seulement",
13
+ "it": "js-controller 8 non elenca più la porta del MAX! Cube (`port`) come usata dall'adattatore: l'adattatore si collega soltanto ad essa",
14
+ "es": "js-controller 8 ya no muestra el puerto del MAX! Cube (`port`) como usado por el adaptador: el adaptador solo se conecta a él",
15
+ "pl": "js-controller 8 nie wyświetla już portu MAX! Cube (`port`) jako używanego przez adapter: adapter tylko się z nim łączy",
16
+ "uk": "js-controller 8 більше не показує порт MAX! Cube (`port`) як використовуваний адаптером: адаптер лише підключається до нього",
17
+ "zh-cn": "js-controller 8 不再将 MAX! Cube 的端口(`port`)列为适配器使用的端口:适配器只是连接到它"
18
+ },
19
+ "1.0.4": {
20
+ "en": "(thost96/Apollon77) optimize for js-controller 3.3",
21
+ "de": "(thost96/Apollon77) optimieren für js-controller 3.3",
22
+ "ru": "(thost96 / Apollon77) оптимизировать под js-controller 3.3",
23
+ "pt": "(thost96 / Apollon77) otimizar para js-controller 3.3",
24
+ "nl": "(thost96/Apollon77) optimaliseren voor js-controller 3.3",
25
+ "fr": "(thost96/Apollon77) optimiser pour js-controller 3.3",
26
+ "it": "(thhost96/Apollon77) ottimizza per js-controller 3.3",
27
+ "es": "(thost96 / Apollon77) optimizar para js-controller 3.3",
28
+ "pl": "(thost96/Apollon77) optymalizacja dla kontrolera js 3.3",
29
+ "zh-cn": "(thost96/Apollon77) 针对 js-controller 3.3 优化"
30
+ },
6
31
  "1.0.3": {
7
32
  "en": "Prevent js-controller 3.2 warnings",
8
33
  "de": "Verhindern Sie Warnungen von js-controller 3.2",
@@ -41,30 +66,33 @@
41
66
  "en": "Try to read wall thermostat",
42
67
  "de": "Versuche WandThermostat zu lesen",
43
68
  "ru": "Читает настенные термостаты"
44
- },
45
- "0.1.1": {
46
- "en": "use local maxcube lib",
47
- "de": "Benutze lokale maxcube Bibliothek",
48
- "ru": "используется локальная версия библиотеки maxcube"
49
- },
50
- "0.1.0": {
51
- "en": "intial commit",
52
- "de": "intial commit",
53
- "ru": "intial commit"
54
69
  }
55
70
  },
56
71
  "title": "Max! Cube",
57
72
  "desc": {
58
73
  "en": "Control MAX! devices over MAX! Cube",
59
74
  "de": "Steuere MAX! Geräte mit dem Max! Cube",
60
- "ru": "Управляет устройствами MAX! при помощи Max! Cube"
75
+ "ru": "Управляет устройствами MAX! при помощи Max! Cube",
76
+ "pt": "Control MAX! ",
77
+ "nl": "Controle MAX! ",
78
+ "fr": "Contrôlez MAX! ",
79
+ "it": "Controllo MAX! ",
80
+ "es": "Control MAX! ",
81
+ "pl": "Control MAX! ",
82
+ "zh-cn": "控制MAX!"
61
83
  },
62
84
  "platform": "javascript/Node.js",
63
85
  "mode": "daemon",
86
+ "declareUsedResources": false,
64
87
  "loglevel": "info",
65
- "license": "MIT",
88
+ "licenseInformation": {
89
+ "type": "free",
90
+ "license": "MIT"
91
+ },
66
92
  "enabled": true,
67
- "materialize": true,
93
+ "adminUI": {
94
+ "config": "materialize"
95
+ },
68
96
  "messagebox": true,
69
97
  "icon": "maxcube.png",
70
98
  "extIcon": "https://raw.githubusercontent.com/ioBroker/ioBroker.maxcube/master/admin/maxcube.png",
@@ -77,6 +105,9 @@
77
105
  ],
78
106
  "readme": "https://github.com/ioBroker/ioBroker.maxcube/blob/master/README.md",
79
107
  "type": "climate-control",
108
+ "connectionType": "local",
109
+ "dataSource": "push",
110
+ "tier": 2,
80
111
  "authors": [
81
112
  {
82
113
  "name": "bluefox",
@@ -9,7 +9,7 @@ const EQ3MAX_DEV_TYPE_PUSH_BUTTON = 5;
9
9
  const EQ3MAX_DEV_TYPE_WINDOW_SWITCH = 6;
10
10
  const EQ3MAX_DEV_TYPE_UNKNOWN = 99;
11
11
 
12
- const StringDecoder = require('string_decoder').StringDecoder;
12
+ const StringDecoder = require('node:string_decoder').StringDecoder;
13
13
  const stringDecoder = new StringDecoder('utf8');
14
14
 
15
15
  function parse(commandType, payload, log) {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const net = require('net');
4
- const util = require('util');
5
- const EventEmitter = require('events').EventEmitter;
3
+ const net = require('node:net');
4
+ const util = require('node:util');
5
+ const EventEmitter = require('node:events').EventEmitter;
6
6
 
7
7
  function MaxCubeLowLevel(ip, port) {
8
8
  this.ip = ip;
@@ -3,8 +3,8 @@
3
3
  const MaxCubeLowLevel = require('./maxcube-lowlevel');
4
4
  const MaxCubeCommandParser = require('./maxcube-commandparser');
5
5
  const MaxCubeCommandFactory = require('./maxcube-commandfactory');
6
- const util = require('util');
7
- const EventEmitter = require('events').EventEmitter;
6
+ const util = require('node:util');
7
+ const EventEmitter = require('node:events').EventEmitter;
8
8
 
9
9
  // Constructor
10
10
  function MaxCube(ip, port, log) {
package/main.js CHANGED
@@ -6,7 +6,7 @@
6
6
  // you have to require the utils module and call adapter function
7
7
  const utils = require('@iobroker/adapter-core'); // Get common adapter utils
8
8
  const MaxCube = require(__dirname + '/lib/maxcube/maxcube.js');
9
- const dgram = require('dgram');
9
+ const dgram = require('node:dgram');
10
10
  const adapter = utils.Adapter('maxcube');
11
11
 
12
12
  let max;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "dogafox@gmail.com"
6
6
  },
7
7
  "description": "MAX! Cube adapter",
8
- "version": "1.0.3",
8
+ "version": "1.0.5",
9
9
  "bugs": {
10
10
  "url": "https://github.com/ioBroker/ioBroker.maxcube/issues"
11
11
  },
@@ -16,15 +16,14 @@
16
16
  }
17
17
  ],
18
18
  "dependencies": {
19
- "moment": "^2.29.1",
20
- "@iobroker/adapter-core": "^2.4.0"
19
+ "moment": "^2.29.4",
20
+ "@iobroker/adapter-core": "^2.6.7"
21
21
  },
22
22
  "devDependencies": {
23
- "@alcalzone/release-script": "^1.8.3",
24
- "axios": "^0.21.1",
25
- "chai": "^4.3.4",
23
+ "@alcalzone/release-script": "^2.2.1",
24
+ "axios": "^1.21.1",
26
25
  "gulp": "^4.0.2",
27
- "mocha": "^8.3.2"
26
+ "@iobroker/legacy-testing": "^4.0.2"
28
27
  },
29
28
  "directories": {},
30
29
  "homepage": "https://github.com/ioBroker/ioBroker.maxcube",