From 7b04e2e0fda258b9bc094b92867dd475a283456e Mon Sep 17 00:00:00 2001 From: Rashmica Gupta Date: Fri, 13 Aug 2021 11:54:47 +1000 Subject: rainier: Get virtual temp sensor config from D-Bus This tells phosphor-virtual-sensors to look on D-Bus for a virtual sensor config of type ModifiedMedian. This way we can use the same recipe for different hardware configurations. Change-Id: I3ebd0a636f07a0854251e06b952ad9646f12f637 Signed-off-by: Rashmica Gupta --- .../p10bmc/virtual_sensor_config.json | 28 +++------------------- 1 file changed, 3 insertions(+), 25 deletions(-) (limited to 'meta-ibm') diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json index 8df08f94e..15bf45607 100644 --- a/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json @@ -2,31 +2,9 @@ { "Desc": { - "Name": "Ambient_Virtual_Temp", - "SensorType": "temperature" - }, - "Threshold" : - { - "CriticalHigh": 100, - "CriticalLow": 0, - "WarningHigh": 100, - "WarningLow": 0 - }, - "Params": - { - "DbusParam": - [ - { - "ParamName": "T0", - "Desc": - { - "Name": "Ambient_0_Temp", - "SensorType": "temperature" - } - } - ] - }, - "Expression": "T0" + "Config" : "D-Bus", + "Type" : "ModifiedMedian" + } }, { "Desc": -- cgit v1.2.3