-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document which software version the structures apply to #1
Comments
Thank you, yes that's correct as Authentication Tokens are only V7 specific too... Unfortunately I do not have any other hardware to compare my V7 against (although as APIs get further added or removed I will be able to update the documentation) - so I can't go back in time and highlight what endpoints used to exist or their response format. If you have any examples I'd welcome any additions to the documentation. The endpoint documentation is currently automatically generated by a script in the "examples" folder, Welcome any further feature requests/ideas also :) |
I wrote my own monitor software for Enphase (See https://github.com/dlmcpaul/EnphaseCollector) I have a set of test cases going back to 4.2.27 (See https://github.com/dlmcpaul/EnphaseCollector/tree/master/src/test/resources/stubs for the responses) Not perfect since I did not own all the variations so some of the responses are not 100%. When someone has trouble they send me what they can that matches the API calls I make. I don't use the streaming or installer API's though. The hardest piece everyone is trying to understand is the battery stats. It looks like there is a lot of variation there. Also Authentication Tokens look to vary depending on the sub version in the 7 line. I think they have removed the need to call the /auth/check_jwt endpoint but it has not been disabled. |
They added helper functionality that some methods allow you to call them with a bearer token and internally that will automatically call check_jwt.. they haven't added it to all. If you're making multiple calls to the Gateway it would be more performant to manually call check_jwt and create a session than getting it to keep checking JWTs.
I am aware that on some models the streaming URL is restricted to installer only tokens. There was a community forum post about this and Enphase have promised to return the streaming URL to non-installers in a future release. I'm running a version which is not fussy about the type of token for the streaming URL. The advantage to the streaming URL is that the gateway does not have to repeatedly parse requests.. I definitely recommend using the streaming URL if you can. I've seen dlmcpaul/EnphaseCollector#55 and will comment with some points on that there. |
Good work documenting all the structures. It looks like you are working with V7
Just be aware that older versions do not have all the fields and/or API's. Might want to look at making that clear what versions they apply to.
The text was updated successfully, but these errors were encountered: