-
Notifications
You must be signed in to change notification settings - Fork 0
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
[PR] Negative Power Fixes (originally for Nash) #296
Conversation
If we end up manually recalculating the total real and reactive power, we can probably do it in chart.module.js: https://github.com/OSU-Sustainability-Office/energy-dashboard/blob/master/src/store/chart.module.js#L47 Check Reqpayload.point, then make 3? calls to metergroup with different Also need to remember to ask if all values are meant to be positive. Voltage, apparent power, etc. edit- also need to do this for download_data.vue probably |
Other wrinkles:There are at least 2 places in the frontend accumulated_real.js (known about):
meter_group.module.js (new find)
The end result is that:
|
Since the only changes here are either changes to frontend (VueX store), or GET requests on the backend, I think it is safe to review and merge this PR (if there are no obvious issues), and if anything needs to be changed later we can open a new PR. Follow Up Tasks
|
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.
The negative values and measurement labels appear to be fixed on the front end. The only thing that looks like it might be off is the meter_group_relation_insert.sql
file that I commented on. Other than that, the branch looks good to me.
Fixes #280
Findings
Conclusion
Other
The changes to
backend\dependencies\nodejs\models\meter.js
are in a GET endpoint, which will affect for example https://api.sustainability.oregonstate.edu/v2/energy/allbuildings (replacehttps://api.sustainability.oregonstate.edu
withhttp://localhost:3000
if testing locally). Therefore, there should not be any worries about overwriting old data etc.