summaryrefslogtreecommitdiff
path: root/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json
blob: 8df08f94e3a52623ccafef7417a9685d01375905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[
    {
        "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"
    },
    {
        "Desc":
        {
            "Name": "Altitude",
            "SensorType": "altitude"
        },
        "Threshold" :
        {
            "WarningHigh": 3050
        },
        "Params":
        {
            "DbusParam":
            [
                {
                    "ParamName": "P0",
                    "Desc":
                    {
                        "Name": "Station_Pressure",
                        "SensorType": "pressure"
                    }
                }
            ]
        },
        "Expression": "44330.0 * (1.0 - ((P0/101325.0) ^ (1/5.255)))"
    }
]