2 releases
0.1.1 | Jan 8, 2025 |
---|---|
0.1.0 | Jan 6, 2025 |
#564 in Web programming
265 downloads per month
Used in enphase-influx
31KB
597 lines
enphase-local
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