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<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>();
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue