BlazejosP / huawei-sun2000-API-CLI

Huawei SUN2000 compatible devices which working with Huawei Cloud Service command line bash API for monitoring or download data from their FusionSolarApp API
https://www.buymeacoffee.com/blazejosP
GNU General Public License v3.0
110 stars 15 forks source link

API getStationList connection Error #34

Open etamtlosz opened 1 year ago

etamtlosz commented 1 year ago

I just received my API credentials from my installer company. Unfortunately I'm getting the following error:

Connection to API

API login to server OK
Username & Password accepted by Huawei Server
Normal Status
jq: error (at <stdin>:1): Cannot iterate over null (null)

API getStationList connection Error
ou do not have the permission on the related data interface.
Optional message:  "Invalid access to current interface!"

        Plant 1:
        Plant Name:
        Address of the plant:
        Installed capacity:  MWp
        Plant contact:
        Contact phone number:
        Plant Status: Unknown
        Grid connection type: Unknown
        Poverty alleviation plant: Unknown

parse error: Unfinished string at EOF at line 2, column 0
parse error: Unfinished string at EOF at line 2, column 0
Message: Don't know when

Please wait disconnecting!
Disconnection from API

API logout from server OK
Logout accepted by Huawei Server
Normal Status

Am I doing something wrong? Or my installer has forgot to set something up? Mine is the first API account they've set up ever.

TheBlackOne commented 1 year ago

The getStationList endpoint has been removed*, more info here: https://forum.huawei.com/enterprise/en/forum.php?mod=redirect&goto=findpost&ptid=591478&pid=5806499

@BlazejosP you might want to implement calling against stations instead.

(*) It seems to still work for API accounts created before June 30, 2022.

BlazejosP commented 1 year ago

Thanks for that inf I will try to implement this new API call hope that this will solve such problems like your @etamtlosz you done all ok but looks like this new accout are different. Is possible @TheBlackOne to found somwhere new Huawei description documentation about Northbound API ?

TheBlackOne commented 1 year ago

iMaster NetEco V600R023C00 Northbound Interface Reference-V6(SmartPVMS).pdf

BlazejosP commented 1 year ago

Exactly this new recent manual is this what I need to implement this in new style may take around a few days. If you have yourself working bash code I will really appropriate code modernization.

etamtlosz commented 11 months ago

Any update on this? Thank you

BlazejosP commented 7 months ago

Any update on this? Thank you

I have actually documentation now is time to modernization of code. If you also d'like to add something I really like to include this code.