philhzss / tesla-climate-scheduler

Control Tesla HVAC based on events from a .ics file
GNU General Public License v3.0
2 stars 1 forks source link

Catastrophic loop failure somewhere #66

Closed philhzss closed 3 months ago

philhzss commented 6 months ago
[Carblock Info] 404=response code for
https://api.teslemetry.com/api/1/vehicles/x/
command/command/command/command/command/command/command/command/command/command/command/remote_seat_heater_request

Its adding an extra "command" on each iteration

philhzss commented 6 months ago

Here: https://github.com/philhzss/tesla-climate-scheduler/blob/a8fb37ca4a441ca1b94e81c87f62e7fbee08220e/src/carblock.cpp#L172

Carl says to create a temporary value to reuse the parameter because right now the parameter is only read once and then command/ is added +1 time on every loop