Giter Club home page Giter Club logo

Comments (2)

BlazejosP avatar BlazejosP commented on May 23, 2024

First question from my side what about this functions they must be working and uncommented they are necessary to made getStationRealKpi working?

login_to_API
getStationList

Next what I see jq jq: error (at :1): Cannot iterate over null (null)
Code can't extract data from the answer because answer as you mentioned has empty field "data": null.
So as I'm nearly certain this part of code for getStationRealKpi is correct and working.
So who is to blame?
If you look on answer your question to API is "success": true so why is no data?
I myself have similar problem but in my case getStationList is working and show data

``
API getStationRealKpi connection OK
Normal Status
Time of your Request to API:
Numbers of plants to check: 1

Plant 1: 
Plant Status: Healthy
Daily energy: 16.63 kWh
Monthly energy: 545.46 kWh
Lifetime energy: 3950.48 kWh
Daily revenue: 1.243 ¥
Total revenue: 467.618 ¥

``
But getKpiStationHour, getKpiStationDay,getKpiStationMonth,getKpiStationYear are not working and have the same issues like your question is also "success": true and "data": null.

Only what I can do in this case is to write to Huawei helpdesk with question to check my account. If after upgrade was limited in some way because problem is on their side I suppose some glitches on their server with rights to access certain data on specific account. Before upgrade I haven't such problems. I'm also certain that this isue is on their server side because I tested this question with use of Postman external program and have the same disappointing results with "success": true and "data": null. So I opened case on [email protected] week ago and now case is in progress so hope they found why I have this strange answers like you. So In my opinion you shuld made the same. In meantime you can check other functions because some of them my have data other not there is no rule in that case.

from huawei-sun2000-api-cli.

githubmichal avatar githubmichal commented on May 23, 2024

login_to_API
getStationList

working ok.

I tried to use Postman and there is success but no data with getStationRealKpi.
So I'm going to write to huawei support...

from huawei-sun2000-api-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.