Skip to content

Commit c2a145b

Browse files
authored
Update xpower-flow-card.js
1 parent de599ea commit c2a145b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎xpower-flow-card.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// xPower Flow Card — Modern power flow card for solar hybrid inverters
22
// Copyright (C) 2025 BTNBx
33
// Licensed under GPL-3.0 — see LICENSE file
4-
const V='1.1.9';
4+
const V='1.2.0';
55

66
/* ═══════════════════════════════════════
77
xPower Flow Card — i18n
@@ -617,6 +617,10 @@ const sunG=this._$('sunG');if(sunG){if(solF>10){sunG.classList.add('sun-spin');s
617617
const gridIcon=this._$('gridIcon');if(gridIcon){gridIcon.style.opacity=Math.abs(gridF)>10?'1':'0.25';}
618618
const loadIcon=this._$('loadIcon');if(loadIcon){loadIcon.style.opacity=loadF>10?'1':'0.25';}
619619
const batIcon=this._$('batIcon');if(batIcon){batIcon.style.opacity=Math.abs(batF)>10?'1':'0.25';}
620+
this._$('vs').style.opacity=solF>10?'1':'0.25';
621+
this._$('vg').style.opacity=Math.abs(gridF)>10?'1':'0.25';
622+
this._$('vl').style.opacity=loadF>10?'1':'0.25';
623+
this._$('vb').style.opacity=Math.abs(batF)>10?'1':'0.25';
620624

621625
this._$('hv').textContent=this._fmt(sol)+' / '+this._fmtE(dS);
622626
this._$('hx').textContent=this._fmt(load)+' / '+this._fmtE(dL);

0 commit comments

Comments
 (0)