fix pv potential progress bar not showing
This commit is contained in:
parent
6f2afa036d
commit
4dd5c7a870
@ -10,6 +10,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InverterMon.Shared", "Share
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InverterMonWindow", "InverterMonWindow\InverterMonWindow.csproj", "{9DC94527-CBD8-4807-B6AA-2E079D5C8CA0}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{494240DD-DB58-4718-8D05-83CD1E686288}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
changelog.md = changelog.md
|
||||
..\README.md = ..\README.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
||||
@ -81,7 +81,7 @@ public class InverterStatus
|
||||
public int PV_MaxCapacity { get; set; }
|
||||
|
||||
[JsonPropertyName("v")]
|
||||
public int PVPotential => PVInputWatt > 0 ? Convert.ToInt32(PVInputWatt / PV_MaxCapacity * 100) : 0;
|
||||
public int PVPotential => PVInputWatt > 0 ? Convert.ToInt32(Convert.ToDouble(PVInputWatt) / PV_MaxCapacity * 100) : 0;
|
||||
|
||||
int pvInputWatt;
|
||||
DateTime pvInputWattHourLastComputed;
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
## changelog
|
||||
|
||||
- fix pv input current not showing
|
||||
- fix pv potential progress bar not showing
|
||||
Loading…
Reference in New Issue
Block a user