I grabbed Inverter-Data-Logger from github and configured it, but not having much luck, maybe someone else has used this and had issues they have been able to resolve, that may apply to me as well.
Basically running
python LiveStats.py
gets me
2021-03-05 16:26:14,130 DEBUG Importing output plugin ConsoleOutput
2021-03-05 16:26:17,399 INFO Loggers found on the network: ['192.168.1.205', '1731982281'].
2021-03-05 16:26:17,399 INFO Connecting to logger with IP: 192.168.1.205 and SN 1731982281
2021-03-05 16:26:17,399 INFO connecting to 192.168.1.205 port 8899
2021-03-05 16:26:17,403 DEBUG RAW sent Packet (len=16): 68:02:41:b1:c9:f3:3b:67:c9:f3:3b:67:01:00:b1:16 hA;g;g
2021-03-05 16:26:27,414 ERROR Timeout connecting to logger with IP: 192.168.1.205 and SN 1731982281, trying next logger.
root@rpi4vno:~/Inverter-Data-Logger# python LiveStats.py
2021-03-05 20:00:49,557 DEBUG Importing output plugin ConsoleOutput
2021-03-05 20:00:52,562 ERROR No loggers found: [''], exiting.
mostly, once I got
2021-03-05 16:24:07,309 DEBUG Importing output plugin ConsoleOutput
2021-03-05 16:24:10,523 INFO Loggers found on the network: ['192.168.1.205', '1731982281'].
2021-03-05 16:24:10,524 INFO Connecting to logger with IP: 192.168.1.205 and SN 1731982281
2021-03-05 16:24:10,524 INFO connecting to 192.168.1.205 port 8899
2021-03-05 16:24:10,527 DEBUG RAW sent Packet (len=16): 68:02:41:b1:c9:f3:3b:67:c9:f3:3b:67:01:00:b1:16 hA;g;g
2021-03-05 16:24:13,998 DEBUG RAW received Packet (len=14): a5:01:00:10:47:fb:86:c9:f3:3b:67:00:37:15 G;g7
2021-03-05 16:24:13,999 DEBUG DATA len=1:
2021-03-05 16:24:13,999 INFO Inverter ID:
Traceback (most recent call last):
File "LiveStats.py", line 17, in <module>
inverter_exporter.run()
File "/root/Inverter-Data-Logger/InverterExport.py", line 157, in run
self.logger.info("RUN State: {0}".format(msg.run_state))
File "/root/Inverter-Data-Logger/InverterMsg.py", line 138, in run_state
return int(self.__get_short(offset[14], 1))
File "/root/Inverter-Data-Logger/InverterMsg.py", line 78, in __get_short
num = struct.unpack('!H', self.raw_msg[begin:begin + 2])[0]
struct.error: unpack requires a string argument of length 2
but no actual data, I have not changed any settings between the runs and here, proof that the unit can be reached and still does not actually respond...
root@rpi4vno:~/Inverter-Data-Logger# date; ping -c 5 192.168.1.205; python LiveStats.py; ping -c 5 192.168.1.205; python LiveStats.py; ping -c 5 192.168.1.205; date
Sat Mar 6 15:36:00 SAST 2021
PING 192.168.1.205 (192.168.1.205) 56(84) bytes of data.
64 bytes from 192.168.1.205: icmp_seq=1 ttl=255 time=3.93 ms
64 bytes from 192.168.1.205: icmp_seq=2 ttl=255 time=3.93 ms
64 bytes from 192.168.1.205: icmp_seq=3 ttl=255 time=2.80 ms
64 bytes from 192.168.1.205: icmp_seq=4 ttl=255 time=2.50 ms
64 bytes from 192.168.1.205: icmp_seq=5 ttl=255 time=2.47 ms
--- 192.168.1.205 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 10ms
rtt min/avg/max/mdev = 2.470/3.124/3.929/0.666 ms
2021-03-06 15:36:04,978 DEBUG Importing output plugin ConsoleOutput
2021-03-06 15:36:08,087 INFO Loggers found on the network: ['192.168.1.205', '1731982281'].
2021-03-06 15:36:08,087 INFO Connecting to logger with IP: 192.168.1.205 and SN 1731982281
2021-03-06 15:36:08,087 INFO connecting to 192.168.1.205 port 8899
2021-03-06 15:36:08,095 DEBUG RAW sent Packet (len=16): 68:02:41:b1:c9:f3:3b:67:c9:f3:3b:67:01:00:b1:16 hA;g;g
2021-03-06 15:36:18,106 ERROR Timeout connecting to logger with IP: 192.168.1.205 and SN 1731982281, trying next logger.
PING 192.168.1.205 (192.168.1.205) 56(84) bytes of data.
64 bytes from 192.168.1.205: icmp_seq=1 ttl=255 time=8.14 ms
64 bytes from 192.168.1.205: icmp_seq=2 ttl=255 time=1.60 ms
64 bytes from 192.168.1.205: icmp_seq=3 ttl=255 time=2.34 ms
64 bytes from 192.168.1.205: icmp_seq=4 ttl=255 time=6.98 ms
64 bytes from 192.168.1.205: icmp_seq=5 ttl=255 time=2.34 ms
--- 192.168.1.205 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 9ms
rtt min/avg/max/mdev = 1.596/4.280/8.142/2.718 ms
2021-03-06 15:36:22,212 DEBUG Importing output plugin ConsoleOutput
2021-03-06 15:36:25,291 INFO Loggers found on the network: ['192.168.1.205', '1731982281'].
2021-03-06 15:36:25,291 INFO Connecting to logger with IP: 192.168.1.205 and SN 1731982281
2021-03-06 15:36:25,291 INFO connecting to 192.168.1.205 port 8899
2021-03-06 15:36:25,295 DEBUG RAW sent Packet (len=16): 68:02:41:b1:c9:f3:3b:67:c9:f3:3b:67:01:00:b1:16 hA;g;g
2021-03-06 15:36:35,306 ERROR Timeout connecting to logger with IP: 192.168.1.205 and SN 1731982281, trying next logger.
PING 192.168.1.205 (192.168.1.205) 56(84) bytes of data.
64 bytes from 192.168.1.205: icmp_seq=1 ttl=255 time=1.79 ms
64 bytes from 192.168.1.205: icmp_seq=2 ttl=255 time=2.53 ms
64 bytes from 192.168.1.205: icmp_seq=3 ttl=255 time=3.81 ms
64 bytes from 192.168.1.205: icmp_seq=4 ttl=255 time=2.57 ms
64 bytes from 192.168.1.205: icmp_seq=5 ttl=255 time=2.69 ms
--- 192.168.1.205 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 11ms
rtt min/avg/max/mdev = 1.793/2.678/3.809/0.648 ms
Sat Mar 6 15:36:39 SAST 2021
if anybody has any bright ideas/can help, I would very much appreciate it.
Oh yes, in case I didn't mention it, the inverter is a Sunsynk 5kW, but I'd think that's probably less important.
Question
Kalahari Meerkat
HELP!
I grabbed Inverter-Data-Logger from github and configured it, but not having much luck, maybe someone else has used this and had issues they have been able to resolve, that may apply to me as well.
Basically running
python LiveStats.py
gets me
2021-03-05 16:26:14,130 DEBUG Importing output plugin ConsoleOutput 2021-03-05 16:26:17,399 INFO Loggers found on the network: ['192.168.1.205', '1731982281']. 2021-03-05 16:26:17,399 INFO Connecting to logger with IP: 192.168.1.205 and SN 1731982281 2021-03-05 16:26:17,399 INFO connecting to 192.168.1.205 port 8899 2021-03-05 16:26:17,403 DEBUG RAW sent Packet (len=16): 68:02:41:b1:c9:f3:3b:67:c9:f3:3b:67:01:00:b1:16 hA;g;g 2021-03-05 16:26:27,414 ERROR Timeout connecting to logger with IP: 192.168.1.205 and SN 1731982281, trying next logger. root@rpi4vno:~/Inverter-Data-Logger# python LiveStats.py 2021-03-05 20:00:49,557 DEBUG Importing output plugin ConsoleOutput 2021-03-05 20:00:52,562 ERROR No loggers found: [''], exiting.
mostly, once I got
but no actual data, I have not changed any settings between the runs and here, proof that the unit can be reached and still does not actually respond...
root@rpi4vno:~/Inverter-Data-Logger# date; ping -c 5 192.168.1.205; python LiveStats.py; ping -c 5 192.168.1.205; python LiveStats.py; ping -c 5 192.168.1.205; date Sat Mar 6 15:36:00 SAST 2021 PING 192.168.1.205 (192.168.1.205) 56(84) bytes of data. 64 bytes from 192.168.1.205: icmp_seq=1 ttl=255 time=3.93 ms 64 bytes from 192.168.1.205: icmp_seq=2 ttl=255 time=3.93 ms 64 bytes from 192.168.1.205: icmp_seq=3 ttl=255 time=2.80 ms 64 bytes from 192.168.1.205: icmp_seq=4 ttl=255 time=2.50 ms 64 bytes from 192.168.1.205: icmp_seq=5 ttl=255 time=2.47 ms --- 192.168.1.205 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 10ms rtt min/avg/max/mdev = 2.470/3.124/3.929/0.666 ms 2021-03-06 15:36:04,978 DEBUG Importing output plugin ConsoleOutput 2021-03-06 15:36:08,087 INFO Loggers found on the network: ['192.168.1.205', '1731982281']. 2021-03-06 15:36:08,087 INFO Connecting to logger with IP: 192.168.1.205 and SN 1731982281 2021-03-06 15:36:08,087 INFO connecting to 192.168.1.205 port 8899 2021-03-06 15:36:08,095 DEBUG RAW sent Packet (len=16): 68:02:41:b1:c9:f3:3b:67:c9:f3:3b:67:01:00:b1:16 hA;g;g 2021-03-06 15:36:18,106 ERROR Timeout connecting to logger with IP: 192.168.1.205 and SN 1731982281, trying next logger. PING 192.168.1.205 (192.168.1.205) 56(84) bytes of data. 64 bytes from 192.168.1.205: icmp_seq=1 ttl=255 time=8.14 ms 64 bytes from 192.168.1.205: icmp_seq=2 ttl=255 time=1.60 ms 64 bytes from 192.168.1.205: icmp_seq=3 ttl=255 time=2.34 ms 64 bytes from 192.168.1.205: icmp_seq=4 ttl=255 time=6.98 ms 64 bytes from 192.168.1.205: icmp_seq=5 ttl=255 time=2.34 ms --- 192.168.1.205 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 9ms rtt min/avg/max/mdev = 1.596/4.280/8.142/2.718 ms 2021-03-06 15:36:22,212 DEBUG Importing output plugin ConsoleOutput 2021-03-06 15:36:25,291 INFO Loggers found on the network: ['192.168.1.205', '1731982281']. 2021-03-06 15:36:25,291 INFO Connecting to logger with IP: 192.168.1.205 and SN 1731982281 2021-03-06 15:36:25,291 INFO connecting to 192.168.1.205 port 8899 2021-03-06 15:36:25,295 DEBUG RAW sent Packet (len=16): 68:02:41:b1:c9:f3:3b:67:c9:f3:3b:67:01:00:b1:16 hA;g;g 2021-03-06 15:36:35,306 ERROR Timeout connecting to logger with IP: 192.168.1.205 and SN 1731982281, trying next logger. PING 192.168.1.205 (192.168.1.205) 56(84) bytes of data. 64 bytes from 192.168.1.205: icmp_seq=1 ttl=255 time=1.79 ms 64 bytes from 192.168.1.205: icmp_seq=2 ttl=255 time=2.53 ms 64 bytes from 192.168.1.205: icmp_seq=3 ttl=255 time=3.81 ms 64 bytes from 192.168.1.205: icmp_seq=4 ttl=255 time=2.57 ms 64 bytes from 192.168.1.205: icmp_seq=5 ttl=255 time=2.69 ms --- 192.168.1.205 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 11ms rtt min/avg/max/mdev = 1.793/2.678/3.809/0.648 ms Sat Mar 6 15:36:39 SAST 2021
if anybody has any bright ideas/can help, I would very much appreciate it.
Oh yes, in case I didn't mention it, the inverter is a Sunsynk 5kW, but I'd think that's probably less important.
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.