Skip to content

Conversation

@BramBaert
Copy link

Although the server response always states it concerns "invPacData" I found that querying different "types" actually does give different data. For me the default value of 1 returns the MPPT POWER (DC power) what I don't want.

This is how I use the change:

for e in gw_api.inverterN000ueData:
    try:    
        data = gw_api.inverter_data(inverter_id, yesterday,data_type=e)
        loopDict = data['invPacData']
        df = pd.DataFrame(list(loopDict.items()), columns=["datetime", "value"])
        df["series"] = gw_api.inverterN000ueData(e).name
        all_data.append(copy.deepcopy(df))
    except Exception as e:
        logging.error(f"Got exception {e}")
        continue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant