homebridge-melcloud-control 4.4.1-beta.29 → 4.4.1-beta.30

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.4.1-beta.29",
4
+ "version": "4.4.1-beta.30",
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
@@ -147,7 +147,8 @@ class Functions extends EventEmitter {
147
147
  if (!isDocker) {
148
148
  try {
149
149
  await execPromise('sudo apt update -y');
150
- await execPromise('sudo apt install -y chromium chromium-browser chromium-codecs-ffmpeg libnspr4 libnss3 libx11-6 libxcomposite1 libxdamage1 libxrandr2 libatk1.0-0 libcups2 libdrm2 libgbm1 libasound2');
150
+ await execPromise('sudo apt install -y libnspr4 libnss3 libx11-6 libxcomposite1 libxdamage1 libxrandr2 libatk1.0-0 libcups2 libdrm2 libgbm1 libasound2');
151
+ await execPromise('sudo apt install -y chromium chromium-browser chromium-codecs-ffmpeg');
151
152
  } catch (error) {
152
153
  if (this.logError) this.emit('error', `Install package for Linux ARM error: ${error}`);
153
154
  }
@@ -241,7 +241,7 @@ class MelCloudHome extends EventEmitter {
241
241
  chromiumPath = puppeteer.executablePath();
242
242
  if (!this.logDebug) this.emit('debug', `Using Puppeteer Chromium for ${system} (${arch}) at ${chromiumPath}`);
243
243
  } catch (error) {
244
- accountInfo.Info = `No Chromium available for ${system} (${arch})`;
244
+ accountInfo.Info = `No Puppeteer Chromium for ${system} (${arch}), error: ${error.message}`;
245
245
  return accountInfo;
246
246
  }
247
247
  }
@@ -252,7 +252,7 @@ class MelCloudHome extends EventEmitter {
252
252
  const { stdout } = await execPromise(`"${chromiumPath}" --version`);
253
253
  if (!this.logDebug) this.emit('debug', `Chromium for ${system} (${arch}) detected: ${stdout.trim()}`);
254
254
  } catch (error) {
255
- accountInfo.Info = `Chromium for ${system} (${arch}) found at ${chromiumPath}, but cannot be executed: ${error.message}`;
255
+ accountInfo.Info = `Chromium for ${system} (${arch}) found at ${chromiumPath}, but execute error: ${error.message}. Please install it manually and try again.`;
256
256
  return accountInfo;
257
257
  }
258
258