The script is great, however it cannot be run on Linux machine as msvcrt is Windows only library. I would like to use my Raspberry Pi to collect data from the inverter. Unfortunately, I could not get it to work as my experience with Python is non-existent. Would it be possible to port it?