hm2mqtt 3.4.0 → 3.4.2

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.
Files changed (3) hide show
  1. package/README.md +8 -6
  2. package/index.js +9 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -52,12 +52,14 @@ For a setup without a server: hm2mqtt also ships as a CCU addon, installed in th
52
52
  _Systemsteuerung → Zusatzsoftware_. Pick the package for your hardware from the
53
53
  [latest release](https://github.com/hobbyquaker/hm2mqtt.js/releases/latest):
54
54
 
55
- | Platform | Package |
56
- | ------------------------------------------------ | -------------------------------------- |
57
- | CCU3 with the official eQ-3 firmware | `hm2mqtt-ccu-armv7l-<version>.tar.gz` |
58
- | OpenCCU 32-bit (CCU3 hardware, Raspberry Pi 2/3) | `hm2mqtt-ccu-armv7l-<version>.tar.gz` |
59
- | OpenCCU 64-bit (Raspberry Pi 4/5) | `hm2mqtt-ccu-aarch64-<version>.tar.gz` |
60
- | OpenCCU on x86_64 (debmatic, virtual machines) | `hm2mqtt-ccu-x86_64-<version>.tar.gz` |
55
+ | Platform | Package |
56
+ | ---------------------------------------------------------------- | -------------------------------------- |
57
+ | CCU3 with the official eQ-3 firmware, ELV-Charly, OpenCCU 32-bit | `hm2mqtt-ccu-armv7l-<version>.tar.gz` |
58
+ | OpenCCU 64-bit (Raspberry Pi 4/5) | `hm2mqtt-ccu-aarch64-<version>.tar.gz` |
59
+ | OpenCCU on x86_64 (debmatic, virtual machines) | `hm2mqtt-ccu-x86_64-<version>.tar.gz` |
60
+
61
+ The architecture decides, not the firmware — `uname -m` on the CCU says which one it is. A CCU3 with
62
+ the original eQ-3 firmware is always `armv7l`. Each package has a `.sha256` next to it.
61
63
 
62
64
  After the install a **hm2mqtt** button appears in _Systemsteuerung_: it configures every option of
63
65
  this README in a form, starts and stops the service and shows the log. The only setting that has to
package/index.js CHANGED
@@ -96,7 +96,15 @@ function firstIp() {
96
96
 
97
97
  // the option's default is $STATE_DIRECTORY only, so --install does not freeze this fallback into the env file
98
98
  config.stateDir = config.stateDir || path.join(os.homedir(), '.hm2mqtt');
99
- fs.mkdirSync(config.stateDir, {recursive: true});
99
+ try {
100
+ fs.mkdirSync(config.stateDir, {recursive: true});
101
+ } catch (error) {
102
+ // a home directory that does not exist or a read-only filesystem: say which path and what to
103
+ // set, instead of an ENOENT stack trace from deep in node:fs
104
+ console.error(`error: cannot create the state directory ${config.stateDir}: ${error.message}`);
105
+ console.error('set --state-dir (HM2MQTT_STATE_DIR) to a writable path');
106
+ process.exit(1);
107
+ }
100
108
 
101
109
  let nameFile = {};
102
110
  if (config.nameFile) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hm2mqtt",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "Interface between Homematic CCU and MQTT",
5
5
  "type": "module",
6
6
  "main": "index.js",