#energy #api #solar #api-bindings #auth-token #enphase

enphase-local

A client library for the Enphase Envoy local API

2 releases

0.1.1 Jan 8, 2025
0.1.0 Jan 6, 2025

#564 in Web programming

Download history 93/week @ 2025-01-01 172/week @ 2025-01-08

265 downloads per month
Used in enphase-influx

MIT/Apache

31KB
597 lines

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.

Dependencies

~5–17MB
~217K SLoC