| commit | 04605fa2ad256f0bdedcfc1f9bcd1f24fdc4cd93 | [log] [tgz] |
|---|---|---|
| author | Patrick Williams <patrick@stwcx.xyz> | Wed May 28 16:54:49 2025 -0400 |
| committer | Patrick Williams <patrick@stwcx.xyz> | Thu May 29 11:00:11 2025 +0000 |
| tree | 7c6ed04416fcff3bd4477a74482028f0ea0db6df | |
| parent | 4b98de56a69895d0c26e9abd6e236a73a236263a [diff] |
move daemons to libexec Per the organization anti-pattern, executables are expected to be installed into libexec instead of bin[1]. Update service files and meson to install there. [1]: https://github.com/openbmc/docs/blob/master/anti-patterns.md#incorrect-placement-of-executables-in-sbin-usrsbin-or-bin-usrbin Change-Id: Ibb102f387c27593c81f41aa0adc3b994ca9185e2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
phosphor-virtual-sensor reads the configuration file virtual_sensor_config.json from one of three locations:
/var/lib/phosphor-virtual-sensor/usr/share/phosphor-virtual-sensorBy default the repository will install a sample config into (3).
There are two types of data in this file.
See virtual_sensor_config.json in this repository for an example. Sensors added this way can use any expression that is accepted by exprtk.
For example:
{ "Desc": { "Config": "D-Bus" } }
Sensors added this way can only use a set of restricted calculations. Currently supported types are Average, Maximum, Minimum, Sum and ModifiedMedian.
The virtual sensor configuration information needs to be added into the relevant hardware configuration file in entity-manager. This method of adding a virtual sensor allows a recipe that builds for different hardware configurations to have different virtual sensors for each configuration.
The virtual sensor configuration in entity manager follows a different format to the JSON in virtual_sensor_config.json (specified in entity-manager/schemas/VirtualSensor.json).