Problem:
Read a TCP/IP modbus device from a Linux server so that we can get power generated, energy generated, and voltages from our newly installed solar system.
Solution:
Search the web and find MBUtils, an open source set of python libraries that allow you to communicate with Modbus devices and servers. They also allow you to communicate with PLC’s and other control devices.
The project is on sourceforge (love this site) as MBLogic http://mblogic.sourceforge.net/ I recommend downloading the full package because you will need to install the libraries as well as the pollmb utility package. Follow the install directions in the readme file.