Add configuration for CPU Temp sensor

This commit is contained in:
Denis-Cosmin Nutiu 2019-12-29 14:10:58 +02:00
parent 9da5bbb243
commit e4c692187e
2 changed files with 5 additions and 0 deletions

View file

@ -20,6 +20,7 @@ namespace NucuCar.Sensors
{
services.Configure<TelemetryConfig>(hostContext.Configuration.GetSection("Telemetry"));
services.Configure<Bme680Config>(hostContext.Configuration.GetSection("EnvironmentSensor"));
services.Configure<CpuTempConfig>(hostContext.Configuration.GetSection("HealthSensor"));
// Singletons
services.AddSingleton<SensorTelemetry>();

View file

@ -9,6 +9,10 @@
"Enabled": true,
"Telemetry": true
},
"HealthSensor": {
"Enabled": true,
"Telemetry": true
},
"Logging": {
"LogLevel": {
"Default": "Information",