srcfl / srcful-gateway

Srcful energy gateway to connect your solar inverter and mine src-token
https://srcful.io
MIT License
3 stars 1 forks source link

Test nmap #176

Closed davmoz closed 1 month ago

davmoz commented 1 month ago

test the implemented nmap endpoint.

End goal: implement this in the app.

davmoz commented 1 month ago

seems to be working

h0bb3 commented 1 month ago

Tested on a site that had lost connection to inverter. After scanning the new ip was shown and I could connect to the inverter using this ip address instead.

h0bb3 commented 1 month ago

Two other site that had lost connection to inverter due to change ip. After scanning the new ip was shown and I could connect to the inverter using this ip address instead.

From the logs:

[Logs]    [2024-05-24T07:01:27.372Z] [web] 2024-05-24 07:01:27,371 ERROR logging:115 Connection to (192.168.1.6, 6607) failed: [Errno 113] Host is unreachable
[Logs]    [2024-05-24T07:01:27.375Z] [web] ERROR:pymodbus.logging:Connection to (192.168.1.6, 6607) failed: [Errno 113] Host is unreachable
[Logs]    [2024-05-24T07:01:27.375Z] [web] ERROR:server.inverters.inverter:FAILED to open inverter: HUAWEI
[Logs]    [2024-05-24T07:01:27.375Z] [web] INFO:server.tasks.openInverterPerpetualTask:Failed to open inverter, retry in 5 minutes: ('TCP', '192.168.1.6', 6607, 'HUAWEI', 0)
davmoz commented 1 month ago

This is now available from:

Gateway: 7439f32bd968d5d100e1e35febe989150aeee9a4 App: f00cc588fb2a598441c898ca7fb6ea5813c263c0