PLCHome / growatt

38 stars 9 forks source link

Communication failed #31

Closed Nbondb closed 4 months ago

Nbondb commented 4 months ago

SPH5000

Since 3:00 this morning I get 'communication failed' on attempting getPlatData. Shinephone still works, have Growatt changed something preventing this code to work? Managed to successfully get/setInverterSetting so looks like just a issue with getPlatDat.

Output from test.js login: { result: 1 } Error: The server sent an unexpected response: /error.do?errorMess=errorNoLogin at /data/data/com.termux/files/home/node_modules/growatt/lib/growatt.js:332:22 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Thanks

LosBagros commented 4 months ago

same

PLCHome commented 4 months ago

lib/growatt.js changed

PLCHome commented 4 months ago

fixed in 0.7.4

Nbondb commented 4 months ago

Now I get following

node:internal/modules/cjs/loader:1152 throw err; ^

Error: Cannot find module 'md5' Require stack:

PLCHome commented 4 months ago

RTFM you must install the package. MD5 is added.

npm install after update the version in your package.json

Nbondb commented 4 months ago

Sorry. Now RTFM and all is ok. Thanks for your quick response and solution.