query_enphaseenergy_device {microinverterdata}R Documentation

Enphase Energy single device query

Description

as a port of https://github.com/sarnau/EnphaseEnergy/blob/main/enphaseStreamMeter.py

Usage

query_enphaseenergy_device(
  device_ip = "enphase.local",
  query,
  username = Sys.getenv("ENPHASE_USERNAME"),
  password = Sys.getenv("ENPHASE_PASSWORD")
)

Arguments

device_ip

IP address or name of the device

query

the API query string

username

the username needed to authenticate to the inverter. Defaults to the 'ENPHASE_USERNAME' environment variable.

password

the password needed to authenticate to the inverter. Defaults to the 'ENPHASE_PASSWORD' environment variable.

Value

a data-frame with a 'device_id' column and the '$Body$Data' turned into as many columns as expected

See Also

Other device queries: query_ap_device(), query_ap_devices(), query_enphaseenvoy_device(), query_fronius_device(), query_fronius_devices()

Examples

## Not run: 
query_enphaseenergy_device(query = "stream/meter")

## End(Not run)

[Package microinverterdata version 0.2.0 Index]