mwittig / node-fronius-solar

Access PV live logs using the Fronius Solar API
MIT License
40 stars 9 forks source link

Timeouts #8

Closed maciekstosio closed 4 years ago

maciekstosio commented 5 years ago

Hi, when I run example i'm getting request timeouts. When I'm trying curl sometimes I'm getting 404. I provided device ID, checking your code I assume that port doesn't matter and I provided found in settings. Any Idea what I'm doing wrong?

mwittig commented 5 years ago

Hi, the port is 80 (default port for HTTP). Which type of Fronius device/gateway do you have and which service function(s) are you trying to call? Note, there are different versions of the Fronius API and service endpoints provided depend on the API version.

maciekstosio commented 5 years ago

Well the problem was just IP and I found the right one. Sorry for trouble and thank you for so quick answer. The things I found out are:

mwittig commented 4 years ago

Well, the port is applied, but generally it is not required. It is mainly required for testing purposes or case where the device is accessed via an intermediate with port mapping (NAT router, firewall, or VPN gateway, for example). I'll clarify this by setting up documentation. Regarding deviceId it really depends on the type of API used. Agin, a matter of documentation