homebridge-melcloud-control 4.5.6-beta.5 → 4.5.6-beta.6
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/functions.js +8 -10
package/CHANGELOG.md
CHANGED
|
@@ -22,6 +22,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
22
22
|
|
|
23
23
|
- Do not use Homebridge UI > v5.5.0 because of break config.json
|
|
24
24
|
|
|
25
|
+
# [4.5.6] - (22.12.2025)
|
|
26
|
+
|
|
27
|
+
## Changes
|
|
28
|
+
|
|
29
|
+
- fix install chrome browser in docker image
|
|
30
|
+
- cleanup
|
|
31
|
+
|
|
25
32
|
# [4.5.5] - (21.12.2025)
|
|
26
33
|
|
|
27
34
|
## Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.5.6-beta.
|
|
4
|
+
"version": "4.5.6-beta.6",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/functions.js
CHANGED
|
@@ -113,7 +113,8 @@ class Functions extends EventEmitter {
|
|
|
113
113
|
await execPromise('opkg install chromium nspr nss libx11 libxcomposite libxdamage libxrandr atk libcups libdrm libgbm alsa-lib');
|
|
114
114
|
process.env.LD_LIBRARY_PATH = `/opt/lib:${process.env.LD_LIBRARY_PATH || ''}`;
|
|
115
115
|
} catch (error) {
|
|
116
|
-
if (this.
|
|
116
|
+
if (this.logDebug) this.emit('debug', `Install package for Qnap error: ${error}`);
|
|
117
|
+
return { path: null, arch, system: 'Qnap' };
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
for (const path of qnapCandidates) {
|
|
@@ -143,17 +144,14 @@ class Functions extends EventEmitter {
|
|
|
143
144
|
return { path: null, arch, system: 'Linux ARM' };
|
|
144
145
|
}
|
|
145
146
|
|
|
146
|
-
|
|
147
|
+
// Docker → install Chrome
|
|
147
148
|
if (isDocker) {
|
|
148
149
|
try {
|
|
149
|
-
await execPromise(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
|
|
153
|
-
apt-get install -y ./google-chrome-stable_current_amd64.deb
|
|
154
|
-
`);
|
|
150
|
+
await execPromise('apt-get update -y');
|
|
151
|
+
await execPromise('wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb');
|
|
152
|
+
await execPromise('apt-get install -y ./google-chrome-stable_current_amd64.deb');
|
|
155
153
|
} catch (error) {
|
|
156
|
-
if (this.
|
|
154
|
+
if (this.logDebug) this.emit('debug', `Chrome install error: ${error}`);
|
|
157
155
|
return { path: null, arch, system: 'Linux Docker' };
|
|
158
156
|
}
|
|
159
157
|
|
|
@@ -170,7 +168,7 @@ class Functions extends EventEmitter {
|
|
|
170
168
|
|
|
171
169
|
return { path: null, arch, system: 'unknown' };
|
|
172
170
|
} catch (error) {
|
|
173
|
-
if (this.
|
|
171
|
+
if (this.logDebug) this.emit('debug', `Chromium detection error: ${error.message}`);
|
|
174
172
|
return { path: null, arch: 'unknown', system: 'unknown' };
|
|
175
173
|
}
|
|
176
174
|
}
|