-
-
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
fetches live Enphase data at the moment it is called #66
Conversation
replace 'user_enphase_api_key' and 'user_enphase_user_id' with the actual Enphase API key and user ID. The make_pv_data function now fetches live data from the Enphase API and combines it with the existing fake PV data This "may" not be from the time of interference, do i add make use of timestamps to enable it?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #66 +/- ##
=======================================
Coverage 80.83% 80.83%
=======================================
Files 11 11
Lines 334 334
=======================================
Hits 270 270
Misses 64 64 ☔ View full report in Codecov by Sentry. |
Thanks so much for this @aryanbhosale . This links with #59. I think it would be good for the user to have an option, to either use live pv data from enphase or not. This would mean that by default it works without this data. This is becasue only some users will have pv data from an enphase inverter |
No @peterdudfield I haven't yet tried it with real data because of the limitation of credentials. But since you can get some credentials to work with, I could do it this week. |
Now the user will have an option whether to use live enphase data or the default data
I've made a new PR for giving user an option to choose whether to use enphase live data or the default one |
@peterdudfield could you please review my PR for issue #36 and give suggestions on how I could make it better/feature rich |
Hi @peterdudfield , could you please review my code? |
quartz_solar_forecast/data.py
Outdated
|
||
ssl._create_default_https_context = ssl._create_unverified_context | ||
|
||
# User needs to add their Enphase API details | ||
ENPHASE_API_KEY = 'user_enphase_api_key' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we make this envionrment variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we make this envionrment variables?
Sure, will make the required change and add a .env.example file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we make this envionrment variables?
Should i add a .env file in /Open-Source-Quartz-Solar-Forecast/quartz_solar_forecast
or simply in /Open-Source-Quartz-Solar-Forecast
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we make this envionrment variables?
I have added the changes in my PR for environment variables, please review it. Thank you
One small change, and lets then gets this merged.
|
Will do! |
* Bump version: 1.0.9 → 1.0.10 [skip ci] * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] * Bump version: 1.0.10 → 1.0.11 [skip ci] * Replace H with h inside pandas' floor function (#64) Thanks @0xFrama for this * Bump version: 1.0.11 → 1.0.12 [skip ci] * Added Contribution Guide (#65) * added contribution guide * added reference to coding style * Bump version: 1.0.12 → 1.0.13 [skip ci] * docs: add roshnaeem as a contributor for doc (#67) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * Test set analysis (#60) * test set analysis * added link to nbviewer in notebook * deleted checkpoints * Delete checkpoints * delete metadata.csv * using metadata from hugging face * remove unused import * Bump version: 1.0.13 → 1.0.14 [skip ci] * docs: add bikramb98 as a contributor for code (#68) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * fetches live Enphase data at the moment it is called (#66) * fetches live Enphase data at the moment it is called replace 'user_enphase_api_key' and 'user_enphase_user_id' with the actual Enphase API key and user ID. The make_pv_data function now fetches live data from the Enphase API and combines it with the existing fake PV data This "may" not be from the time of interference, do i add make use of timestamps to enable it? * Added Flag indicating whether to use live Enphase data or not Now the user will have an option whether to use live enphase data or the default data * Updated site object to accomodate is_inverter option + created /inverters/enphase.py file * added environment variables * Bump version: 1.0.14 → 1.0.15 [skip ci] * added init.py in invertors directory * fixed the import of enphase_data --------- Co-authored-by: BumpVersion Action <bumpversion@github-actions> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Peter Dudfield <[email protected]> Co-authored-by: Francesco <[email protected]> Co-authored-by: Bikram Baruah <[email protected]> Co-authored-by: Aryan Bhosale <[email protected]>
* Bump version: 1.0.9 → 1.0.10 [skip ci] * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] * Bump version: 1.0.10 → 1.0.11 [skip ci] * Replace H with h inside pandas' floor function (#64) Thanks @0xFrama for this * Bump version: 1.0.11 → 1.0.12 [skip ci] * Added Contribution Guide (#65) * added contribution guide * added reference to coding style * Bump version: 1.0.12 → 1.0.13 [skip ci] * docs: add roshnaeem as a contributor for doc (#67) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- * Test set analysis (#60) * test set analysis * added link to nbviewer in notebook * deleted checkpoints * Delete checkpoints * delete metadata.csv * using metadata from hugging face * remove unused import * Bump version: 1.0.13 → 1.0.14 [skip ci] * docs: add bikramb98 as a contributor for code (#68) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] --------- * fetches live Enphase data at the moment it is called (#66) * fetches live Enphase data at the moment it is called replace 'user_enphase_api_key' and 'user_enphase_user_id' with the actual Enphase API key and user ID. The make_pv_data function now fetches live data from the Enphase API and combines it with the existing fake PV data This "may" not be from the time of interference, do i add make use of timestamps to enable it? * Added Flag indicating whether to use live Enphase data or not Now the user will have an option whether to use live enphase data or the default data * Updated site object to accomodate is_inverter option + created /inverters/enphase.py file * added environment variables * Bump version: 1.0.14 → 1.0.15 [skip ci] * added init.py in invertors directory * fixed the import of enphase_data --------- Co-authored-by: Rosheen Naeem <[email protected]> Co-authored-by: BumpVersion Action <bumpversion@github-actions> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Francesco <[email protected]> Co-authored-by: Bikram Baruah <[email protected]> Co-authored-by: Aryan Bhosale <[email protected]>
Hi @peterdudfield ,what are the next steps for this project? I would like to dive deeper and solve more issues on this topic |
replace 'user_enphase_api_key' and 'user_enphase_user_id' with the actual Enphase API key and user ID. The make_pv_data function now fetches live data from the Enphase API and combines it with the existing fake PV data This "may" not be from the time of interference, do i add make use of timestamps to enable it?
Pull Request
Description
I have updated the comments to encapsulate what's updated
Please delete the italicised instruction text!
Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?
Checklist: