homebridge-melcloud-control 4.0.0-beta.437 → 4.0.0-beta.438
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/package.json +1 -1
- package/src/functions.js +6 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.438",
|
|
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
|
@@ -109,7 +109,7 @@ class Functions {
|
|
|
109
109
|
return chromiumPath;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
console.log('Chromium not found. Attempting installation...');
|
|
113
113
|
|
|
114
114
|
// --- apt-get ---
|
|
115
115
|
try {
|
|
@@ -120,7 +120,7 @@ class Functions {
|
|
|
120
120
|
console.log('Chromium installed successfully via apt-get.');
|
|
121
121
|
return chromiumPath;
|
|
122
122
|
} catch {
|
|
123
|
-
|
|
123
|
+
console.log('apt-get install failed. Trying apk or yum...');
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
// --- apk (Alpine) ---
|
|
@@ -132,7 +132,7 @@ class Functions {
|
|
|
132
132
|
console.log('Chromium installed successfully via apk.');
|
|
133
133
|
return chromiumPath;
|
|
134
134
|
} catch {
|
|
135
|
-
|
|
135
|
+
console.log('apk install failed. Trying yum...');
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
// --- yum (RHEL/CentOS) ---
|
|
@@ -144,17 +144,16 @@ class Functions {
|
|
|
144
144
|
console.log('Chromium installed successfully via yum.');
|
|
145
145
|
return chromiumPath;
|
|
146
146
|
} catch {
|
|
147
|
-
|
|
147
|
+
console.log('yum install failed. Falling back to Puppeteer bundled Chromium.');
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
// --- Fallback Puppeteer Chromium ---
|
|
151
151
|
chromiumPath = puppeteer.executablePath();
|
|
152
|
-
|
|
152
|
+
console.log(`Using bundled Puppeteer Chromium at ${chromiumPath}`);
|
|
153
153
|
return chromiumPath;
|
|
154
154
|
|
|
155
155
|
} catch (err) {
|
|
156
|
-
|
|
157
|
-
throw err;
|
|
156
|
+
console.log(`Chromium detection/install error: ${err.message}`);
|
|
158
157
|
}
|
|
159
158
|
}
|
|
160
159
|
|