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

Cannot get any data except "Normal status" #35

Closed djmdka closed 7 months ago

djmdka commented 1 year ago

Hello, Please see below. I am using "Ubuntu 22.04.2 LTS" and installed all the packages as described in the documentation. However, I am not able to get any data, except for the following:

./fusionsolarapp.sh

Please wait connecting! Connection to API

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

ndefined Error \nReturned data:

januweness commented 1 year ago

Hi, this will have to do with the way the token is extracted in function login_to_api (line 942 of functions.sh). The string returned from the API call needs to be split into sub-strings, one of them containing the token. This changes with almost every update of the server.

If you make the following changes in functions.sh it should work: Line 1002 < local logowanie=${array[22]}

local logowanie=${array[27]}

Line 1005 < IFS=' < '

IFS='='

Line 1014 < local logowanie=${array[0]}

local logowanie=${array[1]}

Line 1028 < IFS=' '

IFS=';'

Cheers, Jan-Uwe

From: djmdka @.> Sent: 24 May 2023 14:35 To: BlazejosP/huawei-sun2000-API-CLI @.> Cc: Subscribed @.***> Subject: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hello, Please see below. I am using "Ubuntu 22.04.2 LTS" and installed all the packages as described in the documentation. However, I am not able to get any data, except for the following:

./fusionsolarapp.sh

Please wait connecting! Connection to API

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

ndefined Error \nReturned data:

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3ADDQAIZ6OHPN2SACCTXHX55RANCNFSM6AAAAAAYNJ7N74. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @.***).

djmdka commented 1 year ago

Hello,

            Thank you for your quick response. Performed the changes, and now the error has changed to this:

./fusionsolarapp.sh

Please wait connecting!

Connection to API

API login to server OK

Username & Password accepted by Huawei Server

Normal Status

jq: error (at :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

From: Jan-Uwe Ness @.> Sent: 24, May, 2023 16:01 PM To: BlazejosP/huawei-sun2000-API-CLI @.> Cc: djmdka @.>; Author @.> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hi, this will have to do with the way the token is extracted in function login_to_api (line 942 of functions.sh). The string returned from the API call needs to be split into sub-strings, one of them containing the token. This changes with almost every update of the server.

If you make the following changes in functions.sh it should work: Line 1002 < local logowanie=${array[22]}

local logowanie=${array[27]}

Line 1005 < IFS=' < '

IFS='='

Line 1014 < local logowanie=${array[0]}

local logowanie=${array[1]}

Line 1028 < IFS=' '

IFS=';'

Cheers, Jan-Uwe

From: djmdka @. <mailto:@.> > Sent: 24 May 2023 14:35 To: BlazejosP/huawei-sun2000-API-CLI @. <mailto:@.> > Cc: Subscribed @. <mailto:@.> > Subject: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hello, Please see below. I am using "Ubuntu 22.04.2 LTS" and installed all the packages as described in the documentation. However, I am not able to get any data, except for the following:

./fusionsolarapp.sh

Please wait connecting! Connection to API

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

ndefined Error \nReturned data:

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3ADDQAIZ6OHPN2SACCTXHX55RANCNFSM6AAAAAAYNJ7N74. You are receiving this because you are subscribed to this thread.Message ID: @.**@. mailto:***@***.******@***.*** >>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @. <mailto:@.> ).

— Reply to this email directly, view it on GitHub https://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1561104190 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEN7UI6XPD6MTAIRS5LP3WDXHYA7RANCNFSM6AAAAAAYNJ7N74 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AEN7UI2JFTWPDTTGT7XN5SDXHYA7RA5CNFSM6AAAAAAYNJ7N76WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS5BSHT4.gif Message ID: @. @.> >

januweness commented 1 year ago

Hi, you may not have the permission to access your plant data, this is usually only granted to the installer, not the owner. I think your installer has to grant you access permission.

Cheers, Jan-Uwe

From: djmdka @.> Sent: 24 May 2023 15:08 To: BlazejosP/huawei-sun2000-API-CLI @.> Cc: juness @.>; Comment @.> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hello,

Thank you for your quick response. Performed the changes, and now the error has changed to this:

./fusionsolarapp.sh

Please wait connecting!

Connection to API

API login to server OK

Username & Password accepted by Huawei Server

Normal Status

jq: error (at :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

From: Jan-Uwe Ness @.<mailto:@.>> Sent: 24, May, 2023 16:01 PM To: BlazejosP/huawei-sun2000-API-CLI @.<mailto:@.>> Cc: djmdka @.<mailto:@.>>; Author @.<mailto:@.>> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hi, this will have to do with the way the token is extracted in function login_to_api (line 942 of functions.sh). The string returned from the API call needs to be split into sub-strings, one of them containing the token. This changes with almost every update of the server.

If you make the following changes in functions.sh it should work: Line 1002 < local logowanie=${array[22]}

local logowanie=${array[27]}

Line 1005 < IFS=' < '

IFS='='

Line 1014 < local logowanie=${array[0]}

local logowanie=${array[1]}

Line 1028 < IFS=' '

IFS=';'

Cheers, Jan-Uwe

From: djmdka @.<mailto:@.> mailto:***@***.*** > Sent: 24 May 2023 14:35 To: BlazejosP/huawei-sun2000-API-CLI @.<mailto:@.> mailto:***@***.*** > Cc: Subscribed @.<mailto:@.> mailto:***@***.*** > Subject: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hello, Please see below. I am using "Ubuntu 22.04.2 LTS" and installed all the packages as described in the documentation. However, I am not able to get any data, except for the following:

./fusionsolarapp.sh

Please wait connecting! Connection to API

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

ndefined Error \nReturned data:

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3ADDQAIZ6OHPN2SACCTXHX55RANCNFSM6AAAAAAYNJ7N74. You are receiving this because you are subscribed to this thread.Message ID: @.**@.mailto:***@***.******@***.*** mailto:***@***.******@***.*** >>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @.<mailto:@.> mailto:***@***.*** ).

- Reply to this email directly, view it on GitHub https://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1561104190 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEN7UI6XPD6MTAIRS5LP3WDXHYA7RANCNFSM6AAAAAAYNJ7N74 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AEN7UI2JFTWPDTTGT7XN5SDXHYA7RA5CNFSM6AAAAAAYNJ7N76WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS5BSHT4.gif Message ID: @.<mailto:@.> @.<mailto:@.>> >

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1561116638, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3AENMWVHRGD3QVFF7N3XHYB4FANCNFSM6AAAAAAYNJ7N74. You are receiving this because you commented.Message ID: @.**@.>>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @.***).

djmdka commented 1 year ago

I am also the installer. I created the API and allowed myself access to every parameter.Is there anything else I have to specify other than the API user and password within the conf file?On May 24, 2023 16:42, Jan-Uwe Ness @.***> wrote: Hi, you may not have the permission to access your plant data, this is usually only granted to the installer, not the owner. I think your installer has to grant you access permission.

Cheers, Jan-Uwe

From: djmdka @.> Sent: 24 May 2023 15:08 To: BlazejosP/huawei-sun2000-API-CLI @.> Cc: juness @.>; Comment @.> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hello,

Thank you for your quick response. Performed the changes, and now the error has changed to this:

./fusionsolarapp.sh

Please wait connecting!

Connection to API

API login to server OK

Username & Password accepted by Huawei Server

Normal Status

jq: error (at :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

From: Jan-Uwe Ness @.<mailto:@.>> Sent: 24, May, 2023 16:01 PM To: BlazejosP/huawei-sun2000-API-CLI @.<mailto:@.>> Cc: djmdka @.<mailto:@.>>; Author @.<mailto:@.>> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hi, this will have to do with the way the token is extracted in function login_to_api (line 942 of functions.sh). The string returned from the API call needs to be split into sub-strings, one of them containing the token. This changes with almost every update of the server.

If you make the following changes in functions.sh it should work: Line 1002 < local logowanie=${array[22]}

local logowanie=${array[27]}

Line 1005 < IFS=' < '

IFS='='

Line 1014 < local logowanie=${array[0]}

local logowanie=${array[1]}

Line 1028 < IFS=' '

IFS=';'

Cheers, Jan-Uwe

From: djmdka @.<mailto:@.> mailto:***@***.*** > Sent: 24 May 2023 14:35 To: BlazejosP/huawei-sun2000-API-CLI @.<mailto:@.> mailto:***@***.*** > Cc: Subscribed @.<mailto:@.> mailto:***@***.*** > Subject: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hello, Please see below. I am using "Ubuntu 22.04.2 LTS" and installed all the packages as described in the documentation. However, I am not able to get any data, except for the following:

./fusionsolarapp.sh

Please wait connecting! Connection to API

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

ndefined Error \nReturned data:

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3ADDQAIZ6OHPN2SACCTXHX55RANCNFSM6AAAAAAYNJ7N74. You are receiving this because you are subscribed to this thread.Message ID: @.**@.mailto:***@***.******@***.*** mailto:***@***.******@***.*** >>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @.<mailto:@.> mailto:***@***.*** ).

- Reply to this email directly, view it on GitHub https://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1561104190 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEN7UI6XPD6MTAIRS5LP3WDXHYA7RANCNFSM6AAAAAAYNJ7N74 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AEN7UI2JFTWPDTTGT7XN5SDXHYA7RA5CNFSM6AAAAAAYNJ7N76WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS5BSHT4.gif Message ID: @.<mailto:@.> @.<mailto:@.>> >

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1561116638, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3AENMWVHRGD3QVFF7N3XHYB4FANCNFSM6AAAAAAYNJ7N74. You are receiving this because you commented.Message ID: @.**@.>>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @.***).

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

januweness commented 1 year ago

Hi, nothing else should be necessary. After including my credentials into conf.dat (and the changes mentioned), I get the following output:

./fusionsolarapp.sh PI- Please wait connecting! Connection to API PI- API login to server OK Username & Password accepted by Huawei Server Normal Status

API getStationList connection OK Normal Status Time of your Request to API: wo 24 mei 2023 15:49:38 CEST

    Plant 1: XXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Plant Name: XXXXXXXX
    Address of the plant: XXXXXXXXXXXXXXX
    Installed capacity: 0.00124 MWp
    Plant contact: XXXXXXXXXXXX
    Contact phone number: ***@***.***>
    Poverty alleviation plant: No

Activated functions for Station: XXXXXXXXXXXXXXXXXXXXX

Please wait disconnecting! Disconnection from API

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

(My personal data replaced by XXXXXXX). So, all working fine. Strange it doesn't work for you, sorry, I can't help further. Maybe you get some clues by uncommenting lines 1519 and 1520 (after the changes).

From: djmdka @.> Sent: 24 May 2023 15:48 To: BlazejosP/huawei-sun2000-API-CLI @.> Cc: juness @.>; Comment @.> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

I am also the installer. I created the API and allowed myself access to every parameter.Is there anything else I have to specify other than the API user and password within the conf file?On May 24, 2023 16:42, Jan-Uwe Ness @.<mailto:@.>> wrote: Hi, you may not have the permission to access your plant data, this is usually only granted to the installer, not the owner. I think your installer has to grant you access permission.

Cheers, Jan-Uwe

From: djmdka @.<mailto:@.>> Sent: 24 May 2023 15:08 To: BlazejosP/huawei-sun2000-API-CLI @.<mailto:@.>> Cc: juness @.<mailto:@.>>; Comment @.<mailto:@.>> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hello,

Thank you for your quick response. Performed the changes, and now the error has changed to this:

./fusionsolarapp.sh

Please wait connecting!

Connection to API

API login to server OK

Username & Password accepted by Huawei Server

Normal Status

jq: error (at :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

From: Jan-Uwe Ness @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***>> Sent: 24, May, 2023 16:01 PM To: BlazejosP/huawei-sun2000-API-CLI @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***>> Cc: djmdka @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***>>; Author @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***>> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hi, this will have to do with the way the token is extracted in function login_to_api (line 942 of functions.sh). The string returned from the API call needs to be split into sub-strings, one of them containing the token. This changes with almost every update of the server.

If you make the following changes in functions.sh it should work: Line 1002 < local logowanie=${array[22]}

local logowanie=${array[27]}

Line 1005 < IFS=' < '

IFS='='

Line 1014 < local logowanie=${array[0]}

local logowanie=${array[1]}

Line 1028 < IFS=' '

IFS=';'

Cheers, Jan-Uwe

From: djmdka @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***> mailto:***@***.*** > Sent: 24 May 2023 14:35 To: BlazejosP/huawei-sun2000-API-CLI @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***> mailto:***@***.*** > Cc: Subscribed @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***> mailto:***@***.*** > Subject: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hello, Please see below. I am using "Ubuntu 22.04.2 LTS" and installed all the packages as described in the documentation. However, I am not able to get any data, except for the following:

./fusionsolarapp.sh

Please wait connecting! Connection to API

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

ndefined Error \nReturned data:

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3ADDQAIZ6OHPN2SACCTXHX55RANCNFSM6AAAAAAYNJ7N74. You are receiving this because you are subscribed to this thread.Message ID: @.**@.mailto:***@***.******@***.***<mailto:***@***.******@***.***%3cmailto:***@***.******@***.***> mailto:***@***.******@***.*** >>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***> mailto:***@***.*** ).

- Reply to this email directly, view it on GitHub https://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1561104190 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEN7UI6XPD6MTAIRS5LP3WDXHYA7RANCNFSM6AAAAAAYNJ7N74 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AEN7UI2JFTWPDTTGT7XN5SDXHYA7RA5CNFSM6AAAAAAYNJ7N76WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS5BSHT4.gif Message ID: @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***> @.<mailto:@.mailto:***@***.***%3cmailto:***@***.***>> >

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1561116638, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3AENMWVHRGD3QVFF7N3XHYB4FANCNFSM6AAAAAAYNJ7N74. You are receiving this because you commented.Message ID: @.**@.mailto:***@***.******@***.***>>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @.<mailto:@.>).

-Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.<mailto:@.>>

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1561186898, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3ABJISMATGFRA5CTVM3XHYGQBANCNFSM6AAAAAAYNJ7N74. You are receiving this because you commented.Message ID: @.**@.>>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @.***).

djmdka commented 1 year ago

Hi again,I opened a ticket to Huawei regarding this matter and I got their answer here:"From what I see the problem is that you are using getStationList as interface to get the plants, which is wrong. (getStationList interface is no longer used). Instead of getStationList, customer needs to use stations interface. "I also got the full documentation which I can share if you want.

januweness commented 1 year ago

Hi, if you could share the full document in some way, that would be great. I am using getSationList and it works, so the answer is a bit strange.

From: djmdka @.> Sent: Thursday, May 25, 2023 12:52 PM To: BlazejosP/huawei-sun2000-API-CLI @.> Cc: juness @.>; Comment @.> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hi again,I opened a ticket to Huawei regarding this matter and I got their answer here:"From what I see the problem is that you are using getStationList as interface to get the plants, which is wrong. (getStationList interface is no longer used). Instead of getStationList, customer needs to use stations interface. "I also got the full documentation which I can share if you want.

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1562694428, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3AFW5WGLQ7SF3W7PNWTXH42UZANCNFSM6AAAAAAYNJ7N74. You are receiving this because you commented.Message ID: @.**@.>>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @.***).

djmdka commented 1 year ago

Hi

I uploaded to my personal cloud. See link below:

https://cloud.pfamm.ro/index.php/s/R2eNwq0VC4cVp8z

From: Jan-Uwe Ness @.> Sent: 25, May, 2023 14:34 PM To: BlazejosP/huawei-sun2000-API-CLI @.> Cc: djmdka @.>; Author @.> Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hi, if you could share the full document in some way, that would be great. I am using getSationList and it works, so the answer is a bit strange.

From: djmdka @. <mailto:@.> > Sent: Thursday, May 25, 2023 12:52 PM To: BlazejosP/huawei-sun2000-API-CLI @. <mailto:@.> > Cc: juness @. <mailto:@.> >; Comment @. <mailto:@.> > Subject: Re: [BlazejosP/huawei-sun2000-API-CLI] Cannot get any data except "Normal status" (Issue #35)

Hi again,I opened a ticket to Huawei regarding this matter and I got their answer here:"From what I see the problem is that you are using getStationList as interface to get the plants, which is wrong. (getStationList interface is no longer used). Instead of getStationList, customer needs to use stations interface. "I also got the full documentation which I can share if you want.

- Reply to this email directly, view it on GitHubhttps://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1562694428, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTM3AFW5WGLQ7SF3W7PNWTXH42UZANCNFSM6AAAAAAYNJ7N74. You are receiving this because you commented.Message ID: @.**@. mailto:***@***.******@***.*** >>

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer @. <mailto:@.> ).

— Reply to this email directly, view it on GitHub https://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1562745971 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEN7UI3S5B36F2JAJZYO7GTXH47RVANCNFSM6AAAAAAYNJ7N74 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AEN7UIYCBZUCMKNUOQ4RPX3XH47RVA5CNFSM6AAAAAAYNJ7N76WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS5EWOHG.gif Message ID: @. @.> >

BlazejosP commented 1 year ago

Hello @djmdka and thanks @januweness for this explanations for him answer of this your question is here https://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/34#issuecomment-1554195985

Just short summary: Old accounts created before June 30, 2022 can work with old style getStationList Accounts created after this date need new function stations instead.

This is not implemented yet because I just today receive new manual look to this mentioned post and that will take some time (around a few days) to code this into working function. But if you d'like upload working bash code which you done themself I will be rely happy to accept.

BTW @januweness what do you think about this constant changes of function login_to_api (line 942 of functions.sh) and extraction of token I just think that is some way possible to code this in dynamic form that even after changes of position of token in sub-strings token can be extracted correctly regardless of position. So if that type of code will be there there will be not necessary to improve this part after every Huawei server upgrade?