goecharger / go-eCharger-API-v1

API specification for V2 go-eCharger (compatible with V3 too)
100 stars 26 forks source link

Please include information about IP address and MAC address in the app #94

Open MathieuWuyts opened 2 years ago

MathieuWuyts commented 2 years ago

Hello, I'm trying to connect the charger in an industrial environment with a lot of switches and devices on the same network, so it is not easy to find the IP address. Please include a function in the app to show the IP address and MAC address of the device when connected to a network.

peterpoetzi commented 2 years ago

When you are installing a new charger, you probably have the V3 version of the charger. The app actually shows the IP Address already, but not the MAC Address. We will improve this with the next App version. Thank you very much for your suggestion.

For V3 charger you can use the ccw (currently connected wifi) api key, which shows:

{
    "ssid": "goe-wlan",
    "encryptionType": 3,
    "pairwiseCipher": 4,
    "groupCipher": 4,
    "b": true,
    "g": true,
    "n": true,
    "lr": false,
    "wps": false,
    "ftmResponder": false,
    "ftmInitiator": false,
    "channel": 11,
    "bssid": "BA:FB:11:11:11:11",
    "ip": "192.168.11.11",
    "netmask": "255.255.0.0",
    "gw": "192.168.1.1",
    "ipv6": [
        "FE80::7E9E:BDFF:FE11:1111"
    ],
    "dns0": "192.168.1.1",
    "dns1": "192.168.1.2",
    "dns2": "0.0.0.0"
}

as well as to the api keys: macs (mac address station) and maca (mac address access point)

MathieuWuyts commented 2 years ago

I’m using an older one with V2 hardware. I don’t get any additional info aside from this: 8B050E7A-CC55-49CD-9071-DCB4E53395B8