Communicating with NetEco through an openAPI user Highlighted

Latest reply: Oct 10, 2019 12:07:34 4242 12 4 2

This section describes the procedure on how to test the communication with NetEco through an openAPI user.

 

1. Create an OpenAPI User


a) Login as installer on Neteco and create an openAPI account.


b) Choose the Settings menu à Usersà fill the requested details à choose OpenAPI User à select the PV plant à OK.


045035kxxsuru9izorlovc.png?image.png

 

2. Check the communication protocol

 

a) Dashboard Web Server query data from NetEco through HTTPS protocol, Dashboard Web Server is the Client, NetEco is the Server.

 

045100e6gpyyhfanfabajj.png?image.png

 

b) Check if the port 27200 is enabled and if you have active on your computer the TLS1.1&1.2 and SSL.


045112t8g43zaz38php48d.png?image.png


3. Install Postman on your computer

 

a) Download and install Postman 045157dbnnkbaz6q5yk4ka.png?image.png and before starting to interrogate Neteco with your openAPI user, disable the SSL certificate verification form Postman settings:

 

 045217h20zzqnnbn0slqkm.png?image.png


4. Log in to Postman with an openAPI user

 

a) Use your server IP to login and interrogate Neteco with your openAPI user.


Example: if the Neteco IP is 52.58.159.100 use the next link to login: https://52.58.159.100:27200/openAPI/login.

 

URL: https://ip:port/openApi/login

Request:

Method: POST

Parameter: username, password

Response: {"errorMsg":0,"openApiroarand":"e21bfb25-5637-49d3-8ec2-d6106cc0fc97"}


The key note in red will help you interrogate the other parameters.


045252ynvvpvzzf6vvz1vz.png?image.png

 

5. Query Plant List

 

URL: https://ip:port/openApi/queryPlantList

Request:

Method: POST

Parameter: openApiroarand

Response:

Example:

 

045313j3gbfrvxzzrhgr4b.png?image.png


6. Query Device List

 

URL: https://ip:port/openApi/queryDeviceList

Request:

Method: POST

Parameter: plantid, openApiroarand

Response:

Example: 


045341ycppbt7yzyk1gg6t.png?image.png


7. Query Plant Real Time Data

 

URL: https://ip:port/openApi/queryPlantdetail

Request:

Method: POST

Parameter: plantid, openApiroarand

Response:

Example:

 

045400ojiqyrziiylypppn.png?image.png

 

8. Query Device Real Time data

 

URL: https://ip:port/openApi/queryDeviceDetail

Request:

Method: POST

Parameter: plantid, openApiroarand

Response:

Example:

 

045423xgu28ugf81wpppx2.png?image.png

 

9.     Query Plant Day History Data

 

URL: https://ip:port/openApi/queryPlantDayData

Request:

Method: POST

Parameter: plantid, date(XXXX-XX-XX), openApiroarand

Response:

Example:

 

045449iry48t8aviwwrjxx.png?image.png


10.     Query Plant Month History Data

 

URL: https://ip:port/openApi/queryPlantMonthData

Request:

Method: POST

Parameter: plantid, month(XXXX-XX), openApiroarand

Response:

Example:

 

045513lnu1ugq1q9pmqhhg.png?image.png

 

11. Query Plant Year History Data

 

URL: https://ip:port/openApi/queryPlantYearData

Request:

Method: POST

Parameter: plantid, year(XXXX-XX), openApiroarand

Response:

Example:


045533wttz8mpa6n7ng2m7.png?image.png

 

12. Query Plant Total History Data

 

URL: https://ip:port/openApi/queryPlantTotalData

Request:

Method: POST

Parameter: plantid, openApiroarand

Response:

Example:

 

045554z9ws49w24deqnwnv.png?image.png

 

13. Log out

 

URL: https://ip:port/ openApi/logout

Request:

Method: POST

Parameter: openApiroarand

Response:

Example: {"errorMsg":0}

 

045618td2jlsl3r1127sdd.png?image.png


This article contains more resources

You need to log in to download or view. No account?Register

x
  • x
  • convention:

little_fish
Admin Created Mar 22, 2019 01:06:06 Helpful(0) Helpful(0)

nice job!Communicating with NetEco through an openAPI user-2894679-1
  • x
  • convention:

Alan_RomaniaGTAC
Created Mar 27, 2019 14:34:30 Helpful(0) Helpful(0)

very good sharing
  • x
  • convention:

i am Batman
pedestre
Created Apr 19, 2019 15:53:43 Helpful(0) Helpful(0)

Hi and thanks for the tutorial

I have a problem. I have followed your instructions and I could manage to login without any problem. However, It was imposible to do any other request (PlantList). I always got errorMsg 200. My inverter is linked to eu.fusionsolar.huawei.com. Do you have any hint?? Thanks in advice
  • x
  • convention:

Jack_Wang
Jack_Wang Created Sep 10, 2019 08:35:10
{errorMsg=200} is a Cookie issue, you try in postman? Interface instructions in NetEco Open intrface 1.11 say - "Keep the seccsion id in cookie"  
basking_in_the_sun2000
Created Apr 19, 2019 21:42:49 Helpful(0) Helpful(0)

Thanks, great share
  • x
  • convention:

Balu_Bear
Created Jul 12, 2019 13:48:43 Helpful(0) Helpful(0)

Posted by pedestre at 2019-04-19 15:53 Hi and thanks for the tutorialI have a problem. I have followed your instructions and I could manage ...
Hi,
I have the same issue, do you already have a solution for this issue?
We are a customer with openApi-access to NetEco administered by a Huawei Partner.
Is there a server side setting that needs to be adjusted?

Kind regards
  • x
  • convention:

Jack_Wang
Jack_Wang Created Sep 10, 2019 08:43:59
I have a solution for my similar problem withopenApi {errorMsg=200}. It was Cookie issue. Interface instructions in NetEco Open interface 1.11 say - "Keep the seccsion id in cookie" In my code it works: 1. get Cookie from /openApi/login response call, 2. trim cookie to keep only string with JSESSIONID=nodexxxxxxxxxxxxxxxxxxxxxx.nodex 3. use coockie in next OpenApi calls  
lowey71
Created Sep 6, 2019 23:40:10 Helpful(0) Helpful(0)

Getting SUN2000 inverter data ok via API

But unable to collect data from Smart Meter (coming up as CHINT-DDSU666-H in NetEco Web)

Any help would be appreciated!
  • x
  • convention:

user_3562391
Created Sep 19, 2019 09:24:04 Helpful(0) Helpful(0)

Posted by lowey71 at 2019-09-06 23:40 Getting SUN2000 inverter data ok via APIBut unable to collect data from Smart Meter (coming up as CH ...
Thank you for providing info for using the API. I would also like to know if there is a way to access the house load information coming from the smart meter.
  • x
  • convention:

JoseBerg
Created Sep 27, 2019 07:55:21 Helpful(0) Helpful(0)

Hello,

Thank you for the great Manual.

We have an own Server but currently fight with the following error:

403 invalid CSRF Token
http 404

Do you know who made the Manual or who has experience with this open API.
It is a very important case for us.

Thank you for your help.

Best Regards,
Josef

This article contains more resources

You need to log in to download or view. No account?Register

x
  • x
  • convention:

eicosan
Created Oct 10, 2019 12:07:34 Helpful(0) Helpful(0)

Hi, My SUN2000 inverter is running through the FusionSolar portal. Is there a similar possibility/API? If not, is it possible to use the NetEco approach with a newly installed inverter as well? Thanks!
  • x
  • convention:

eugen
eugen Created Oct 19, 2019 16:59:12
Hello, Send a request to eu_inverter_support@huawei.com with the name of your PV plant to create an API account for you and send the open interface. Thank you,  

Comment

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login