| commit | be3c77faafa5a9993dcec4b9ac3586eefb84b781 | [log] [tgz] |
|---|---|---|
| author | Lei YU <yulei.sh@bytedance.com> | Fri Feb 07 02:51:23 2025 +0000 |
| committer | Lei YU <yulei.sh@bytedance.com> | Fri Feb 07 02:53:34 2025 +0000 |
| tree | df20d7f66b940012ffd038121b61b43b7d02014f | |
| parent | 4224ca36acd8bf7089e1e2f566ef5235d0f86c97 [diff] |
exprtk.wrap: Specify 0.0.3 release The revision in exprtk.wrap points to a bad revision (possibly due to the exprtk force push on github), and the revision fails to build with clang++ as well. The yocto now points to 0.0.3 release, change the revision here to make it consistent and it compiles with clang++ now. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I52cf9a6df21494933545238cf4c95b5287ce88f7
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).