iobroker.maxcube 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/.github/dependabot.yml +20 -11
- package/.github/workflows/automerge-dependabot.yml +37 -0
- package/.github/workflows/codeql.yml +41 -0
- package/.github/workflows/{dependabot-automerge.yml → dependabot-automerge.yml.OLD} +1 -1
- package/.github/workflows/test-and-release.yml +23 -56
- package/.mocharc.json +5 -0
- package/LICENSE +1 -1
- package/README.md +4 -19
- package/admin/words.js +9 -9
- package/io-package.json +22 -13
- package/lib/maxcube/maxcube-commandparser.js +1 -1
- package/lib/maxcube/maxcube-lowlevel.js +3 -3
- package/lib/maxcube/maxcube.js +2 -2
- package/main.js +1 -1
- package/package.json +6 -7
package/.github/dependabot.yml
CHANGED
|
@@ -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
|
-
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
- package-ecosystem: 'github-actions'
|
|
6
|
+
directory: '/'
|
|
5
7
|
schedule:
|
|
6
|
-
interval:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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:
|
|
13
|
-
|
|
14
|
-
|
|
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 }}"
|
|
@@ -25,12 +25,12 @@ jobs:
|
|
|
25
25
|
|
|
26
26
|
strategy:
|
|
27
27
|
matrix:
|
|
28
|
-
node-version: [
|
|
28
|
+
node-version: [22.x]
|
|
29
29
|
|
|
30
30
|
steps:
|
|
31
|
-
- uses: actions/checkout@
|
|
31
|
+
- uses: actions/checkout@v4
|
|
32
32
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
33
|
-
uses: actions/setup-node@
|
|
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: [
|
|
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@
|
|
63
|
+
- uses: actions/checkout@v4
|
|
64
64
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
65
|
-
uses: actions/setup-node@
|
|
65
|
+
uses: actions/setup-node@v4
|
|
66
66
|
with:
|
|
67
67
|
node-version: ${{ matrix.node-version }}
|
|
68
68
|
|
|
@@ -80,62 +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
|
|
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
|
-
startsWith(github.ref, 'refs/tags/')
|
|
92
|
-
runs-on: ubuntu-latest
|
|
93
|
-
strategy:
|
|
94
|
-
matrix:
|
|
95
|
-
node-version: [12.x]
|
|
91
|
+
startsWith(github.ref, 'refs/tags/v')
|
|
96
92
|
|
|
97
|
-
|
|
98
|
-
- name: Checkout code
|
|
99
|
-
uses: actions/checkout@v2
|
|
100
|
-
|
|
101
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
102
|
-
uses: actions/setup-node@v2.2.0
|
|
103
|
-
with:
|
|
104
|
-
node-version: ${{ matrix.node-version }}
|
|
105
|
-
|
|
106
|
-
- name: Extract the version and commit body from the tag
|
|
107
|
-
id: extract_release
|
|
108
|
-
# The body may be multiline, therefore we need to escape some characters
|
|
109
|
-
run: |
|
|
110
|
-
VERSION="${{ github.ref }}"
|
|
111
|
-
VERSION=${VERSION##*/}
|
|
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"
|
|
93
|
+
runs-on: ubuntu-latest
|
|
119
94
|
|
|
120
|
-
|
|
121
|
-
|
|
95
|
+
# Write permissions are required to create Github releases, id-token for npm trusted publishing
|
|
96
|
+
permissions:
|
|
97
|
+
contents: write
|
|
98
|
+
id-token: write
|
|
122
99
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
- name: Publish package to npm
|
|
126
|
-
run: |
|
|
127
|
-
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
|
|
128
|
-
npm whoami
|
|
129
|
-
npm publish
|
|
130
|
-
|
|
131
|
-
- name: Create Github Release
|
|
132
|
-
uses: actions/create-release@v1
|
|
133
|
-
env:
|
|
134
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
100
|
+
steps:
|
|
101
|
+
- uses: ioBroker/testing-action-deploy@v1
|
|
135
102
|
with:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2017-
|
|
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
|
package/README.md
CHANGED
|
@@ -20,6 +20,8 @@ ioBroker adapter to control Max! via Cube
|
|
|
20
20
|
Before using you must first connect all devices to MAX! Cube via MAX! Firmware.
|
|
21
21
|
|
|
22
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
|
|
23
25
|
|
|
24
26
|
### 1.0.4 (2021-07-15)
|
|
25
27
|
* (thost96/Apollon77) optimize for js-controller 3.3
|
|
@@ -34,25 +36,8 @@ Before using you must first connect all devices to MAX! Cube via MAX! Firmware.
|
|
|
34
36
|
* (Apollon77) Update dependencies
|
|
35
37
|
* (Apollon77) make compatible with js-controller 3
|
|
36
38
|
|
|
37
|
-
|
|
38
|
-
* (stabilostick) initialization of working state
|
|
39
|
-
* (stabilostick) setpoint rounding to 0.5
|
|
40
|
-
* (stabilostick) upstream only changed states
|
|
41
|
-
* (stabilostick) stabilize state display for setpoint and mode values
|
|
42
|
-
|
|
43
|
-
### 1.0.0 (2018-05-24)
|
|
44
|
-
* (bluefox) refactoring
|
|
45
|
-
* (bluefox) added admin3
|
|
46
|
-
|
|
47
|
-
### 0.1.2 (2017-06-11)
|
|
48
|
-
* (paul53) Try to read wall thermostat
|
|
49
|
-
|
|
50
|
-
### 0.1.1 (2017-06-07)
|
|
51
|
-
* (bluefox) use local maxcube lib
|
|
52
|
-
|
|
53
|
-
### 0.1.0 (2017-06-05)
|
|
54
|
-
* (bluefox) intial commit
|
|
39
|
+
[Older changelogs can be found there](CHANGELOG_OLD.md)
|
|
55
40
|
|
|
56
41
|
## License
|
|
57
42
|
|
|
58
|
-
MIT Copyright (c) 2017-
|
|
43
|
+
MIT Copyright (c) 2017-2026 bluefox
|
package/admin/words.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
systemDictionary = {
|
|
5
|
-
"Browse": { "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"MAX!
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
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": "刷新间隔(毫秒)"},
|
|
14
14
|
};
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "maxcube",
|
|
4
|
-
"version": "1.0.
|
|
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
|
+
},
|
|
6
19
|
"1.0.4": {
|
|
7
20
|
"en": "(thost96/Apollon77) optimize for js-controller 3.3",
|
|
8
21
|
"de": "(thost96/Apollon77) optimieren für js-controller 3.3",
|
|
@@ -53,16 +66,6 @@
|
|
|
53
66
|
"en": "Try to read wall thermostat",
|
|
54
67
|
"de": "Versuche WandThermostat zu lesen",
|
|
55
68
|
"ru": "Читает настенные термостаты"
|
|
56
|
-
},
|
|
57
|
-
"0.1.1": {
|
|
58
|
-
"en": "use local maxcube lib",
|
|
59
|
-
"de": "Benutze lokale maxcube Bibliothek",
|
|
60
|
-
"ru": "используется локальная версия библиотеки maxcube"
|
|
61
|
-
},
|
|
62
|
-
"0.1.0": {
|
|
63
|
-
"en": "intial commit",
|
|
64
|
-
"de": "intial commit",
|
|
65
|
-
"ru": "intial commit"
|
|
66
69
|
}
|
|
67
70
|
},
|
|
68
71
|
"title": "Max! Cube",
|
|
@@ -80,10 +83,16 @@
|
|
|
80
83
|
},
|
|
81
84
|
"platform": "javascript/Node.js",
|
|
82
85
|
"mode": "daemon",
|
|
86
|
+
"declareUsedResources": false,
|
|
83
87
|
"loglevel": "info",
|
|
84
|
-
"
|
|
88
|
+
"licenseInformation": {
|
|
89
|
+
"type": "free",
|
|
90
|
+
"license": "MIT"
|
|
91
|
+
},
|
|
85
92
|
"enabled": true,
|
|
86
|
-
"
|
|
93
|
+
"adminUI": {
|
|
94
|
+
"config": "materialize"
|
|
95
|
+
},
|
|
87
96
|
"messagebox": true,
|
|
88
97
|
"icon": "maxcube.png",
|
|
89
98
|
"extIcon": "https://raw.githubusercontent.com/ioBroker/ioBroker.maxcube/master/admin/maxcube.png",
|
|
@@ -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;
|
package/lib/maxcube/maxcube.js
CHANGED
|
@@ -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.
|
|
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.
|
|
20
|
-
"@iobroker/adapter-core": "^2.
|
|
19
|
+
"moment": "^2.29.4",
|
|
20
|
+
"@iobroker/adapter-core": "^2.6.7"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@alcalzone/release-script": "^2.2.
|
|
24
|
-
"axios": "^
|
|
25
|
-
"chai": "^4.3.4",
|
|
23
|
+
"@alcalzone/release-script": "^2.2.1",
|
|
24
|
+
"axios": "^1.21.1",
|
|
26
25
|
"gulp": "^4.0.2",
|
|
27
|
-
"
|
|
26
|
+
"@iobroker/legacy-testing": "^4.0.2"
|
|
28
27
|
},
|
|
29
28
|
"directories": {},
|
|
30
29
|
"homepage": "https://github.com/ioBroker/ioBroker.maxcube",
|