Git Product home page Git Product logo

Comments (1)

Matthew1471 avatar Matthew1471 commented on September 26, 2024

The endpoint is definitely correct.. interestingly it's the {EID} part which I had incorrect (thus the Not Found), it is of the format /ivp/meters/ctreversal/(?:[pc](?:L[1-3])?/?)?$

For instance a HTTP GET to one of the following:

https://envoy.local/ivp/meters/ctreversal/

https://envoy.local/ivp/meters/ctreversal/p
https://envoy.local/ivp/meters/ctreversal/pL1
https://envoy.local/ivp/meters/ctreversal/pL2
https://envoy.local/ivp/meters/ctreversal/pL3

https://envoy.local/ivp/meters/ctreversal/c
https://envoy.local/ivp/meters/ctreversal/cL1
https://envoy.local/ivp/meters/ctreversal/cL2
https://envoy.local/ivp/meters/ctreversal/cL3

Should all succeed.

This is where the p is Production and the c is Consumption.

..and to change any of these then one has to do a HTTP PUT to one of the above URLs:

{
    "polarityReversal": "reverse",
}

Not specifying a line (aka "phase") number applies it across all lines/phases of that meter type (e.g. c instead of cL1 will apply to all Consumption lines/phases).

I believe an empty PUT (or {} which is what the GET currently returns or maybe "normal" instead of "reverse") should be sent to unset it (haven't tested).

GET requests require any valid token (anybody) but all other HTTP methods (currently just PUT) will require a prov or above token.

from enphase-api.

Related Issues (20)

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.