Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get any data except "Normal status" #35

Closed
djmdka opened this issue May 24, 2023 · 9 comments
Closed

Cannot get any data except "Normal status" #35

djmdka opened this issue May 24, 2023 · 9 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@djmdka
Copy link

djmdka commented May 24, 2023

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
Copy link
Collaborator

januweness commented May 24, 2023 via email

@djmdka
Copy link
Author

djmdka commented May 24, 2023 via email

@januweness
Copy link
Collaborator

januweness commented May 24, 2023 via email

@djmdka
Copy link
Author

djmdka commented May 24, 2023 via email

@januweness
Copy link
Collaborator

januweness commented May 24, 2023 via email

@djmdka
Copy link
Author

djmdka commented May 25, 2023 via email

@januweness
Copy link
Collaborator

januweness commented May 25, 2023 via email

@djmdka
Copy link
Author

djmdka commented May 25, 2023 via email

@BlazejosP
Copy link
Owner

BlazejosP commented May 26, 2023

Hello @djmdka and thanks @januweness for this explanations for him
answer of this your question is here #34 (comment)

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?

@BlazejosP BlazejosP added bug Something isn't working enhancement New feature or request labels May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants