-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hi
I have got a growatt SPF-5000TL, I run the script on the Raspberry,
I receive a syntax error
File "solarmon.py", line 23
print('Setup InfluxDB Client... ', end='')
^
SyntaxError: invalid syntax
and when commenting out " print('Setup InfluxDB Client... ', end='')" and print('Setup Serial Connection... ', end='') I I can get past the error, but receive the following error, I have double check that the RS485A and RS485B pins are correct as per Growatt inverter as well that I can see /ttyUSB0 as the device to use.
Loading inverters...
Traceback (most recent call last):
File "solarmon.py", line 47, in
growatt = Growatt(client, name, unit)
File "/home/pi/solarmon/growatt.py", line 58, in init
self.read_info()
File "/home/pi/solarmon/growatt.py", line 63, in read_info
raise row
pymodbus.exceptions.ModbusIOException: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 2 bytes (0 received)
Any assistance will be greatly appreciated.
Thanks Dawie