Add configuration for CPU Temp sensor
This commit is contained in:
parent
9da5bbb243
commit
e4c692187e
2 changed files with 5 additions and 0 deletions
|
@ -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>();
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
"Enabled": true,
|
||||
"Telemetry": true
|
||||
},
|
||||
"HealthSensor": {
|
||||
"Enabled": true,
|
||||
"Telemetry": true
|
||||
},
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
|
|
Loading…
Reference in a new issue