Adds fleet status endpoint
All checks were successful
Build, Push and Run Container / build (push) Successful in 25s

Adds an endpoint to retrieve fleet status information.

This endpoint uses a Tesla API proxy to fetch the fleet status
based on provided VINs. It handles authentication using a bearer
token and sends a POST request to the /api/1/vehicles/fleet_status
endpoint.

Also introduces new data models to properly serialize/deserialize the fleet status response.
This commit is contained in:
2025-08-18 21:47:06 +02:00
parent 166ac0b290
commit 5daf0825a0
3 changed files with 44 additions and 3 deletions

View File

@@ -5,9 +5,9 @@ namespace ProofOfConcept.Services;
public class MQTTClient : IHostedService
{
private ILogger<MQTTClient> logger;
private MQTTClientConfiguration configuration;
private MQTTServerConfiguration serverConfiguration;
private readonly ILogger<MQTTClient> logger;
private readonly MQTTClientConfiguration configuration;
private readonly MQTTServerConfiguration serverConfiguration;
private readonly IMqttClient client;