Coder Social home page Coder Social logo

Comments (5)

rimelis avatar rimelis commented on September 14, 2024

You can run your script in any device of your local network.
It's another yet inverter with different address ranges and functional codes. If you have a coding skills in Python you have to find the correct description of modbus protocol suitable for your inverter (maybe this one: https://forum.iobroker.net/assets/uploads/files/1638097185191-modbus-communication-protocol-storage-and-hybrid-inverter.pdf) and try to play with various ranges watching what is coming from. I have found that the fork of this project https://github.com/pawsuch/Sofar_G3_LSW3 is more minimalistic and works better as a starting point.

from sofar_lsw3.

r-schoepf avatar r-schoepf commented on September 14, 2024

tried it... error:

Traceback (most recent call last):
File "/volume1/PYTHON/Sofar_LSW3/InverterHWData.py", line 47, in
crc=binascii.unhexlify(str(padhex(hex(libscrc.modbus(businessfield)))[4:6])+str(padhex(hex(libscrc.modbus(businessfield)))[2:4])) # CRC16modbus
AttributeError: module 'libscrc' has no attribute 'modbus'

from sofar_lsw3.

r-schoepf avatar r-schoepf commented on September 14, 2024

an for the Sofar_LSW3 we recieve the following error:

File "/root/Temp$/Sofar_LSW3-main/InverterData.py", line 164, in
data = clientSocket.recv(1024);

from sofar_lsw3.

MichaluxPL avatar MichaluxPL commented on September 14, 2024

tried it... error:

Traceback (most recent call last): File "/volume1/PYTHON/Sofar_LSW3/InverterHWData.py", line 47, in crc=binascii.unhexlify(str(padhex(hex(libscrc.modbus(businessfield)))[4:6])+str(padhex(hex(libscrc.modbus(businessfield)))[2:4])) # CRC16modbus AttributeError: module 'libscrc' has no attribute 'modbus'

Looks like lack of some python libriaries installed or a different version, that lacks some subroutines.

from sofar_lsw3.

rimelis avatar rimelis commented on September 14, 2024

If you have a plans to run this on Synology I suggest to create Docker container for this script and install everything you need inside it. Synology creates a lot of headache as it's really stripped OS.

from sofar_lsw3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.