fix pv potential progress bar not showing

This commit is contained in:
djnitehawk 2025-03-14 09:59:40 +05:30
parent 6f2afa036d
commit 4dd5c7a870
3 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InverterMon.Shared", "Share
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InverterMonWindow", "InverterMonWindow\InverterMonWindow.csproj", "{9DC94527-CBD8-4807-B6AA-2E079D5C8CA0}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InverterMonWindow", "InverterMonWindow\InverterMonWindow.csproj", "{9DC94527-CBD8-4807-B6AA-2E079D5C8CA0}"
EndProject 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 Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU

View File

@ -81,7 +81,7 @@ public class InverterStatus
public int PV_MaxCapacity { get; set; } public int PV_MaxCapacity { get; set; }
[JsonPropertyName("v")] [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; int pvInputWatt;
DateTime pvInputWattHourLastComputed; DateTime pvInputWattHourLastComputed;

View File

@ -1,3 +1,3 @@
## changelog ## changelog
- fix pv input current not showing - fix pv potential progress bar not showing