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<TelemetryConfig>(hostContext.Configuration.GetSection("Telemetry"));
services.Configure<Bme680Config>(hostContext.Configuration.GetSection("EnvironmentSensor")); services.Configure<Bme680Config>(hostContext.Configuration.GetSection("EnvironmentSensor"));
services.Configure<CpuTempConfig>(hostContext.Configuration.GetSection("HealthSensor"));
// Singletons // Singletons
services.AddSingleton<SensorTelemetry>(); services.AddSingleton<SensorTelemetry>();

View file

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