Skip to content

Commit

Permalink
Merge pull request #99 from pkuehnel/feat/PVOnlyDateTime
Browse files Browse the repository at this point in the history
feat(README): Update PV only chargemode
  • Loading branch information
pkuehnel authored Apr 25, 2022
2 parents 8f0b1ec + 39ca48c commit 6499033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ The current UI can display the car's names including SOC and SOC Limit + one But

### Charge Modes
Currently there are three different charge modes available:
1. **PV only**: Only PV energy is used to charge unless there is a min SOC Level set. If so the software tries to start charging with maximum power to reach the desired SOC Level in time
1. **PV only**: Only solar energy is used to charge. You can set a SOC level which should be reached at a specific date and time. If solar energy is not enough to reach the set soc level in time, the car starts charging at full speed. Note: To let this work, you have to specify `usable kWh` in the car settings section.
1. **Maximum Power**: Car charges with maximum available power
1. **Min SoC + PV**: If plugged in the car starts charging with maximum power until set Min SoC is reached. After that only PV Power is used to charge the car.

Expand Down
4 changes: 2 additions & 2 deletions SmartTeslaAmpSetter/Client/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ else
@if (car.CarConfiguration.ChargeMode == ChargeMode.PvOnly)
{
<p>
<label class="col-sm-4 col-md-3 col-lg-2" for="date">Datum:</label>
<label class="col-sm-4 col-md-3 col-lg-2" for="date">Date:</label>
<input class="col-sm-6 col-md-3 col-lg-2" value="@car.CarConfiguration.LatestTimeToReachSoC.Date.ToString("yyyy-MM-dd")" type="date" id="date" name="date"
@onchange="@(e => car.CarConfiguration.LatestTimeToReachSoC = DateTime.Parse(e.Value?.ToString() ?? DateTime.MaxValue.ToString(CultureInfo.CurrentCulture)).Date.AddHours(car.CarConfiguration.LatestTimeToReachSoC.Hour).AddMinutes(car.CarConfiguration.LatestTimeToReachSoC.Minute))">
</p>
<p>
<label class="col-sm-4 col-md-3 col-lg-2" for="time">Uhrzeit:</label>
<label class="col-sm-4 col-md-3 col-lg-2" for="time">Time:</label>
<input class="col-sm-6 col-md-3 col-lg-2" value="@car.CarConfiguration.LatestTimeToReachSoC.ToString("HH:mm")" type="time" id="time" name="time"
@onchange="@(e => car.CarConfiguration.LatestTimeToReachSoC = car.CarConfiguration.LatestTimeToReachSoC.Date.AddHours(TimeSpan.Parse(e.Value?.ToString() ?? "00:00").Hours).AddMinutes(TimeSpan.Parse(e.Value?.ToString() ?? "00:00").Minutes))">
</p>
Expand Down

0 comments on commit 6499033

Please sign in to comment.