Skip to content

Commit

Permalink
Fix: UI display calculation of self consumption of a balancing point
Browse files Browse the repository at this point in the history
  • Loading branch information
zoernert committed Feb 1, 2024
1 parent d40e28b commit a7b4b20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/docs
Submodule docs updated from 41f043 to 3730f0
2 changes: 1 addition & 1 deletion framework/public/devUI/assets/js/uc_balancing.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ $(document).ready(function() {
color = 'text-success';
}
let co2 = data[i].co2eq/(-1000);
let energy_direct = (data[i].balancesum-data[i].energy)/1000;
let energy_direct = (Math.abs(data[i].balancesum)-Math.abs(data[i].energy))/1000;
let energy_balance = data[i].energy/-1000;

chartDataCO2.push(Math.round(co2));
Expand Down
2 changes: 1 addition & 1 deletion framework/public/devUI/uc_balancing.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h4 class="modal-title">Zertifikat</h4><button class="btn-close" type="button" a
<script src="assets/js/3party/qrcode.js?h=517b55d3688ce9ef1085a3d9632bcb97"></script>
<script src="assets/js/utils.js?h=b6a1e690b2a987d9af7e9692dff15273"></script>
<script src="assets/js/3party/marked.min.js?h=26085551a49dd1635b48b42f08c3d583"></script>
<script src="assets/js/uc_balancing.js?h=d8f316f1dba018ddcfac17e8d4959d00"></script>
<script src="assets/js/uc_balancing.js?h=1e064c90722e4162ee0b7b36dff30157"></script>
<script src="assets/js/uc_contract.js?h=f3ad95a4c2133df734c874a6d3bbef70"></script>
</body>

Expand Down

0 comments on commit a7b4b20

Please sign in to comment.