-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix for newer devices #34
base: master
Are you sure you want to change the base?
Conversation
Change encoding/decoding and some clean up.
Add instruction for running as a service.
double line
Typo
remove log report
Hi, how do i get this in docker? |
Broke docker install
@@ -17,6 +17,7 @@ | |||
}, | |||
"dependencies": { | |||
"dotenv": "^8.1.0", | |||
"mcrypt": "^0.1.17", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I see mcrypt
package has been deprecated and not maintained anymore. The author suggests using cryptian
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mcrypt was the only decoder showing the strange characters after } in the json returning from the ac device and cryptian requires V19 and the use base is complete different.
@@ -1,7 +1,7 @@ | |||
FROM node:alpine | |||
FROM node:10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NodeJS v10 is pretty old and not supported anymore. Are there any reasons we can't use the latest LTS version as it was before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats my bad, mcrypt needs the full version of node and not specially v10. Used V10 because that was the default on my test system Debian Buster the OS for Domoticz stable.
Tried your fix (edited connection.js, device_manager.js, encryptor.js, package.json, package-lock.json files and index.js with the IP of the AC) before npm install, but then this Mcrypt is still missing:
I tried then to find a solution on the net to install mcrypt on to a RPi4, but failed, so any help is welcome! Thanks! |
Hi you run npm install then the module mcrypt installed. If not you package.json is missing mcrypt. You can run npm install mcrypt. |
Tried to install mcrypt as you said (nothing happened), but is still missing:
Node version: 16.13.1, Npm version: 8.19.2 |
That is strange, can you list your or check the first line of encryptor.js file? |
First line in /app/encryptor.js is:
|
This line is wrong. Please check the file or clone my github and chance branche to fix. |
Oh, sorry, my fault!
...and it WORKS perfectly! Thanks Stas and Xenomes, thanks and thanks again! |
Good to hear it is working! |
Many thanks for the fix and pull request! But I think your fix @ https://codeload.github.com/Xenomes/ewpe-smart-mqtt/zip/refs/heads/fix is way to hidden! It took me 3 days to find it and implement it to find our new Sinclair besides our older Gree at Domoticz with Mosquitto running npm start only to give error: internal/crypto/cipher.js:164 const ret = this._handle.final(); |
Thanks, it is not the best fix, but it works. |
It is not the best coding, but it works 😅