-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add Victron inverter #202
Add Victron inverter #202
Conversation
hi @mduffin95 Thanks so much for this. Really appreciate you putting in the effort to put this in. Thanks |
LGTM! |
Sorry for the late response, I've been away. @aryanbhosale I've updated the pr with your suggested change |
Thank you, @peterdudfield i guess this could be merged now |
Thanks, yea just one comment, we are trying to work out, about this repo - https://github.com/mduffin95/vrm-api-python-client |
Yea i think opening an Issue and a PR in their original repo is a good idea, but i doubt theyll respond since the last activity was an issue that was opened 2 years back |
Hm,yea, and it does say its not maintained. maybe some different options
I would defiantly do 1. so other people can see the improvements. Im not sure about 2. or 3., probably depends how much code is needed for 3. I think separately we should put this a an optional requirements in the pyproject.toml as most people dont need to install this. |
The original repo hasn't accepted any new PRs for years so I don't think 1 will work. IMO 2 is a better option than 3 for a couple of reasons:
I personally think it's better to reduce the scope of this repo to not include too much low-level API connectivity code. It keeps this repo clearly focussed on forecasting.
☝️ I can make this change now. |
Sounds good to me |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #202 +/- ##
==========================================
+ Coverage 61.76% 62.28% +0.51%
==========================================
Files 25 25
Lines 1020 1034 +14
==========================================
+ Hits 630 644 +14
Misses 390 390 ☔ View full report in Codecov by Sentry. |
Sounds. I'll create a new repo and @mduffin95 I'll make you to admin of it. I'm happy to do the pypi project things if you get the code ready |
Its created here https://github.com/openclimatefix/vrm-api-python-client. @mduffin95 ive invited you to be an admin on this repo. Do you want to do any changes, and I can then sort the pypi stuff out |
Great stuff, thanks @mduffin95 for this. I miht merge into a development branch, to make sure all tests work e.t.c |
3f60fb7
into
openclimatefix:development
* Add Victron inverter (#202) * wip * wip * solarman * update token * update inverters * undo some changes * add docstring * mock inverter docstring * remove dotenv * update givenergy * enphase * try to fix tests running twice * delete event * pr comments * revert workflow changes * split inverters into separate modules * import * Revert "import" This reverts commit f9f3c5f. * Revert "split inverters into separate modules" This reverts commit 94a9e70. * add pydantic_settings * set config within settings classes * add dependency * add victron * use named argument * start and end times * add a line to the documentation * dependencies * add test * add test * update script * add username and password to example env variable file * move vrmapi dependency to optional-dependencies * comment * update to use ocf_vrmapi * use issue/pip-all branch * add all to project.optional-dep * update import --------- Co-authored-by: Matthew Duffin <[email protected]>
Pull Request
Description
Adds support for Victron inverters.
How Has This Been Tested?
I've got access to a Victron system so I've been able to test it against their API. I've also included some response data from their API and used it to write a small test.
Checklist: