diff options
author | Matt Spinler <spinler@us.ibm.com> | 2020-11-10 18:11:44 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-11-12 00:39:21 +0300 |
commit | ea821dee0f5e0a9082ee2febebe694cad079d82a (patch) | |
tree | 7e374b9e711ef32d79abbecc416ca80e470842df /meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor | |
parent | 0faaf712d2b63053ea34981025b7fa376c85dcbe (diff) | |
download | openbmc-ea821dee0f5e0a9082ee2febebe694cad079d82a.tar.xz |
rainier: Add a virtual ambient temp sensor
Use the virtual-sensor application to put a virtual ambient temperature
sensor on D-Bus. Currently, it just mirrors the value of the TMP275
ambient temperature sensor, but in the future the output will be based
on all three temp sensors on the panel after the remaining two show up
on D-Bus.
(From meta-ibm rev: f43eab1e5637cf87a38ca2e9a6acc33e5db3a0c3)
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I187d88c7e1245c7014aee8b9b6c0840daf1e622d
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor')
-rw-r--r-- | meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json new file mode 100644 index 000000000..6458836fd --- /dev/null +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json @@ -0,0 +1,24 @@ +[ + { + "Desc": + { + "Name": "Ambient_Virtual_Temp", + "SensorType": "temperature" + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "Ambient_0_Temp", + "SensorType": "temperature" + } + } + ] + }, + "Expression": "T0" + } +] |