Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting errors trying to connect #23

Open
doublejj0321 opened this issue Nov 1, 2022 · 4 comments
Open

getting errors trying to connect #23

doublejj0321 opened this issue Nov 1, 2022 · 4 comments

Comments

@doublejj0321
Copy link

Unable to install without getting errors, any ideas?

====================
[01/11/2022, 07:52:19] ERROR LOADING PLUGIN homebridge-ecowitt:
[01/11/2022, 07:52:19] TypeError: Cannot set property closed of # which has only a getter
at patch (/usr/local/lib/node_modules/homebridge-ecowitt/node_modules/restify/lib/request.js:848:30)
at Object. (/usr/local/lib/node_modules/homebridge-ecowitt/node_modules/restify/lib/server.js:33:1)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Function.Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/usr/local/lib/node_modules/homebridge-ecowitt/node_modules/restify/lib/index.js:10:14)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
[01/11/2022, 07:52:19] ====================

"mac": "30:83:98:A7:18:A3",
"port": 8080,
"path": "/data/report/",
"ws": {
"hide": true,
"uv": {
"hide": false,
"threshold": 6
},
"solarradiation": {
"hide": false,
"luxFactor": 126.7
},
"wind": {
"units": "beaufort",
"speedThreshold": 1,
"gustThreshold": 3,
"maxDailyGustThreshold": 8
},
"rain": {
"units": "mm"
}
},
"thbin": {
"hide": true
},
"th": {
"hide": false,
"name1": "one",
"name2": "two"
},
"soil": {
"hide": true
},
"leak": {
"hide": true
},
"pm25": {
"hide": true
},
"lightning": {
"hide": true,
"units": "km"
},
"platform": "Ecowitt"
}

@LordJohnWhorfin
Copy link

Roll back node.js to v17

@TurboSasch
Copy link

Same problem here. Is it possible, that the plugin could upgrade to the actually node.js?

@rhockenbury
Copy link

Hi @doublejj0321, @LordJohnWhorfin, @TurboSasch. If you are still looking for a solution, I have a new Ecowitt plugin available (v2), check out Homebridge Ecowitt Weather Sensors which can be installed through the Homebridge UI. This new plugin no longer uses Restify which is throwing the error mentioned above. Would appreciate any feedback if you have time to give this new version a try, and let me know if you hit any issues.

@LordJohnWhorfin
Copy link

LordJohnWhorfin commented Sep 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants