Giter Club home page Giter Club logo

nenvoy's Introduction

Logo NEnvoy

Build Status Nuget version

A .Net Enphase Envoy client available as a NuGet package.

Currently a work in progress. The list of currently implemented (and not yet implemented) items can be found here.

Quickstart

// Create client and login (assumes "envoy" hostname)
var ci = new EnvoyConnectionInfo
{
	Username = "[email protected]",
	Password = "sup3rs3cet",
};
var client = await EnvoyClient.FromLoginAsync(ci).ConfigureAwait(false);

// Get information from Envoy
var deviceinfo = await client.GetEnvoyInfoAsync();

Sessions

A login is slow; once a session has been set up (logged in successfully) you can obtain the token and save it for later use:

var token = client.GetToken();
// Save the token to a file/database/whatever

You can then create client from the token:

var client = EnvoyClient.FromToken(token, ci);

Connection

You can specify a different hostname or IP address for your Envoy:

var ci = new ConnectionInfo("[email protected]", "sup3rs3cet", "envoy.local");
// or:
var ci = new ConnectionInfo("[email protected]", "sup3rs3cet", "192.168.123.45");

Similarly, the base URI's for the enphase portal can be overridden:

var ci = new ConnectionInfo("[email protected]", "sup3rs3cet", EnphaseBaseUri: "https://enlighten-new.enphaseenergy.com");
// or:
var ci = new ConnectionInfo("[email protected]", "sup3rs3cet", EnphaseEntrezBaseUri: "https://entrez-new.enphaseenergy.com");

Contributing

Yes please! Implement any of the methods and make a PR and we'll take it from there.

License

Licensed under MIT license. See LICENSE for details.


Icon made by Payungkead from www.flaticon.com is licensed by CC 3.0.

nenvoy's People

Contributors

robthree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nenvoy's Issues

Cannot get data from provided structure

I'm not able to get fields inside the structure provided in the library. For example, if I get the production this way:

ProductionData production = client.GetProductionAsync().Result;

I don't know how to get the production/consumption value:

production.Consumption.ElementAt(0).???

how can I get for example production[0].WattsNow or similar? thanks a lot for your help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.