Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection refused after some time #105

Open
Roemke opened this issue Dec 1, 2024 · 0 comments
Open

Connection refused after some time #105

Roemke opened this issue Dec 1, 2024 · 0 comments

Comments

@Roemke
Copy link

Roemke commented Dec 1, 2024

Hi I'm just finding this code, thank you very much.
I experimented a little with example_influxdb_v2.py and reduced the output by adding only the fields of my interest to the json_body. Running the script leads after a while to the following error:
Connection to (192.168.0.205, 1502) failed: [Errno 111] Connection refused
Traceback (most recent call last):
File "/home/pi/solaredge_modbus/./influx2WebServ.py", line 96, in
"c_model": meter_values["c_model"],
KeyError: 'c_model'
I tried a interval of 1 to 20 seconds and an Timeout of 1 and 5 seconds. The timeout leads to slower response (can see this looking at the timestamps). I print out the values by json.dump()
I don't poll the modbus interface with other clients, I don't know if Solaredge does something like this. Im using
pip3 show pymodbus
Name: pymodbus
Version: 3.7.4
I don't know where to look for an answer, sorry.
Karsten

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant