Closed k0201 closed 3 years ago
Changing line 155 to
with open("./SOFARMap.xml", encoding="utf8") as txtfile:
Did solve the problem, i suppose changing it in the repo is a good idea.
Glad to hear that :) Don't know if changing it permanently in the code is a good idea - encoding can be OS dependent ... Maybe a better solution would be to add config parameter to change it as required :) I'll thing about that.
I have added a pull request with CSV file saving support in which i harcoded the encoding
Please fork Your own project for that. Don't want to add a foreign code to this one.
Hi! Glad to see that someone did figure out how does protocol v5 works. I tried it on my inverter and I am getting such message:
The LWS serial numer is 174654****, FW: LSW3_14_FFFF_1.0.34 Inverter type is SF4ES008 (Sofar 8.8KTL-X) V2.40 I did try it on Windows with python 3.9.0 but can also check on linux later.
If you have any ideas what should I change to make it work I would be glad to hear them :D Thanks!