enphase-local

Crates.ioenphase-local
lib.rsenphase-local
version0.1.2
created_at2025-01-06 21:07:41.940393+00
updated_at2025-07-15 13:12:38.926321+00
descriptionA client library for the Enphase Envoy local API.
homepage
repositoryhttps://github.com/qwandor/octopower
max_upload_size
id1506192
size74,688
Andrew Walbran (qwandor)

documentation

README

enphase-local

crates.io page docs.rs page

enphase-local is a client library for the Enphase IQ Gateway local API.

This is not an officially supported Google product.

Usage

To login and fetch production information:

use enphase_local::Envoy;
use reqwest::Url;

const AUTH_TOKEN: &str = "...";

let envoy = Envoy::new(Url::parse("https://envoy.local/")?, AUTH_TOKEN);
let production = envoy.production().await?;

Example

For a more complete usage sample, see the included example. To run it you'll need the base URL of your local Enphase gateway, and an authentication token. You can get an authentication token from https://entrez.enphaseenergy.com/, as described by Enphase's documentation.

$ cargo run --example info https://envoy.local/ my_auth_token

License

Licensed under either of

at your option.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

If you want to contribute to the project, see details of how we accept contributions.

Commit count: 427

cargo fmt